From b5306e09e86a457eae49aa3ab767855d4aa0e4e4 Mon Sep 17 00:00:00 2001
From: agusmakmun <summon.agus@gmail.com>
Date: Sat, 11 Jun 2016 04:35:11 +0700
Subject: [PATCH] register date, tags, and image project

---
 _layouts/project_single.html | 20 ++++++++++++++++++--
 _project/cool-project.md     |  1 +
 static/css/main.css          |  3 ++-
 3 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/_layouts/project_single.html b/_layouts/project_single.html
index 100f176..760be8b 100644
--- a/_layouts/project_single.html
+++ b/_layouts/project_single.html
@@ -5,10 +5,26 @@ layout: default
 
   <header class="post-header">
     <h1 class="post-title">{{ page.title }}</h1>
-    <hr />
+    {% for project in site.data.projects %}
+        {% if project.slug == page.slug %}
+            <span class="time">{{ project.date }}</span> &raquo; 
+            {% for tag in project.tags %}
+                <span class="tags tag-filter">{{ tag }}</span>
+            {% endfor %}
+        {% endif %}
+    {% endfor %}
   </header>
 
-  <div class="post-content">
+  <div class="content">
+    {% for project in site.data.projects %}
+        {% if project.slug == page.slug %}
+            <a href="/static/projects/{{ project.image }}" class="thickbox">
+                <img src="/static/projects/{{ project.image }}" alt="{{ page.title }}" title="{{ page.title }}">
+            </a>
+        {% endif %}
+    {% endfor %}
+    <hr />
+
     {{ content }}
   </div>
 
diff --git a/_project/cool-project.md b/_project/cool-project.md
index 2cca7cb..b27fe31 100644
--- a/_project/cool-project.md
+++ b/_project/cool-project.md
@@ -1,5 +1,6 @@
 ---
 layout: project_single
 title:  "Cool Project"
+slug: "cool-project"
 ---
 Just a demo text for now, which signifies there is lot of scope for improvement.
\ No newline at end of file
diff --git a/static/css/main.css b/static/css/main.css
index 99da2ee..720c774 100755
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -215,4 +215,5 @@ div.col-sm-3 img#about {
     padding: 10px 10px 5px;
     border-top: 1px solid #f0f0f0;
     border-bottom: 1px solid #f0f0f0;
-}
\ No newline at end of file
+}
+.post-content img, .content img {max-width: 100%}
\ No newline at end of file
-- 
GitLab