Search code examples
javascriptghost-blog

Ghost CMS show page excerpt on another page


I have created a home template and I Was wondering if its possible to show a excerpt and image from the About page for example. I've been looking at the documentation to no success.

I was hoping to do something like this:

   {{#get "pages"}}
    {{#foreach pages}}
        {{title}}
        <p>{{excerpt words="33"}}</p>
    {{/foreach}}
{{/get}}

Solution

  • You can query posts that are pages, so this should work:

    {{#get "posts" filter="page:true"}}
      {{#foreach posts}}
        {{title}}
        <p>{{excerpt words="33"}}</p>
      {{/foreach}}
    {{/get}}