From 431906aec271735ffbfa1e8aaf90fc8bcc89598d Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 15 Nov 2021 14:01:23 +0100 Subject: Improved www examples. Signed-off-by: Toni Uhlig --- wwwroot/inherit/00_base.tmpl | 7 +++++-- wwwroot/inherit/index.html | 9 +++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'wwwroot/inherit') 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 @@ - + {% block head %} @@ -6,6 +6,9 @@ {% endblock %} -
{% block content %}{% endblock %}
+
+ {% block content %} + {% endblock %} +
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 {{ loop.index1 }} - {{ entry.filename }} + {{ entry.filename }} {{ entry.title }} {{ entry.tags }} {{ entry.author }} @@ -25,11 +25,16 @@ {{ entry.publishDate }} {{ entry.published }} - {{ indent(entry.content, 12, false, false) }} +{{ indent(entry.content, 16, false, false) }} {% if loop.is_last == false %}more{% else %}eof{% endif %}
## endfor {% endif %} +## if exists("blog_post") + {{ blog_post.title }}
+ {{ blog_post.publishDate }} by {{ blog_post.author }}
+{{ indent(blog_post.content, 4, false, false) }} +## endif {% endblock %} -- cgit v1.2.3