Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browse post by tags, ... tag cloud? #11

Open
1 of 3 tasks
nfreear opened this issue Oct 20, 2015 · 0 comments
Open
1 of 3 tasks

Browse post by tags, ... tag cloud? #11

nfreear opened this issue Oct 20, 2015 · 0 comments
Assignees

Comments

@nfreear
Copy link
Owner

nfreear commented Oct 20, 2015


  • tag.html – browse posts by tags;
  • – tag.html – tag-cloud?
  • – list tags in each post;

(Also: http://charliepark.org/tags-in-jekyll; http://stackoverflow.com/questions/15976495/how-to-url-encode-in-jekyll-liquid)

  {% for site_tag in site.tags %}
    {% assign tag = site_tag | first %}
    {% assign posts = site_tag | last %}

  <h2 id={{ tag | downcase | replace: "+"," " | cgi_escape }} >{{ tag }}</h2>
  <ul>
  {% for post in posts %}
    {% if post.tags contains tag %}
    <li>
      <a href="{{ post.url }}">{{ post.title }}</a>
      <span class="date">{{ post.date | date: "%B %-d, %Y"  }}</span>
    </li>
    {% endif %}
  {% endfor %}
  </ul>
  {% endfor %}
@nfreear nfreear self-assigned this Oct 20, 2015
nfreear added a commit that referenced this issue Oct 20, 2015
nfreear added a commit that referenced this issue Oct 20, 2015
nfreear added a commit that referenced this issue Oct 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant