diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2015-08-05 15:47:18 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2015-08-05 15:47:18 +0200 |
commit | 357100da75d3730e0106f8b301e056bbab70263c (patch) | |
tree | d553dbde806fbda5590d519fcbe2b5e322bbb39b | |
parent | 402e35da5fed8c608dd530f04413674f100c1ca1 (diff) | |
download | norsk-urskog-main-357100da75d3730e0106f8b301e056bbab70263c.tar.gz norsk-urskog-main-357100da75d3730e0106f8b301e056bbab70263c.tar.bz2 norsk-urskog-main-357100da75d3730e0106f8b301e056bbab70263c.zip |
Add archive page for collecting all posts.
-rw-r--r-- | blog/_i18n/en.yml | 2 | ||||
-rw-r--r-- | blog/_i18n/nb.yml | 2 | ||||
-rw-r--r-- | blog/archive.html | 21 | ||||
-rw-r--r-- | blog/index.html | 1 |
4 files changed, 26 insertions, 0 deletions
diff --git a/blog/_i18n/en.yml b/blog/_i18n/en.yml index 59b7031..63aef3a 100644 --- a/blog/_i18n/en.yml +++ b/blog/_i18n/en.yml @@ -5,7 +5,9 @@ global: titles: home: Home + all_news: All news home: latest_news: Latest news links: Links + older_news: Older news... diff --git a/blog/_i18n/nb.yml b/blog/_i18n/nb.yml index b84dc3f..a9e79cd 100644 --- a/blog/_i18n/nb.yml +++ b/blog/_i18n/nb.yml @@ -5,7 +5,9 @@ global: titles: home: Hjem + all_news: Alle nyheter home: latest_news: Siste nyheter links: Lenker + older_news: Eldre nyheter... diff --git a/blog/archive.html b/blog/archive.html new file mode 100644 index 0000000..5d6af7a --- /dev/null +++ b/blog/archive.html @@ -0,0 +1,21 @@ +--- +layout: default +--- + +<h1>{% t titles.all_news %}</h1> + +<section id="news" class="wide"> + {% for p in site.posts %} + <article> + <header> + <date>{{ p.date | date_to_string }}</date> + <h1> + <a href="{{ p.url }}">{{ p.title }}</a> + </h1> + </header> + <section> + {{ p.excerpt }} + </section> + </article> + {% endfor %} +</section> diff --git a/blog/index.html b/blog/index.html index 0ba564b..7ebe8b7 100644 --- a/blog/index.html +++ b/blog/index.html @@ -19,6 +19,7 @@ layout: default </section> </article> {% endfor %} + <a href="{{ '/archive.html' | prepend: site.baseurl }}">{% t home.older_news %}</a> </section> {% if site.links %} |