Skip to content

Latest commit

 

History

History
78 lines (64 loc) · 1.73 KB

find.md

File metadata and controls

78 lines (64 loc) · 1.73 KB
layout title
page
Find

{% comment%} Here we generate all the tags. {% endcomment%}

{% assign rawtags = "" %}

{% for post in site.posts %} {% assign ttags = post.tags | join:'|' | append:'|' %} {% assign rawtags = rawtags | append:ttags %} {% endfor %}

{% assign rawtags = rawtags | split:'|' | sort %}

{% assign tags = "" %}

{% for tag in rawtags %} {% if tag != "" %} {% if tags == "" %} {% assign tags = tag | split:'|' %} {% endif %} {% unless tags contains tag %} {% assign tags = tags | join:'|' | append:'|' | append:tag | split:'|' %} {% endunless %} {% endif %} {% endfor %}

Find By Keywords

    <script src="{{ site.baseurl }}public/js/jekyll-search.js" type="text/javascript"></script> <script type="text/javascript"> SimpleJekyllSearch({ searchInput: document.getElementById('search-input'), resultsContainer: document.getElementById('results-container'), json: '{{ site.baseurl }}search.json', searchResultTemplate: '
  • {title}
  • ', limit: 10, fuzzy: true, }) </script>

    Find By Tags

    All tags are listed below, hope these helps ^.^

    {% for tag in tags %} {{ tag }}   {% endfor %}

    {% for tag in tags %}

    {{ tag }}

      {% for post in site.posts %} {% if post.tags contains tag %}
    • {{ post.title }}
    • {% endif %} {% endfor %}
    {% endfor %}