"Fossies" - the Fresh Open Source Software Archive

Member "pmd-src-6.47.0/docs/_includes/taglogic.html" (25 Jun 2022, 1355 Bytes) of package /linux/misc/pmd-src-6.47.0.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <p>The following pages and posts are tagged with <button type="button" style="cursor: default" class="btn btn-default navbar-btn">{{page.tagName}}</button></p>
    2 <table><thead><tr><th>Title</th><th>Type</th><th>Excerpt</th></tr></thead>
    3     <tbody>
    4     {% assign thisTag = page.tagName %}
    5   {% for page in site.pages %}
    6     {% for tag in page.tags %}
    7         {% if tag == thisTag %}
    8 
    9         <tr><td><a href="{{ page.url | remove: "/" }}">{{page.title}}</a></td>
   10             <td><span class="label label-default">Page</span></td>
   11           <td>{% if page.summary %} {{ page.summary | strip_html | strip_newlines | truncate: 160 }} {% else %} {{ page.content | truncatewords: 50 | strip_html }} {% endif %}</td>
   12         </tr>
   13         {% endif %}
   14      {% endfor %}
   15    {% endfor %}
   16 
   17         {% assign thisTag = page.tagName %}
   18         {% for post in site.posts %}
   19         {% for tag in post.tags %}
   20         {% if tag == thisTag %}
   21 
   22         <tr><td><a href="{{ post.url | remove: "/" }}">{{post.title}}</a></td>
   23             <td><span class="label label-primary">Post</span></td>
   24             <td>{% if post.summary %} {{ post.summary | strip_html | strip_newlines | truncate: 160 }} {% else %} {{ post.content | truncatewords: 50 | strip_html }} {% endif %}</td>
   25         </tr>
   26         {% endif %}
   27         {% endfor %}
   28         {% endfor %}
   29 
   30    </tbody>
   31 </table>
   32