aboutsummaryrefslogtreecommitdiff
path: root/wwwroot/inherit
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2021-11-15 14:01:23 +0100
committerToni Uhlig <matzeton@googlemail.com>2021-11-15 14:01:23 +0100
commit431906aec271735ffbfa1e8aaf90fc8bcc89598d (patch)
treeb98581b0254900e8cb902f1da64227f423333160 /wwwroot/inherit
parent91dc9732ce54ba7298667be85c57e7d94d2f83b1 (diff)
Improved www examples.HEADmaster
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'wwwroot/inherit')
-rw-r--r--wwwroot/inherit/00_base.tmpl7
-rw-r--r--wwwroot/inherit/index.html9
2 files changed, 12 insertions, 4 deletions
diff --git a/wwwroot/inherit/00_base.tmpl b/wwwroot/inherit/00_base.tmpl
index c1af32e..80b6850 100644
--- a/wwwroot/inherit/00_base.tmpl
+++ b/wwwroot/inherit/00_base.tmpl
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
{% block head %}
@@ -6,6 +6,9 @@
{% endblock %}
</head>
<body>
- <div>{% block content %}{% endblock %}</div>
+ <div>
+ {% block content %}
+ {% endblock %}
+ </div>
</body>
</html>
diff --git a/wwwroot/inherit/index.html b/wwwroot/inherit/index.html
index a717e4f..8824f78 100644
--- a/wwwroot/inherit/index.html
+++ b/wwwroot/inherit/index.html
@@ -17,7 +17,7 @@
## for entry in blog_listing
<tr>
<td>{{ loop.index1 }}</td>
- <td>{{ entry.filename }}</td>
+ <td><a href="{{ entry.filename }}">{{ entry.filename }}</a></td>
<td>{{ entry.title }}</td>
<td>{{ entry.tags }}</td>
<td>{{ entry.author }}</td>
@@ -25,11 +25,16 @@
<td>{{ entry.publishDate }}</td>
<td>{{ entry.published }}</td>
<td>
- {{ indent(entry.content, 12, false, false) }}
+{{ indent(entry.content, 16, false, false) }}
</td>
<td>{% if loop.is_last == false %}more{% else %}eof{% endif %}<br>
</tr>
## endfor
</table>
{% endif %}
+## if exists("blog_post")
+ <a href="{{ blog_post.filename }}">{{ blog_post.title }}</a><br>
+ {{ blog_post.publishDate }} by {{ blog_post.author }}<br>
+{{ indent(blog_post.content, 4, false, false) }}
+## endif
{% endblock %}