1
0
mirror of https://github.com/avinal/avinal.github.io.git synced 2026-07-04 07:40:09 +05:30

themes updated

This commit is contained in:
avinal
2020-09-29 11:19:46 +05:30
parent 9839145efe
commit 800cb1f297
36 changed files with 6850 additions and 1847 deletions
+10 -9
View File
@@ -1,18 +1,19 @@
{% extends "base.html" %}
{% block title %}
Archives {{ super() }}
Archives {{ super() }}
{% endblock %}
{% block page_header %}
Archives
Archives
{% endblock %}
{% block content %}
<dl class="row">
{% for article in dates %}
<dt class="col-sm-4">{{ article.locale_date }}</dt>
<dd class="col-sm-8"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}{% if article.link %} <i class="fas fa-link"></i>{% endif %}</a></dd>
{% endfor %}
</dl>
{% endblock %}
<dl class="row">
{% for article in dates %}
<dt class="col-sm-4">{{ article.locale_date }}</dt>
<dd class="col-sm-8"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}{% if article.link %} <i
class="fas fa-link"></i>{% endif %}</a></dd>
{% endfor %}
</dl>
{% endblock %}
+54 -54
View File
@@ -1,70 +1,70 @@
{% extends "base.html" %}
{% block head %}
{{ super() }}
<meta name="description" content="{{ article.summary|striptags }}">
{{ super() }}
<meta name="description" content="{{ article.summary|striptags }}">
{% endblock %}
{% block title %}
{{ article.title|striptags }} {{ super() }}
{{ article.title|striptags }} {{ super() }}
{% endblock %}
{% block page_header %}
{% if article.link %}
<a href="{{ article.link }}" rel="bookmark">
{% if article.link %}
<a href="{{ article.link }}" rel="bookmark">
{% endif %}
{{ article.title }}
{% if article.link %}
<i class="fas fa-link"></i></a>
{% endif %}
<i class="fas fa-link"></i></a>
{% endif %}
{% endblock %}
{% block content %}
<article class="article">
<header>
<ul class="list-inline">
<li class="list-inline-item text-muted" title="{{ article.date.isoformat() }}">
<i class="fas fa-clock"></i>
{{ article.locale_date }}
</li>
<li class="list-inline-item">
<i class="fas fa-folder-open"></i>
<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
</li>
{% if not HIDE_AUTHORS and article.authors %}
<li class="list-inline-item">
<i class="fas fa-user"></i>
{% for author in article.authors %}
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>{% if not loop.last %}, {% endif %}
{% endfor %}
</li>
{% endif %}
{% if article.tags %}
<li class="list-inline-item">
<i class="fas fa-tag"></i>
{% for tag in article.tags %}
<a href="{{ SITEURL }}/{{ tag.url }}">#{{ tag }}</a>{% if not loop.last %}, {% endif %}
{% endfor %}
</li>
{% endif %}
{% if article.translations %}
<li class="list-inline-item">
<i class="fas fa-globe"></i>
{% for translation in article.translations %}
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
{% endfor %}
</li>
{% endif %}
</ul>
</header>
<div class="content">
{{ article.content }}
{% if article.link %}
<p class="link-button"><a href="{{ article.link }}" rel="bookmark">
<i class="fas fa-link"></i> view link
</a></p>
<article class="article">
<header>
<ul class="list-inline">
<li class="list-inline-item text-muted" title="{{ article.date.isoformat() }}">
<i class="fas fa-clock"></i>
{{ article.locale_date }}
</li>
<li class="list-inline-item">
<i class="fas fa-folder-open"></i>
<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
</li>
{% if not HIDE_AUTHORS and article.authors %}
<li class="list-inline-item">
<i class="fas fa-user"></i>
{% for author in article.authors %}
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>{% if not loop.last %}, {% endif %}
{% endfor %}
</li>
{% endif %}
</div>
</article>
{% include 'include/comments.html' %}
{% endblock %}
{% if article.tags %}
<li class="list-inline-item">
<i class="fas fa-tag"></i>
{% for tag in article.tags %}
<a href="{{ SITEURL }}/{{ tag.url }}">#{{ tag }}</a>{% if not loop.last %}, {% endif %}
{% endfor %}
</li>
{% endif %}
{% if article.translations %}
<li class="list-inline-item">
<i class="fas fa-globe"></i>
{% for translation in article.translations %}
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
{% endfor %}
</li>
{% endif %}
</ul>
</header>
<div class="content">
{{ article.content }}
{% if article.link %}
<p class="link-button"><a href="{{ article.link }}" rel="bookmark">
<i class="fas fa-link"></i> view link
</a></p>
{% endif %}
</div>
</article>
{% include 'include/comments.html' %}
{% endblock %}
+3 -3
View File
@@ -1,9 +1,9 @@
{% extends "index.html" %}
{% block title %}
{{ author }} Articles | {{ SITENAME }}
{{ author }} Articles | {{ SITENAME }}
{% endblock %}
{% block page_header %}
{{ author }} Articles
{% endblock %}
{{ author }} Articles
{% endblock %}
+11 -11
View File
@@ -1,20 +1,20 @@
{% extends "base.html" %}
{% block title %}
Authors {{ super() }}
Authors {{ super() }}
{% endblock %}
{% block page_header %}
Authors
Authors
{% endblock %}
{% block content %}
<table class="table table-bordered table-striped">
{% for author, articles in authors|sort %}
<tr>
<td><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a></td>
<td>{{ articles|count }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}
<table class="table table-bordered table-striped">
{% for author, articles in authors|sort %}
<tr>
<td><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a></td>
<td>{{ articles|count }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}
+6 -6
View File
@@ -19,11 +19,11 @@
<link rel="canonical" href="{{ SITEURL }}/{{ output_file }}">
{% if RFG_FAVICONS %}
<link rel="apple-touch-icon" href="{{ SITEURL }}/apple-touch-icon.png" sizes="180x180">
<link rel="icon" type="image/png" href="{{ SITEURL }}/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="{{ SITEURL }}/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="{{ SITEURL }}/manifest.json">
<meta name="theme-color" content="#333333">
<link rel="apple-touch-icon" href="{{ SITEURL }}/apple-touch-icon.png" sizes="180x180">
<link rel="icon" type="image/png" href="{{ SITEURL }}/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="{{ SITEURL }}/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="{{ SITEURL }}/manifest.json">
<meta name="theme-color" content="#333333">
{% endif %}
<link rel="stylesheet" href="{{ url(BOOTSTRAP_CSS or '/theme/css/bootstrap.min.css') }}">
@@ -65,4 +65,4 @@
{% endfor %}
</body>
</html>
</html>
+11 -11
View File
@@ -1,20 +1,20 @@
{% extends "base.html" %}
{% block title %}
Categories {{ super() }}
Categories {{ super() }}
{% endblock %}
{% block page_header %}
Categories
Categories
{% endblock %}
{% block content %}
<table class="table table-bordered table-striped">
{% for category, articles in categories|sort %}
<tr>
<td><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></td>
<td>{{ articles|count }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}
<table class="table table-bordered table-striped">
{% for category, articles in categories|sort %}
<tr>
<td><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></td>
<td>{{ articles|count }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}
+3 -3
View File
@@ -1,9 +1,9 @@
{% extends "index.html" %}
{% block title %}
{{ category }} Articles | {{ SITENAME }}
{{ category }} Articles | {{ SITENAME }}
{% endblock %}
{% block page_header %}
{{ category }} Articles
{% endblock %}
{{ category }} Articles
{% endblock %}
+46 -46
View File
@@ -1,53 +1,53 @@
{% if GOOGLE_ANALYTICS %}
<script>
(function(i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function() {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o);
a.async = 1;
a.src = g;
m = s.getElementsByTagName(o)[0];
m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
ga('create', '{{ GOOGLE_ANALYTICS }}', 'auto');
ga('send', 'pageview');
</script>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o);
a.async = 1;
a.src = g;
m = s.getElementsByTagName(o)[0];
m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
ga('create', '{{ GOOGLE_ANALYTICS }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
{% if GAUGES %}
<script>
var _gauges = _gauges || [];
(function() {
var t = document.createElement('script');
t.type = 'text/javascript';
t.async = true;
t.id = 'gauges-tracker';
t.setAttribute('data-site-id', '{{ GAUGES }}');
t.src = 'https://secure.gaug.es/track.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(t, s);
})();
</script>
<script>
var _gauges = _gauges || [];
(function () {
var t = document.createElement('script');
t.type = 'text/javascript';
t.async = true;
t.id = 'gauges-tracker';
t.setAttribute('data-site-id', '{{ GAUGES }}');
t.src = 'https://secure.gaug.es/track.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(t, s);
})();
</script>
{% endif %}
{% if PIWIK_URL and PIWIK_SITE_ID %}
<script>
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u = '{{ PIWIK_URL }}/';
_paq.push(['setTrackerUrl', u + 'piwik.php']);
_paq.push(['setSiteId', '{{ PIWIK_SITE_ID }}']);
var g = document.createElement('script');
g.type = 'text/javascript';
g.async = true;
g.defer = true;
g.src = u + 'piwik.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(g, s);
})();
</script>
{% endif %}
<script>
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function () {
var u = '{{ PIWIK_URL }}/';
_paq.push(['setTrackerUrl', u + 'piwik.php']);
_paq.push(['setSiteId', '{{ PIWIK_SITE_ID }}']);
var g = document.createElement('script');
g.type = 'text/javascript';
g.async = true;
g.defer = true;
g.src = u + 'piwik.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(g, s);
})();
</script>
{% endif %}
+20 -19
View File
@@ -1,20 +1,21 @@
{% if DISQUS_SITENAME %}
<hr>
<div id="disqus_thread"></div>
<script>
var disqus_config = function() {
this.page.url = '{{ SITEURL }}/{{ output_file }}';
this.page.identifier = '{{ article.slug }}';
};
(function() {
var d = document;
var s = d.createElement('script');
s.src = '//{{ DISQUS_SITENAME }}.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript class="text-muted">
Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
</noscript>
{% endif %}
<hr>
<div id="disqus_thread"></div>
<script>
var disqus_config = function () {
this.page.url = '{{ SITEURL }}/{{ output_file }}';
this.page.identifier = '{{ article.slug }}';
};
(function () {
var d = document;
var s = d.createElement('script');
s.src = '//{{ DISQUS_SITENAME }}.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript class="text-muted">
Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by
Disqus.</a>
</noscript>
{% endif %}
+11 -8
View File
@@ -1,22 +1,25 @@
<div class="row">
<ul class="col-sm-6 list-inline">
{% if not FOOTER_LINKS %}
{% if not FOOTER_LINKS %}
{% if not HIDE_AUTHORS %}
<li class="list-inline-item"><a href="{{ SITEURL }}/{{ AUTHORS_URL or AUTHORS_SAVE_AS or 'authors.html' }}">Authors</a></li>
<li class="list-inline-item"><a
href="{{ SITEURL }}/{{ AUTHORS_URL or AUTHORS_SAVE_AS or 'authors.html' }}">Authors</a></li>
{% endif %}
<li class="list-inline-item"><a href="{{ SITEURL }}/{{ ARCHIVES_URL or ARCHIVES_SAVE_AS or 'archives.html' }}">Archives</a></li>
<li class="list-inline-item"><a href="{{ SITEURL }}/{{ CATEGORIES_URL or CATEGORIES_SAVE_AS or 'categories.html' }}">Categories</a></li>
<li class="list-inline-item"><a
href="{{ SITEURL }}/{{ ARCHIVES_URL or ARCHIVES_SAVE_AS or 'archives.html' }}">Archives</a></li>
<li class="list-inline-item"><a
href="{{ SITEURL }}/{{ CATEGORIES_URL or CATEGORIES_SAVE_AS or 'categories.html' }}">Categories</a></li>
{% if tags|length %}
<li class="list-inline-item"><a href="{{ SITEURL }}/{{ TAGS_URL or TAGS_SAVE_AS or 'tags.html' }}">Tags</a></li>
<li class="list-inline-item"><a href="{{ SITEURL }}/{{ TAGS_URL or TAGS_SAVE_AS or 'tags.html' }}">Tags</a></li>
{% endif %}
{% else %}
{% else %}
{% for title, link in FOOTER_LINKS %}
<li class="list-inline-item"><a href="{{ url(link) }}">{{ title }}</a></li>
{% endfor %}
{% endif %}
{% endif %}
</ul>
<p class="col-sm-6 text-sm-right text-muted">
Generated by <a href="https://github.com/getpelican/pelican" target="_blank">Pelican</a>
/ <a href="https://github.com/nairobilug/pelican-alchemy" target="_blank">&#x2728;</a>
</p>
</div>
</div>
+26 -26
View File
@@ -13,37 +13,37 @@ fab fa-{{icon}}
{%- endmacro -%}
<div class="row">
{% if SITEIMAGE %}
<div class="col-sm-4">
<a href="{{ SITEURL }}/">
<img class="img-fluid rounded" src={{ url(SITEIMAGE) }} alt="{{ SITENAME }}">
</a>
</div>
<div class="col-sm-4">
<a href="{{ SITEURL }}/">
<img class="img-fluid rounded" src={{ url(SITEIMAGE) }} alt="{{ SITENAME }}">
</a>
</div>
{% endif %}
<div class="col-sm-{% if SITEIMAGE %}8{% else %}12{% endif %}">
<h1 class="title"><a href="{{ SITEURL }}/">{{ SITENAME }}</a></h1>
{% if SITESUBTITLE %}
<p class="text-muted">{{ SITESUBTITLE }}</p>
<p class="text-muted">{{ SITESUBTITLE }}</p>
{% endif %}
{% if LINKS or (DISPLAY_PAGES_ON_MENU and pages) or ICONS %}
<ul class="list-inline">
{% for title, link in LINKS %}
<li class="list-inline-item"><a href="{{ url(link) }}" target="_blank">{{ title }}</a></li>
{% endfor %}
{% if DISPLAY_PAGES_ON_MENU %}
{% for page in pages %}
{% if LINKS and loop.first %}
<li class="list-inline-item text-muted">|</li>
{% endif %}
<li class="list-inline-item"><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
{% endfor %}
{% endif %}
{% for icon, link in ICONS %}
{% if (LINKS or (DISPLAY_PAGES_ON_MENU and pages)) and loop.first %}
<li class=" list-inline-item text-muted">|</li>
{% endif %}
<li class="list-inline-item"><a class="{{ fa(icon) }}" href="{{ url(link) }}" target="_blank"></a></li>
{% endfor %}
</ul>
<ul class="list-inline">
{% for title, link in LINKS %}
<li class="list-inline-item"><a href="{{ url(link) }}" target="_blank">{{ title }}</a></li>
{% endfor %}
{% if DISPLAY_PAGES_ON_MENU %}
{% for page in pages %}
{% if LINKS and loop.first %}
<li class="list-inline-item text-muted">|</li>
{% endif %}
<li class="list-inline-item"><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
{% endfor %}
{% endif %}
{% for icon, link in ICONS %}
{% if (LINKS or (DISPLAY_PAGES_ON_MENU and pages)) and loop.first %}
<li class=" list-inline-item text-muted">|</li>
{% endif %}
<li class="list-inline-item"><a class="{{ fa(icon) }}" href="{{ url(link) }}" target="_blank"></a></li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
</div>
@@ -1,24 +1,24 @@
{% if articles_paginator.num_pages > 1 %}
<hr>
<ul class="pagination">
{% if articles_page.has_previous() %}
<li class="page-item">
<a class="page-link" href="{{ SITEURL }}/{{ articles_previous_page.url }}">
<span aria-hidden="true">&laquo;</span>
<span class="sr-only">Previous</span>
</a>
</li>
{% endif %}
<li class="page-item">
<span class="page-link">{{ articles_page.number }} of {{ articles_paginator.num_pages }}</span>
</li>
{% if articles_page.has_next() %}
<li class="page-item">
<a class="page-link" href="{{ SITEURL }}/{{ articles_next_page.url }}">
<span aria-hidden="true">&raquo;</span>
<span class="sr-only">Next</span>
</a>
</li>
{% endif %}
</ul>
{% endif %}
<hr>
<ul class="pagination">
{% if articles_page.has_previous() %}
<li class="page-item">
<a class="page-link" href="{{ SITEURL }}/{{ articles_previous_page.url }}">
<span aria-hidden="true">&laquo;</span>
<span class="sr-only">Previous</span>
</a>
</li>
{% endif %}
<li class="page-item">
<span class="page-link">{{ articles_page.number }} of {{ articles_paginator.num_pages }}</span>
</li>
{% if articles_page.has_next() %}
<li class="page-item">
<a class="page-link" href="{{ SITEURL }}/{{ articles_next_page.url }}">
<span aria-hidden="true">&raquo;</span>
<span class="sr-only">Next</span>
</a>
</li>
{% endif %}
</ul>
{% endif %}
+19 -22
View File
@@ -1,26 +1,23 @@
{% if FEED_ALL_ATOM %}
<link rel="alternate" type="application/atom+xml" title="Full Atom Feed"
href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}">
<link rel="alternate" type="application/atom+xml" title="Full Atom Feed" href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}">
{% endif %}
{% if FEED_ALL_RSS %}
<link rel="alternate" type="application/rss+xml" title="Full RSS Feed"
href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}">{% endif %}
{% if FEED_ATOM %}
<link rel="alternate" type="application/atom+xml" title="Atom Feed"
href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}">{% endif %}
{% if FEED_RSS %}
<link rel="alternate" type="application/rss+xml" title="RSS Feed"
href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}">{% endif %}
{% if CATEGORY_FEED_ATOM and category %}
<link rel="alternate" type="application/atom+xml" title="Categories Atom Feed"
href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM.format(slug=category.slug) }}">{% endif %}
{% if CATEGORY_FEED_RSS and category %}
<link rel="alternate" type="application/rss+xml" title="Categories RSS Feed"
href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS.format(slug=category.slug) }}">{% endif %}
{% if TAG_FEED_ATOM and tag %}
<link rel="alternate" type="application/atom+xml" title="Tags Atom Feed"
href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM.format(slug=tag.slug) }}">{% endif %}
{% if TAG_FEED_RSS and tag %}
<link rel="alternate" type="application/rss+xml" title="Tags RSS Feed"
href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS.format(slug=tag.slug) }}">
<link rel="alternate" type="application/rss+xml" title="Full RSS Feed" href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}">
{% endif %}
{% if FEED_ATOM %}
<link rel="alternate" type="application/atom+xml" title="Atom Feed" href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}">{% endif %}
{% if FEED_RSS %}
<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}">{% endif %}
{% if CATEGORY_FEED_ATOM and category %}
<link rel="alternate" type="application/atom+xml" title="Categories Atom Feed"
href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM.format(slug=category.slug) }}">{% endif %}
{% if CATEGORY_FEED_RSS and category %}
<link rel="alternate" type="application/rss+xml" title="Categories RSS Feed"
href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS.format(slug=category.slug) }}">{% endif %}
{% if TAG_FEED_ATOM and tag %}
<link rel="alternate" type="application/atom+xml" title="Tags Atom Feed"
href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM.format(slug=tag.slug) }}">{% endif %}
{% if TAG_FEED_RSS and tag %}
<link rel="alternate" type="application/rss+xml" title="Tags RSS Feed"
href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS.format(slug=tag.slug) }}">
{% endif %}
+44 -43
View File
@@ -1,55 +1,56 @@
{% extends "base.html" %}
{% block head %}
{{ super() }}
{% if DESCRIPTION %}
<meta name="description" content="{{ DESCRIPTION|striptags }}">
{% endif %}
{{ super() }}
{% if DESCRIPTION %}
<meta name="description" content="{{ DESCRIPTION|striptags }}">
{% endif %}
{% endblock %}
{% block title %}
{{ SITENAME }} | {{ SITESUBTITLE }}
{{ SITENAME }} | {{ SITESUBTITLE }}
{% endblock %}
{% block page_header %}
Articles
Articles
{% endblock %}
{% block content %}
{% for article in articles_page.object_list %}
<article class="row teaser">
<header class="col-sm-4 text-muted">
<ul>
<li title="{{ article.date.isoformat() }}">
<i class="fas fa-clock"></i>
{{ article.locale_date }}
</li>
<li>
<i class="fas fa-folder-open"></i>
<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
</li>
{% if not HIDE_AUTHORS and article.authors %}
<li>
<i class="fas fa-user"></i>
{% for author in article.authors %}
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>{% if not loop.last %}, {% endif %}
{% endfor %}
</li>
{% endif %}
</ul>
</header>
<div class="col-sm-8">
<h4 class="title">
<a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}{% if article.link %} <i class="fas fa-link"></i>{% endif %}</a>
</h4>
<div class="content">
{{ article.summary|striptags }}
</div>
</div>
</article>
{% if not loop.last %}
<hr>
{% endif %}
{% endfor %}
{% include 'include/pagination.html' %}
{% endblock %}
{% for article in articles_page.object_list %}
<article class="row teaser">
<header class="col-sm-4 text-muted">
<ul>
<li title="{{ article.date.isoformat() }}">
<i class="fas fa-clock"></i>
{{ article.locale_date }}
</li>
<li>
<i class="fas fa-folder-open"></i>
<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
</li>
{% if not HIDE_AUTHORS and article.authors %}
<li>
<i class="fas fa-user"></i>
{% for author in article.authors %}
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>{% if not loop.last %}, {% endif %}
{% endfor %}
</li>
{% endif %}
</ul>
</header>
<div class="col-sm-8">
<h4 class="title">
<a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}{% if article.link %} <i
class="fas fa-link"></i>{% endif %}</a>
</h4>
<div class="content">
{{ article.summary|striptags }}
</div>
</div>
</article>
{% if not loop.last %}
<hr>
{% endif %}
{% endfor %}
{% include 'include/pagination.html' %}
{% endblock %}
+10 -10
View File
@@ -1,22 +1,22 @@
{% extends "base.html" %}
{% block head %}
{{ super() }}
<meta name="description" content="{{ page.summary|striptags }}">
{{ super() }}
<meta name="description" content="{{ page.summary|striptags }}">
{% endblock %}
{% block title %}
{{ page.title|striptags }} {{ super() }}
{{ page.title|striptags }} {{ super() }}
{% endblock %}
{% block page_header %}
{{ page.title }}
{{ page.title }}
{% endblock %}
{% block content %}
<article class="article">
<div class="content">
{{ page.content }}
</div>
</article>
{% endblock %}
<article class="article">
<div class="content">
{{ page.content }}
</div>
</article>
{% endblock %}
@@ -1,18 +1,18 @@
{% extends "base.html" %}
{% block title %}
Archives for {{ period | reverse | join(' ') }} {{ super() }}
Archives for {{ period | reverse | join(' ') }} {{ super() }}
{% endblock %}
{% block page_header %}
Archives for {{ period | reverse | join(' ') }}
Archives for {{ period | reverse | join(' ') }}
{% endblock %}
{% block content %}
<dl class="dl-horizontal">
{% for article in dates %}
<dt>{{ article.locale_date }}</dt>
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
{% endfor %}
</dl>
{% endblock %}
<dl class="dl-horizontal">
{% for article in dates %}
<dt>{{ article.locale_date }}</dt>
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
{% endfor %}
</dl>
{% endblock %}
+21 -21
View File
@@ -1,27 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for article in articles %}
<url>
<loc>{{ SITEURL }}/{{ article.url }}</loc>
<priority>0.8</priority>
</url>
{% for translation in article.translations %}
<url>
<loc>{{ SITEURL }}/{{ translation.url }}</loc>
<priority>0.8</priority>
</url>
{% endfor %}
<url>
<loc>{{ SITEURL }}/{{ article.url }}</loc>
<priority>0.8</priority>
</url>
{% for translation in article.translations %}
<url>
<loc>{{ SITEURL }}/{{ translation.url }}</loc>
<priority>0.8</priority>
</url>
{% endfor %}
{% endfor %}
{% for page in pages %}
<url>
<loc>{{ SITEURL }}/{{ page.url }}</loc>
<priority>1.0</priority>
</url>
{% for translation in page.translations %}
<url>
<loc>{{ SITEURL }}/{{ translation.url }}</loc>
<priority>1.0</priority>
</url>
{% endfor %}
<url>
<loc>{{ SITEURL }}/{{ page.url }}</loc>
<priority>1.0</priority>
</url>
{% for translation in page.translations %}
<url>
<loc>{{ SITEURL }}/{{ translation.url }}</loc>
<priority>1.0</priority>
</url>
{% endfor %}
</urlset>
{% endfor %}
</urlset>
+3 -3
View File
@@ -1,9 +1,9 @@
{% extends "index.html" %}
{% block title %}
#{{ tag }} Articles | {{ SITENAME }}
#{{ tag }} Articles | {{ SITENAME }}
{% endblock %}
{% block page_header %}
#{{ tag }} Articles
{% endblock %}
#{{ tag }} Articles
{% endblock %}
+11 -11
View File
@@ -1,20 +1,20 @@
{% extends "base.html" %}
{% block title %}
Tags {{ super() }}
Tags {{ super() }}
{% endblock %}
{% block page_header %}
Tags
Tags
{% endblock %}
{% block content %}
<table class="table table-bordered table-striped">
{% for tag, articles in tags|sort %}
<tr>
<td><a href="{{ SITEURL }}/{{ tag.url }}">#{{ tag }}</a></td>
<td>{{ articles|count }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}
<table class="table table-bordered table-striped">
{% for tag, articles in tags|sort %}
<tr>
<td><a href="{{ SITEURL }}/{{ tag.url }}">#{{ tag }}</a></td>
<td>{{ articles|count }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}