- content_for(:title) do | #{t('title.timeline')} .row .small-12.large-9.large-centered.columns ul.archives-field .search-wrapper = form_with url: archives_path, method: 'GET' do |f| = f.search_field :q, value: @q, placeholder: t('archive.search') - @posts.each do |post| li = link_to blog_path(post), class: 'blog-title' do == search_highlight(post.title, @q) p.tags-field i.fi-calendar span = format_date(post.created_at) i.fi-pricetag-multiple span = post.labels_content i.fi-torsos span = post.visited_count i.fi-heart span = post.liked_count - if @q.present? .search-result-wrapper p.text-muted 共 #{@q_size || 0} 条结果 = paginate @posts, q: @q