aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-01-23 18:55:11 +0300
committerValentin Popov <info@valentineus.link>2020-01-23 18:55:11 +0300
commita4251a91b44c44bb9f3586f206b8dabaf03f3fdd (patch)
tree972eeac43226ef6e5b08d5722c33b058cc260a62
parent30c54ec5a3a436de0f775ac617c1d70fd4f4ff77 (diff)
downloadvalentineus.github.io-a4251a91b44c44bb9f3586f206b8dabaf03f3fdd.tar.xz
valentineus.github.io-a4251a91b44c44bb9f3586f206b8dabaf03f3fdd.zip
Updated the header on the posts page
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--_layouts/post.html27
-rw-r--r--_scss/base/_main.scss1
-rw-r--r--_scss/components/_header.scss9
3 files changed, 16 insertions, 21 deletions
diff --git a/_layouts/post.html b/_layouts/post.html
index 8270973..9e0a766 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -2,20 +2,25 @@
layout: default
---
+{% assign date = page.date | date: '%Y-%m-%d' | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
+{% assign title = site.title | strip_newlines | strip_html| strip | normalize_whitespace | smartify | xml_escape %}
+
<article class="container">
- <header>
- <h1>{{ page.title | strip_newlines | strip_html| strip | normalize_whitespace | smartify | xml_escape }}</h1>
+ <small>
+ <span>Published</span>
+ <time datetime="{{ page.date | date_to_xmlschema }}">{{ date }}</time>
+ <span>on</span>
+ <a href="{{ site.url | absolute_url | uri_escape }}" target="_self">{{ title }}</a>
+ <span>|</span>
+ <a href="{{ page.url | absolute_url | uri_escape }}" target="_blank">Permalink</a>
+ </small>
- <small>
- Published <time datetime="{{ page.date | date_to_xmlschema }}">
- {{ page.date | date: '%Y-%m-%d' | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
- </time> on <a href="{{ site.url | absolute_url | uri_escape }}" target="_self">
- {{ site.title | strip_newlines | strip_html| strip | normalize_whitespace | smartify | xml_escape }}
- </a> | <a href="{{ page.url | absolute_url | uri_escape }}" target="_blank">
- Permalink
- </a>
- </small>
+ <header>
+ <h1>{{ title }}</h1>
</header>
{{ content }}
</article>
+
+{% assign date = "" %}
+{% assign title = "" %}
diff --git a/_scss/base/_main.scss b/_scss/base/_main.scss
index 8e9bc80..810b2d4 100644
--- a/_scss/base/_main.scss
+++ b/_scss/base/_main.scss
@@ -1,2 +1 @@
@import 'components/core';
-@import 'components/header';
diff --git a/_scss/components/_header.scss b/_scss/components/_header.scss
deleted file mode 100644
index c5b95b8..0000000
--- a/_scss/components/_header.scss
+++ /dev/null
@@ -1,9 +0,0 @@
-header {
- border-bottom: 1px solid $color-bg-alt;
-}
-
-article {
- header {
- padding-bottom: 16px;
- }
-}