From e0879dc76640478f412b3cabd98ee2af5f874654 Mon Sep 17 00:00:00 2001 From: Abdel Olakara Date: Wed, 25 Jun 2014 19:25:55 +0400 Subject: [PATCH] Completed basic functionality of blog, post page 1. Completed basic layout of blog home page and post page. 2. Added Disqus widget to post page 3. Added tags to the post page --- _config.yml | 2 +- _layouts/post.html | 76 ++++++++++++++++++++++++++++++++++------------ assets/css/app.css | 18 ++++++++--- blog/index.html | 21 +++++++------ 4 files changed, 83 insertions(+), 34 deletions(-) diff --git a/_config.yml b/_config.yml index 61527c1..225a901 100644 --- a/_config.yml +++ b/_config.yml @@ -31,4 +31,4 @@ navigation: url: /about/ # Custom vars -version: 0.2.0 \ No newline at end of file +version: 0.5.0 \ No newline at end of file diff --git a/_layouts/post.html b/_layouts/post.html index f2ba6b3..dd76709 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -2,24 +2,60 @@ layout: master --- -
-

{{ page.title }}

- - {{ content }} -
+
- \ No newline at end of file +
+
+

   Abdel Raoof's Blog

+
+
+ +
+
+

{{ page.title }}

+
+  Published On {{ page.date | date: "%B %d, %Y" }} +
+ {{ content }} +
+ Tags: + {% if page.tags %} + {% for tag in page.tags %} + {{tag}} + {% endfor %} + {% else %} + None + {% endif %} +
+ + + comments powered by Disqus + +
+
+ + \ No newline at end of file diff --git a/assets/css/app.css b/assets/css/app.css index c906ac7..962a43b 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -1,3 +1,17 @@ +.justified { + text-align: justify; +} + +.publish-tag { + font-variant: small-caps; + color: #aaa; + padding-bottom: 10px; +} + +.btn-back { + margin-left: -46px; + text-decoration:none !important; +} .fa-2 { font-size: 3em; @@ -16,10 +30,6 @@ } .container > header { - width: 90%; - max-width: 69em; - margin: 0 auto; - padding: 2.875em 1.875em 3.875em 1.875em; color: #2672EC; } diff --git a/blog/index.html b/blog/index.html index db5035d..0efb2f0 100644 --- a/blog/index.html +++ b/blog/index.html @@ -6,19 +6,23 @@
-
-     

Abdel Raoof's Blog

+
+
+

   Abdel Raoof's Blog

+
-
+
{% for post in paginator.posts %} -
+

{{ post.title }}

- +
+  PUBLISHED ON {{ post.date | date_to_string }} +

{{ post.content }}
@@ -29,7 +33,7 @@

{% if paginator.next_page %} - Older + Older {% else %} Older {% endif %} @@ -37,15 +41,14 @@

{% if paginator.previous_page %} {% if paginator.page == 2 %} - Newer + Newer {% else %} - Newer + Newer {% endif %} {% else %} Newer {% endif %}

-