Sign in

Breadcrumb and multilanguage

  • This topic has 5 replies, 3 voices, and was last updated 1 year, 3 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2355
    wefer

    Hi everybody and congratulations for this amazing CMS.

    I’m designing my first website using Publii and I need to know if there’s any (easy) way to put some kind of breadcrumb at the top of every post. I’m using Square theme. I’ve seen that question was debated some time ago in this topic but it refers a disappeared ticket

    Another question is when it will be possible to build a multilanguage site, a feature that I (and a lot of people) really need. I saw it was intended to be ready this year 2020 but I’m not sure if this is still the goal.

    Thanks.

    #2373
    Tomasz Dziuda

    Hi,

    At this moment there are no easy way to create breadcrumbs – we will address this issue in the future as it seems to be important for the SEO and UX.

    Regarding multilanguage – it is still on our ToDo list, but we have no any ETA for this now.

    --
    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!

    #2383
    wefer

    Thanks for your answer and congratulations for your work I really appreciate.

    #2385
    Bob

    In terms of breadcrumb, here is an example:

    <ol itemscope itemtype="https://schema.org/BreadcrumbList">
    <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
    <a itemprop="item" href="{{@website.url}}">
    <span itemprop="name">Home</span></a>
    <meta itemprop="position" content="1" />
    </li>
    ›
    <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
    <a itemscope itemtype="https://schema.org/WebPage" itemprop="item" itemid="{{post.mainTag.url}}"
    href="{{post.mainTag.url}}">
    <span itemprop="name">{{post.mainTag.name}}</span></a>
    <meta itemprop="position" content="2" />
    </li>
    ›
    <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
    <span itemprop="name">{{post.title}}</span>
    <meta itemprop="position" content="3" />
    </li>
    </ol>

    --
    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!

    #2392
    wefer

    Thanks Bob, but I can’t make it work.

    I tried to paste this HTML in one of my posts using the HTML editor and didn’t work. My post only shows this text:

    Home

    {{post.mainTag.name}}

    {{post.title}}

    And when I go back to the HTML editor the major part of the code has been erased.

    Any help would be appreciated. Thanks.

    #2400
    Bob

    You should paste this code into a post.hbs file ‎⁨(Documents ▸ ⁨Publii⁩ ▸ ⁨sites⁩ ▸ ⁨YOUR_SITE ▸ ⁨input⁩ ▸ ⁨themes⁩ ▸ ⁨YOUR_THEME)

    To preserve the custom code changed from being overwritten the next time your theme is updated, please make sure you have created override files, which are essentially copies of the existing theme files and are stored separately → https://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!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.