Skip to content

Latest commit

 

History

History
67 lines (53 loc) · 1.25 KB

File metadata and controls

67 lines (53 loc) · 1.25 KB

Chunked Content

Previous: Add Disqus Comments and Google Analytics

Tutorial 13

This tutorial…​

Define excerpt for post

:excerpt: Excerpt of post.
:page-excerpt: {excerpt}

{excerpt}

Use post excerpt

Revise _partials/post.html.haml
  .post-body
    - if page.listing
      %p=page.post.excerpt || summarize(html_to_text(page.post.content), 100)
      %p
        %a.small.secondary.button{:href=>post_url} Read more...
    - else
      =page.post.content

Post image

Next: Custom Domain Name