From 23fa25287f8116b5f68c5e1a026d61259c33d821 Mon Sep 17 00:00:00 2001 From: Youssef Raafat Date: Tue, 12 Feb 2019 18:25:13 +0200 Subject: [PATCH] Modify Layouts --- _layouts/{about.html => page.html} | 0 _layouts/post.html | 52 ++++++++++++++---------------- _sass/_articles.scss | 2 +- pages/about.md | 2 +- 4 files changed, 27 insertions(+), 29 deletions(-) rename _layouts/{about.html => page.html} (100%) diff --git a/_layouts/about.html b/_layouts/page.html similarity index 100% rename from _layouts/about.html rename to _layouts/page.html diff --git a/_layouts/post.html b/_layouts/post.html index 305c77edb..16b3034ea 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,34 +1,32 @@ --- -layout: default +layout: page --- -
-

{{ page.title }}

-

{{ page.title }}

- - {% assign words = content | number_of_words %} - {% if words < 360 %} - less than 1 min read time - {% else %} - {{ words | divided_by:180 }} mins read time - {% endif %} - + - Tags: - {% for tag in page.tags %} - {{ tag }} - {% endfor %} -

+{{ content }} - {{ content }} - -
- This Article is open source. Noticed a typo?
- Or something unclear? Improve this article on - GitHub. -
-
\ No newline at end of file + \ No newline at end of file diff --git a/_sass/_articles.scss b/_sass/_articles.scss index ea520b532..c58e3a19b 100644 --- a/_sass/_articles.scss +++ b/_sass/_articles.scss @@ -17,7 +17,7 @@ .article-metadata { font-size: 14px; - margin-top: -10px; + margin-top: -6px; } footer { diff --git a/pages/about.md b/pages/about.md index abb332f3d..f9802bd97 100644 --- a/pages/about.md +++ b/pages/about.md @@ -1,5 +1,5 @@ --- -layout: about +layout: page title: about permalink: /about/