Adding archives
This commit is contained in:
parent
b4b0381703
commit
5f383add88
3 changed files with 53 additions and 8 deletions
|
@ -326,3 +326,48 @@ blockquote::after {
|
|||
padding: 0 10px;
|
||||
font-size: 120%;
|
||||
}
|
||||
|
||||
/************************************************/
|
||||
|
||||
/* Graphviz */
|
||||
|
||||
div.graphviz {
|
||||
margin: 10px;
|
||||
}
|
||||
div.graphviz img {
|
||||
display: block;
|
||||
padding: 5px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
text-align: center;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
border-color: rgb(192, 177, 177);
|
||||
}
|
||||
|
||||
/************************************************/
|
||||
|
||||
/* Archive Listing */
|
||||
|
||||
dl.archive {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
margin: 0
|
||||
}
|
||||
dt.archive {
|
||||
float: left;
|
||||
width: 50%;
|
||||
/* adjust the width; make sure the total of both is 100% */
|
||||
font-weight: 600;
|
||||
padding: 0;
|
||||
margin: 0
|
||||
}
|
||||
dd.archive {
|
||||
float: left;
|
||||
width: 50%;
|
||||
/* adjust the width; make sure the total of both is 100% */
|
||||
padding: 0;
|
||||
margin: 0
|
||||
}
|
||||
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
{% block content %}
|
||||
<h1>Archives for {{ SITENAME }}</h1>
|
||||
|
||||
<dl>
|
||||
<dl class="archive">
|
||||
{% for article in dates %}
|
||||
<dt>{{ article.locale_date }}</dt>
|
||||
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
|
||||
<dt class="archive">{{ article.locale_date }}</dt>
|
||||
<dd class="archive"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
{% endblock %}
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
{% block content %}
|
||||
<h1>Archives for {{ period | reverse | join(' ') }}</h1>
|
||||
|
||||
<dl>
|
||||
<dl class="archive">
|
||||
{% for article in dates %}
|
||||
<dt>{{ article.locale_date }}</dt>
|
||||
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
|
||||
<dt class="archive">{{ article.locale_date }}</dt>
|
||||
<dd class="archive"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue