aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_layouts
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-05-13 05:17:58 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-05-13 05:17:58 +0200
commit622d36084a2a03b9d27c939f5a11b2f8871f4aa3 (patch)
tree1bcbaac4bac0acfd300419f0c9bee9c6ad9522b2 /_layouts
parentfeed: muted post excerpts (diff)
downloadjekyll-theme-622d36084a2a03b9d27c939f5a11b2f8871f4aa3.tar.gz
jekyll-theme-622d36084a2a03b9d27c939f5a11b2f8871f4aa3.zip
posts: separate include for post header
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/post.html16
1 files changed, 1 insertions, 15 deletions
diff --git a/_layouts/post.html b/_layouts/post.html
index 92fa965..12eade5 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -1,19 +1,5 @@
---
layout: default
---
-<div class="post-header">
- <h1>{{ page.title }}</h1>
- <div class="post-date">
- <p class="text-muted">
- {%- comment -%}
- Collapse the Liquid whitespace here, so that no extra spaces
- between <span>s are introduced.
- {%- endcomment -%}
- {%- if page.category -%}
- <span class="glyphicon glyphicon-folder-open"></span>&nbsp;<a class="category" href="{{ '/' | relative_url }}{{ page.category | slugify: 'pretty' }}/">{{ page.category }}</a>
- {%- endif -%}
- <span class="glyphicon glyphicon-time"></span>&nbsp;{{ page.date | date: '%-d&nbsp;%b&nbsp;%Y' }}
- </p>
- </div>
-</div>
+{% include jekyll-theme/posts/header.html %}
{{ content }}