Sign in

TechNews theme not showing any excerpts on frontpage

  • This topic has 4 replies, 2 voices, and was last updated 2 weeks, 3 days ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5889
    Gyges

    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
    Bob

    The TechNews theme does not display any excerpts

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

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #5891
    Gyges

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

    #5892
    Bob

    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/

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #5893
    Gyges

    Thank you, very much appreciated!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘TechNews theme not showing any excerpts on frontpage’ is closed to new replies.