Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jeffrey Phillips Freeman
agusmakmun-github-io
Commits
b5306e09
Commit
b5306e09
authored
Jun 11, 2016
by
agusmakmun
Browse files
register date, tags, and image project
parent
387a4226
Changes
3
Hide whitespace changes
Inline
Side-by-side
_layouts/project_single.html
View file @
b5306e09
...
...
@@ -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>
...
...
_project/cool-project.md
View file @
b5306e09
---
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
static/css/main.css
View file @
b5306e09
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment