Skip to content

Commit

Permalink
register date, tags, and image project
Browse files Browse the repository at this point in the history
  • Loading branch information
agusmakmun committed Jun 10, 2016
1 parent 387a422 commit b5306e0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
20 changes: 18 additions & 2 deletions _layouts/project_single.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,26 @@

<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>

Expand Down
1 change: 1 addition & 0 deletions _project/cool-project.md
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 2 additions & 1 deletion static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,5 @@ div.col-sm-3 img#about {
padding: 10px 10px 5px;
border-top: 1px solid #f0f0f0;
border-bottom: 1px solid #f0f0f0;
}
}
.post-content img, .content img {max-width: 100%}

0 comments on commit b5306e0

Please sign in to comment.