Skip to content

Commit

Permalink
adds date published
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyyee committed Apr 27, 2017
1 parent e1e026b commit 4df95db
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions public/_helpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,16 @@
{% set url = learn.url %}
{% set thumb = learn.thumbnail %}
{% set author = learn.author %}

{% set datePublished = learn.date_published %}
<li>
<div>
<div>
<a itemprop="url" href="{{ url }}" class="no-underline">
<img src="{{ thumb }}"/>
<h3>{{ name }}</h3>
</a>
{{ description }}
<time datetime="{{ datePublished }}">{{ datePublished }}</time>
<p>{{ description }}</p>
</div>
</div>
</li>
Expand Down
6 changes: 4 additions & 2 deletions public/_learning.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{% from '_helpers.html' import learning_item %}

<section class="notifications" id="notifications">
<section class="learning" id="learning">
{% block learning %}
{{ learning_item('progressive-webvr') }}
<ul>
{{ learning_item('progressive-webvr') }}
</ul>
{% endblock %}
</section>
3 changes: 2 additions & 1 deletion public/learning.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"url": "https://unboring.net/workflows/progressive-enhancement/",
"author": "Arturo Paracuellos",
"author_url": "unboring.net",
"thumbnail": "articles/progressive-webvr/thumbnail.png"
"thumbnail": "articles/progressive-webvr/thumbnail.png",
"date_published": "5-April-2017"
}
}

0 comments on commit 4df95db

Please sign in to comment.