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.

TechNews theme not showing any excerpts on frontpage

  • #5889
    Avatar photo[anonymous]

    TechNews 2.3.0.0
    Publii 0.38.2
    Linux 5.12.2-1-MANJARO
    Plasma 5.21.5

    The TechNews theme does not display any excerpts, I tested 2 editors and 2 browsers, still no luck.
    The built-in Simple theme does show them, though.
    Is it a bug or am I missing something here?

    #5890
    Avatar photoBob
    [anonymous] wrote:

    The TechNews theme does not display any excerpts

    You are right, the theme design does not support the excerpt in the post listings.

    #5891
    Avatar photo[anonymous]

    Thanks for answering!
    Is there a workaround for that or do I need another theme for that?

    #5892
    Avatar photoBob

    In general, you need to add the following code to the listings (index.hbs, author.hbs , tags.hbs files – ‎⁨(Documents ▸ ⁨Publii⁩ ▸ ⁨sites⁩ ▸ ⁨YOUR_SITE ▸ ⁨input⁩ ▸ ⁨themes⁩ ▸ ⁨YOUR_THEME)

    {{#if hasCustomExcerpt}}
       <div>
          {{{ excerpt }}}
       </div>
    {{else}}
       <p>
       {{{ excerpt }}}
       </p>
    {{/if}}

    To preserve your custom code and prevent it being overwritten the next time the theme is updated, please ensure that you have created override files; these are, essentially, copies of the existing theme files that are stored separately from the main theme fileshttps://getpublii.com/dev/theme-overrides/

    #5893
    Avatar photo[anonymous]

    Thank you, very much appreciated!