mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2024-12-22 00:12:41 +00:00
Updated style
This commit is contained in:
parent
38dd4aa125
commit
61a124ad23
@ -173,6 +173,14 @@ a {
|
||||
}
|
||||
}
|
||||
|
||||
.mg-list-title {
|
||||
font-size: 2em;
|
||||
line-height: 42px;
|
||||
font-weight: 400;
|
||||
text-transform: none;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
|
||||
.mg-footer {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
@ -103,6 +103,13 @@ a {
|
||||
text-decoration: none;
|
||||
color: #FF6600; }
|
||||
|
||||
.mg-list-title {
|
||||
font-size: 2em;
|
||||
line-height: 42px;
|
||||
font-weight: 400;
|
||||
text-transform: none;
|
||||
margin-top: 0.5em; }
|
||||
|
||||
.mg-footer {
|
||||
margin-bottom: 1em; }
|
||||
|
||||
|
@ -9,13 +9,13 @@
|
||||
<h1 class="uk-heading-large">Archives</h1>
|
||||
|
||||
{% for article in dates %}
|
||||
<article class="uk-article" itemtype="http://schema.org/BlogPosting" itemscope="itemscope" itemprop="blogPost">
|
||||
<a href="{{ article.url }}" class="uk-article-title uk-link-muted" itemprop="name url">{{ article.title }}</a>
|
||||
<article class="uk-article">
|
||||
<a href="{{ article.url }}" class="uk-article-title uk-link-muted mg-list-title">{{ article.title }}</a>
|
||||
<p class="uk-article-meta">
|
||||
<time datetime="{{ article.date.strftime('%Y-%m-%d') }}" itemprop="datePublished">{{ article.locale_date }}</time>
|
||||
<time datetime="{{ article.date.strftime('%Y-%m-%d') }}">{{ article.locale_date }}</time>
|
||||
</p>
|
||||
<p class="uk-article-lead" itemprop="description">{{ article.summary }}</p>
|
||||
<hr class="uk-article-divider">
|
||||
<p>{{ ' '.join(article.content.split(' ')[0:75])|striptags }}...</p>
|
||||
|
||||
</article>
|
||||
{% endfor %}
|
||||
|
||||
|
@ -6,19 +6,23 @@
|
||||
|
||||
{% block content %}
|
||||
<div class="uk-width-medium-4-5">
|
||||
<h1>Categories</h1>
|
||||
<h1 class="uk-heading-large">Categories</h1>
|
||||
{% for category, articles in categories %}
|
||||
<h2><a href="{{ SITEURL}}/{{ category.url}}" class="uk-link-muted">{{ category|capitalize }}</a></h2>
|
||||
{% for article in articles %}
|
||||
|
||||
<article class="uk-article">
|
||||
<a href="{{ SITEURL }}/{{ article.url }}" class="uk-article-title uk-link-muted">{{ article.title }}</a>
|
||||
<p class="uk-article-meta">{{ article.locale_date}} • <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></p>
|
||||
<p class="uk-article-lead">{{ article.summary }}</p>
|
||||
<hr class="uk-article-divider">
|
||||
<a href="{{ SITEURL }}/{{ article.url }}" class="uk-article-title uk-link-muted mg-list-title">{{ article.title }}</a>
|
||||
<p class="uk-article-meta">
|
||||
<time datetime="{{ article.date.strftime('%Y-%m-%d') }}">{{ article.locale_date }}</time>
|
||||
</p>
|
||||
<p>{{ ' '.join(article.content.split(' ')[0:75])|striptags }}...</p>
|
||||
</article>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
<hr>
|
||||
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user