diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/diary.html.j2 | 24 | ||||
| -rwxr-xr-x | templates/index.html.j2 | 2 | 
2 files changed, 25 insertions, 1 deletions
| diff --git a/templates/diary.html.j2 b/templates/diary.html.j2 new file mode 100644 index 0000000..15cbe71 --- /dev/null +++ b/templates/diary.html.j2 @@ -0,0 +1,24 @@ +{% extends "template.html.j2" %} +{% block content %} +    <dl> +        {% for dt, entries in diary.items() %} +            <dt><a href="{{ entries[0]['link'] }}">{{ dt }}</a></dt> +            <dd> +                <ol id="diaryentry"> +                    {% for entry in entries %} +                        {% if entry["images"] != [] %} +                            <ul> +                                {% for img in entry["images"] %} +                                    <li><a href="{{ img }}" target='_blank'><img src="{{ img }}"></a></li> +                                {% endfor %} +                            </ul> +                        {% endif %} +                        <li> +                            <p>{{ entry["text"] }}</p> +                        </li> +                    {% endfor %} +                </ol> +            </dd> +        {% endfor %} +    </dl> +{% endblock %}
\ No newline at end of file diff --git a/templates/index.html.j2 b/templates/index.html.j2 index 31c6207..72bff7b 100755 --- a/templates/index.html.j2 +++ b/templates/index.html.j2 @@ -29,7 +29,7 @@          <h3>recent git commits:</h3>          <ul>              {% for commit in commits %} -                <li>[<a href="{{'https://git.eda.gay/' + commit['repo'] + '/about.html'}}">{{commit["repo"]}}</a>] {+{{commit["stats"]["additions"]}}; -{{commit["stats"]["deletions"]}}} <a href="{{commit['url'].replace('github.com/jwansek', 'git.eda.gay') + '.html'}}">{{commit["message"]}}</a> - <a href="{{commit['url']}}">backup link</a></li> +                <li>[<a href="{{'https://git.eda.gay/' + commit['repo']}}">{{commit["repo"]}}</a>] {+{{commit["stats"]["additions"]}}; -{{commit["stats"]["deletions"]}}} <a href="{{commit['url'].replace('github.com/jwansek', 'git.eda.gay')}}">{{commit["message"]}}</a> - <a href="{{commit['url']}}">github mirror</a></li>              {% endfor %}          </ul>      </section> | 
