Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

simple-strap with Tags Plugin #2

Closed
petersell opened this issue Mar 10, 2020 · 1 comment
Closed

simple-strap with Tags Plugin #2

petersell opened this issue Mar 10, 2020 · 1 comment

Comments

@petersell
Copy link

Hi Andrew, thank you for this theme. I want to use in common with the Tags Plugin. Unfortunately the plugin´s script for the blog-post.html-template

{% if this.tags %}
  <ul>
    {% for t in this.tags -%}
      <li>
        <a href="{{ ('/blog@tag/' ~ t.lower())|url }}">
          All posts tagged {{ t }}
        </a>
      </li>
    {% endfor %}
  </ul>
{% endif %}

gives back a wrong URL to the tags page: /blog@tag/dita instead of /blog/tag/dita. Astonishingly the Tags Plugin works fine with the quickstart template of lektor. All other prerequisites like configs/tags.ini etc I have done as well. I am using Python 3.8. Do you have any idea?

@petersell
Copy link
Author

I have found following solution:

<a class="tags" href="{{ ('/blog/tag/' ~ t.lower() ~ '/')|url }}">
          Blogposts mit dem Stichwort {{ t }}
</a>

here: https://github.com/ericmjl/website/blob/master/templates/macros/blog.html

Glad that I still can use your theme, anyway. Thank you ;-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant