diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-11-08 09:05:51 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-11-08 09:05:51 +0300 |
commit | fdfed03411884c7c6da48f08e38f75c9ab2f35f7 (patch) | |
tree | 075d8b4968e3975ea5316b31a17521a44a4c55fe /_layouts | |
parent | index.html: get rid of double slashes (diff) | |
download | jekyll-theme-fdfed03411884c7c6da48f08e38f75c9ab2f35f7.tar.gz jekyll-theme-fdfed03411884c7c6da48f08e38f75c9ab2f35f7.zip |
put post dates beside the headers
Diffstat (limited to '')
-rw-r--r-- | _layouts/post.html | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/_layouts/post.html b/_layouts/post.html index 6c4737d..8ec7626 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,10 +1,18 @@ --- layout: default --- -<h1>{{ page.title }}</h1> -<p class="text-muted"> - <span class="glyphicon glyphicon-time"></span> Posted on {{ page.date | date: '%-d %B %Y' }} - {%- if page.category %} in <span class="glyphicon glyphicon-folder-open"></span> <a class="category" href="{{ '/' | relative_url }}{{ page.category | slugify: 'pretty' }}/">{{ page.category }}</a>{% endif %} -</p> +<div class="row post-header"> + <div class="col-xs-12 col-sm-8"> + <h1>{{ page.title }}</h1> + </div> + <div class="col-xs-12 col-sm-4 post-date"> + <p class="text-muted"> + {% if page.category %} + <span class="glyphicon glyphicon-folder-open"></span> <a class="category" href="{{ '/' | relative_url }}{{ page.category | slugify: 'pretty' }}/">{{ page.category }}</a> + {% endif %} + <span class="glyphicon glyphicon-time"></span> {{ page.date | date: '%-d %B %Y' }} + </p> + </div> +</div> {{ content }} <hr/> |