Use dates on recently updated

This commit is contained in:
mDuo13
2018-05-07 16:15:25 -07:00
parent ef0ab508f8
commit eb7817ddcc
4 changed files with 17 additions and 7 deletions

View File

@@ -898,6 +898,13 @@ a.current {
margin-top: 5px;
}
.recently-updated-date {
font-style: italic;
color: #6B7075;
font-size: 13px;
padding-left: 8px;
}
.splash-head {
background-color: #102b3e;
background-image: url("../img/home-bg-cubes.jpg");

View File

@@ -45,9 +45,12 @@ targets:
github_forkurl: https://github.com/mDuo13/ripple-dev-portal
github_branch: 5layertest
recently_updated:
- introduction.html #TODO: update the recently_updated
# - tutorial-checks-send.html
# - reference-amendments.html
- html: introduction.html
date: 2018-05-07
# - html: capacity-planning.html
# date: 2018-05-04
- html: reliable-transaction-submission.html
date: 2018-04-16
pages:

View File

@@ -95,8 +95,8 @@
<div class="curated-links">
<ol>
{% for link in target.recently_updated %}
{% set linkpage = pages|selectattr("html", "equalto", link)|first %}
<li><a href="{{linkpage.html}}">{{linkpage.name}}</a></li>
{% set linkpage = pages|selectattr("html", "equalto", link.html)|first %}
<li><a href="{{linkpage.html}}">{{linkpage.name}}{% if link.date is defined %} <span class="recently-updated-date">({{link.date}})</span>{% endif %}</a></li>
{% endfor %}
</ol>
</div><!--/.curated-links-->

View File

@@ -74,8 +74,8 @@
<div class="curated-links">
<ol>
{% for link in target.recently_updated %}
{% set linkpage = pages|selectattr("html", "equalto", link)|first %}
<li><a href="{{linkpage.html}}">{{linkpage.name}}</a></li>
{% set linkpage = pages|selectattr("html", "equalto", link.html)|first %}
<li><a href="{{linkpage.html}}">{{linkpage.name}}{% if link.date is defined %} <span class="recently-updated-date">({{link.date}})</span>{% endif %}</a></li>
{% endfor %}
</ol>
</div><!--/.curated-links-->