diff options
Diffstat (limited to 'blog')
-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 %} |