Show Page Exerpt and image on another page


#1

I was wondering if there is a way of getting information of a page into another. For example, I have a custom homepage, and I would like to show the Excerpt and Image of the about us page.

How do I go about this in Ghost?

Thanks
G


#2

There is the {{get}} helper or you can use the data property in your routes.yaml file.


#3

Using the get, how do you loop through and get page content. I cant seem to find that on the docs? I tried something like this:

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

#4

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.