Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

List of Posts

  • #3295
    Avatar photo[anonymous]

    I am using the Square theme and want to make a simple list of posts on the left side. Basically make my own post feed. Can anyone point me in the right direction for implementing this? Happy to go through the docs but honestly not sure where to start. Is this a case of editing the theme or is there a layer on top for modifications to be done properly so as to support theme updates?

    Do folks store theme/site source in Git separate from the deployed site? I’m using Dropbox for the source content so multiple computers work correctly, but what about the correct way to manage theme edits or additions as I’ve outlined?

    If this is all documented a link would be great! Cheers

    PS

    I just got started and so far, really digging Publii. Great work. It fits in the exact spot you are aiming at – lighter and simpler than WordPress, Squarespace, and most every other blogging platform. But compared to Jekyll it’s soooo nice. I just want to write stuff and not think about Markdown. Thanks for building this!

    #3296
    Avatar photoBob

    Hi benthroop,

    I am not sure if I understood you correctly as the list of all posts is displayed on the right side in the Square theme.

    #3297
    Avatar photo[anonymous]

    Hey Bob thanks for the quick response.

    To clarify, I want the left side to show a list of post titles (with no body copy) below the title of the current post that is fully shown on the right.

    In this setup, the front page will display the most recent post in full (using the “featured” function, currently, but ideally just the most recent), so this would be how users would navigate to prior posts.

    #3308
    Avatar photo[anonymous]

    Actually I am set. Found the docs and will pound on it and post back here if I get stuck. Cheers.

    #3310
    Avatar photo[anonymous]

    Ok made some headway and I have a question.

    On the theme’s index.html, there is a posts variable what has an array of all posts.  I am able to display them with this chunk of code put in the left side of the layout:

    <br> <h1>All Posts</h1>

    Works fine. However, on Post.hbs, there is no posts array filled in, so this code doesn’t work. How can I get all of the posts into Post.hbs’s scope?

    #3313
    Avatar photo[anonymous]

    Haha ok I figured it out. @website.contentStructure.posts

    I’ll see myself out.