summaryrefslogtreecommitdiffstats
path: root/blog/_includes
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-08-25 20:41:32 +0200
committerHarald Eilertsen <haraldei@anduin.net>2015-08-25 20:41:32 +0200
commit932f5651d0e2ec8e5117f54b911fb126e7b1b32c (patch)
treee7d0b54eca4591bd7cc768e1805f325667c84a25 /blog/_includes
parent6c4846c3d82529c17ba1c263d6c04ba48e18ab7e (diff)
downloadnorsk-urskog-main-932f5651d0e2ec8e5117f54b911fb126e7b1b32c.tar.gz
norsk-urskog-main-932f5651d0e2ec8e5117f54b911fb126e7b1b32c.tar.bz2
norsk-urskog-main-932f5651d0e2ec8e5117f54b911fb126e7b1b32c.zip
Move post and post header to separate partials, and change styling.
Diffstat (limited to 'blog/_includes')
-rw-r--r--blog/_includes/post-excerpt.html9
-rw-r--r--blog/_includes/post-header.html7
2 files changed, 16 insertions, 0 deletions
diff --git a/blog/_includes/post-excerpt.html b/blog/_includes/post-excerpt.html
new file mode 100644
index 0000000..73c4478
--- /dev/null
+++ b/blog/_includes/post-excerpt.html
@@ -0,0 +1,9 @@
+{% assign post = include.post %}
+<article class="post">
+ {% include post-header.html post = post%}
+ <section class="post-body">
+ {{ post.excerpt }}
+
+ <p><a href="{{ post.url }}">{% t global.read_more %}</a></p>
+ </section>
+</article>
diff --git a/blog/_includes/post-header.html b/blog/_includes/post-header.html
new file mode 100644
index 0000000..e1baeb8
--- /dev/null
+++ b/blog/_includes/post-header.html
@@ -0,0 +1,7 @@
+{% assign post = include.post %}
+<header class="post-header">
+ <date>{{ post.date | date_to_string }}</date>
+ <h1>
+ <a href="{{ post.url }}">{{ post.title }}</a>
+ </h1>
+</header>