Generalise templates, not only for HTML

This commit is contained in:
Stavros Polymenis 2017-12-04 19:14:00 +00:00
parent 7e445b3603
commit 98d4dac32a
9 changed files with 17 additions and 39 deletions

View File

@ -1 +0,0 @@
<h1><a href="{{blog_url}}">{{title}}</a></h1>

View File

@ -1,7 +0,0 @@
<li>
<time>{{date_human}}</time>
<div>
<a href="{{url}}" class="title">{{title}}</a>
<p class="abstract">{{abstract}}</p>
</div>
</li>

View File

@ -1,17 +0,0 @@
<main>
<h3>Topics</h3>
<ul class="topics">
{{topics}}
</ul>
<h3>Recent articles</h3>
<ul class="timeline">
{{recent_texts_listing}}
</ul>
<nav>
{{navigation}}
</nav>
</main>

View File

@ -1,13 +0,0 @@
<article>
<h1>{{title}}</h1>
<details>
<summary>{{abstract}}</summary>
<a href="" rel="author">{{author_name}}</a>
<time datetime="{{date}}">{{date_human}}</time>
<span>Series: {{series}}</span>
<span>Topics: {{topics}}</span>
<span>Keywords: {{keywords}}</span>
<span>UUID: {{uuid}}</span>
</details>
{{body}}
</article>

View File

@ -1,3 +1,3 @@
Articles
## Articles
{{recent_texts_listing}}

View File

@ -0,0 +1 @@
{{title}}

View File

@ -0,0 +1,3 @@
{{date_human}}
{{link}}
{{abstract}}

View File

@ -0,0 +1,7 @@
### Topics
{{topics}}
### Recent articles
{{recent_texts_listing}}

View File

@ -0,0 +1,5 @@
# {{title}}
{{details}}
{{body}}