diff options
Diffstat (limited to '_layouts')
-rw-r--r-- | _layouts/all_posts.html | 12 | ||||
-rw-r--r-- | _layouts/default.html | 16 | ||||
-rw-r--r-- | _layouts/home.html | 14 | ||||
-rw-r--r-- | _layouts/page.html | 7 | ||||
-rw-r--r-- | _layouts/post.html | 8 |
5 files changed, 57 insertions, 0 deletions
diff --git a/_layouts/all_posts.html b/_layouts/all_posts.html new file mode 100644 index 0000000..182a2d0 --- /dev/null +++ b/_layouts/all_posts.html @@ -0,0 +1,12 @@ +--- +layout: default +--- + +<h1>{{ page.title }}</h1> + +{{ content }} + +{% for post in site.posts %} + <small>{{ post.date | date: "%B %-d, %Y" }}</small><br><a href="{{ post.url }}">{{ post.title }}</a><br><br> +{% endfor %} + diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..f969a9d --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html lang="{{ page.lang | default: site.lang | default: 'en' }}"> + + {%- include head.html -%} + + <body> + <div class="wrapper"> + {%- include header.html -%} + <main> + {{ content }} + </main> + {%- include footer.html -%} + </div> + </body> + +</html> diff --git a/_layouts/home.html b/_layouts/home.html new file mode 100644 index 0000000..5fea726 --- /dev/null +++ b/_layouts/home.html @@ -0,0 +1,14 @@ +--- +layout: default +--- + +{{ content }} + +{% for post in site.posts limit:5 %} +<div class="post"> + <h3><a href="{{ post.url }}">{{ post.title }}</a></h3> + <span class="post-date">{{ post.date | date: "%B %-d, %Y" }}</span> + {{ post.excerpt }} +</div> +{% endfor %} + diff --git a/_layouts/page.html b/_layouts/page.html new file mode 100644 index 0000000..80476ae --- /dev/null +++ b/_layouts/page.html @@ -0,0 +1,7 @@ +--- +layout: default +--- + +<h1>{{ page.title }}</h1> + +{{ content }} diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 0000000..50545e8 --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,8 @@ +--- +layout: default +--- + +<h1>{{ page.title }}</h1> +<p><small>{{ page.date | date: "%B %-d, %Y" }}</small></p> + +{{ content }} |