diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/bike.html (renamed from templates/orphan.html) | 0 | ||||
| -rw-r--r-- | templates/blog.html | 19 | ||||
| -rw-r--r-- | templates/feed.xml | 39 | ||||
| -rw-r--r-- | templates/resume.html | 10 | ||||
| -rw-r--r-- | templates/section.html | 16 |
5 files changed, 10 insertions, 74 deletions
diff --git a/templates/orphan.html b/templates/bike.html index db8634a..db8634a 100644 --- a/templates/orphan.html +++ b/templates/bike.html diff --git a/templates/blog.html b/templates/blog.html deleted file mode 100644 index cfdd8c2..0000000 --- a/templates/blog.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends "section.html" %} - -{%- block content -%} - -{%- for year, posts in section.pages | group_by(attribute="year") -%} -<section> -<ul class="post-list"> -{%- for post in posts %} -<li> - <a href="{{- post.path|safe -}}">{{- post.title -}}</a> - <span class="post-date">{{ post.date | date(format="%d %h %Y")}}</span> -</li> -{%- endfor %} -</ul> - -</section> -{%- endfor %} - -{%- endblock content -%} diff --git a/templates/feed.xml b/templates/feed.xml deleted file mode 100644 index 2ac0851..0000000 --- a/templates/feed.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ lang }}"> - <title>{{ config.title }}</title> - <link rel="self" type="application/atom+xml" href="{{ feed_url | safe }}"/> - <updated>{{ last_updated | date(format="%+") }}</updated> - <id>{{ feed_url | safe }}</id> - {%- set blog = get_section(path="blog/_index.md") -%} - {%- for page in blog.pages %} - <entry xml:lang="{{ page.lang }}"> - <title>{{ page.title }}</title> - <published>{{ page.date | date(format="%+") }}</published> - <updated>{{ page.updated | default(value=page.date) | date(format="%+") }}</updated> - {% for author in page.authors %} - <author> - <name> - {{ author }} - </name> - </author> - {% else %} - <author> - <name> - {%- if config.author -%} - {{ config.author }} - {%- else -%} - Unknown - {%- endif -%} - </name> - </author> - {% endfor %} - <link rel="alternate" type="text/html" href="{{ page.permalink | safe }}"/> - <id>{{ page.permalink | safe }}</id> - {% if page.summary %} - <summary type="html">{{ page.summary }}</summary> - {% else %} - <content type="html" xml:base="{{ page.permalink | escape_xml | safe }}">{{ page.content }}</content> - {% endif %} - </entry> - {%- endfor %} -</feed> diff --git a/templates/resume.html b/templates/resume.html new file mode 100644 index 0000000..db8634a --- /dev/null +++ b/templates/resume.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} + +{% block title %}{{ page.title }} - {{ config.title }}{% endblock title %} + +{% block content -%} +<h1>{{- page.title -}}</h1> + +{{ page.content | safe -}} + +{%- endblock content -%} diff --git a/templates/section.html b/templates/section.html deleted file mode 100644 index e6b6694..0000000 --- a/templates/section.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "orphan.html" %} - -{% block title %}{{ section.title }} - {{ config.title }}{% endblock title %} - -{% block content %} -<h1>{{ section.title }}</h1> -<ul> -{% for post in section.pages %} -<li> - <a href="{{ post.permalink }}">{{ post.title }}</a> - <br> - <small>{{ post.date | date(format="%d %h %Y") }}</small> -</li> -{% endfor %} -</ul> -{% endblock content %} |
