ref: 2e718ce583ba5df7683cc716eb8c5eea3c4fea4e manu.computer/templates/weblog.html -rw-r--r-- 1.6 KiB View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{% extends "index.html" %}

{% block title %}{{ section.title }} - {{ config.title }}{% endblock title %}

{% block content %}
  <h1>Weblog</h1>
  {{ section.content | safe }}
    {% for page in section.pages %}
      {% if page.extra.microtype %}
        {% if page.extra.microtype == "note" %}
          <img src="{{ config.base_url }}/fontawesome/sticky-note-regular.svg" class="icon" />&nbsp;<strong>{{ page.title }}</strong>
        {% elif page.extra.microtype == "date" %}
          <img src="{{ config.base_url }}/fontawesome/calendar-alt-regular.svg" class="icon" />&nbsp;<strong>{{ page.title }}</strong>
        {% elif page.extra.microtype == "bookmark" %}
          <img src="{{ config.base_url }}/fontawesome/bookmark-regular.svg" class="icon" />&nbsp;<strong><a href="{{ page.extra.link }}">{{ page.title }}</a></strong>
        {% elif page.extra.microtype == "favourite" %}
          <img src="{{ config.base_url }}/fontawesome/star-regular.svg" class="icon" />&nbsp;<strong><a href="{{ page.extra.link }}">{{ page.title }}</a></strong>
        {% elif page.extra.microtype == "update" %}
          <img src="{{ config.base_url }}/fontawesome/redo-solid.svg" class="icon" />&nbsp;<strong>{{ page.title }}</strong>
        {% elif page.extra.microtype == "quote" %}
        {% endif %}
        {{ page.content|safe }}
        {% if page.extra.microtype == "quote" %}
          <span class="weblog-center">~ {{ page.extra.author }} ~</span>
        {% endif %}
      {% else %}
      <h2 class="weblogheader"><a href="{{ page.permalink }}">{{ page.title }}</a></h2>
      {{ page.summary | safe }}
      {% endif %}
    <hr />
    {% endfor %}
{% endblock content %}