diff --git a/_layouts/project_single.html b/_layouts/project_single.html index 100f176da332f675c243e8ac6b7ba16ee8b54305..760be8b7ab12bfe99f6ed3fe749b2179662359cb 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> » + {% 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 2cca7cb5fb507442e26d5b791b1cb72c617ad0d3..b27fe31376ac8c8e3c0bcd10dec89652394407cc 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 99da2ee8dd0409586f6c5da8e02517c040781855..720c7741ee6f1049e9e128c4d7aa37d15ab31506 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