diff --git a/blog/content/news/_index.md b/blog/content/news/_index.md new file mode 100644 index 00000000..69703970 --- /dev/null +++ b/blog/content/news/_index.md @@ -0,0 +1,4 @@ ++++ +title = "News" +template = "news-section.html" ++++ diff --git a/blog/templates/news-page.html b/blog/templates/news-page.html new file mode 100644 index 00000000..7f5f9a4c --- /dev/null +++ b/blog/templates/news-page.html @@ -0,0 +1,28 @@ +{% extends "base.html" %} + +{% block title %}{{ page.title }} | {{ config.title }}{% endblock title %} + +{% block main %} +

{{ page.title }}

+ + {{ page.content | safe }} +{% endblock main %} + +{% block after_main %} +
+
+

Comments

+ +
+ +{% endblock after_main %} + + diff --git a/blog/templates/news-section.html b/blog/templates/news-section.html new file mode 100644 index 00000000..4126e35b --- /dev/null +++ b/blog/templates/news-section.html @@ -0,0 +1,28 @@ +{% extends "base.html" %} + +{% import "macros.html" as macros %} + +{% block title %}{{ section.title }} | {{ config.title }}{% endblock title %} + +{% block main %} + +

{{ section.title }}

+ +{% block introduction %}{% endblock introduction %} + +
+ {% for page in section.pages|reverse %} +
+

{{ page.title }}

+ +
+ {{ page.summary | safe}} + read more… +
+
+ {% endfor %} +
+ +{% endblock main %}