Reduce html files (space) tab size 4 -> 2
parent
52380ceab6
commit
288e6464bd
|
@ -1,15 +1,15 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{{ SITENAME }} — Archives
|
{{ SITENAME }} — Archives
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>Archives</h1>
|
<h1>Archives</h1>
|
||||||
<dl class="list dl-horizontal">
|
<dl class="list dl-horizontal">
|
||||||
{% for article in dates %}
|
{% for article in dates %}
|
||||||
<dt>{{ article.locale_date }}</dt>
|
<dt>{{ article.locale_date }}</dt>
|
||||||
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
|
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</dl>
|
</dl>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,48 +1,48 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block head %}
|
{% block head %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
{% if article.author %}
|
{% if article.author %}
|
||||||
<meta name="author" content="{{ article.author }}">
|
<meta name="author" content="{{ article.author }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if article.summary %}
|
{% if article.summary %}
|
||||||
<meta name="description" content="{{ article.summary|striptags }}">
|
<meta name="description" content="{{ article.summary|striptags }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<meta name="tags" contents="{% for tag in article.tags %}{{ tag }}, {% endfor %}">
|
<meta name="tags" contents="{% for tag in article.tags %}{{ tag }}, {% endfor %}">
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{{ SITENAME }} — {{ article.title|striptags }}
|
{{ SITENAME }} — {{ article.title|striptags }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="post full-post">
|
<div class="post full-post">
|
||||||
<h1 class="post-title">
|
<h1 class="post-title">
|
||||||
<a href="/{{ article.url }}" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
|
<a href="/{{ article.url }}" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
|
||||||
</h1>
|
</h1>
|
||||||
<ul class="list-inline">
|
<ul class="list-inline">
|
||||||
<li class="post-date">
|
<li class="post-date">
|
||||||
<a class="text-muted" href="/{{ article.url }}" title="{{ article.date.isoformat() }}">{{ article.locale_date }}</a>
|
<a class="text-muted" href="/{{ article.url }}" title="{{ article.date.isoformat() }}">{{ article.locale_date }}</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="muted">·</li>
|
<li class="muted">·</li>
|
||||||
<li class="post-category">
|
<li class="post-category">
|
||||||
<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
||||||
</li>
|
</li>
|
||||||
{% if article.author and SHOW_ARTICLE_AUTHOR %}
|
{% if article.author and SHOW_ARTICLE_AUTHOR %}
|
||||||
<li class="muted">·</li>
|
<li class="muted">·</li>
|
||||||
<li>
|
<li>
|
||||||
<address class="post-author">
|
<address class="post-author">
|
||||||
By <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
|
By <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
|
||||||
</address>
|
</address>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
<div class="post-content">
|
<div class="post-content">
|
||||||
{{ article.content }}
|
{{ article.content }}
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<hr class="separator">
|
|
||||||
<div class="col-md-8 col-md-offset-2">
|
|
||||||
{% include 'include/disqus_comments.html' %}
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr class="separator">
|
||||||
|
<div class="col-md-8 col-md-offset-2">
|
||||||
|
{% include 'include/disqus_comments.html' %}
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{% extends "index.html" %}
|
{% extends "index.html" %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{{ SITENAME }} — Articles by {{ author }}
|
{{ SITENAME }} — Articles by {{ author }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_title %}
|
{% block page_title %}
|
||||||
<h1>Articles by {{ author }}</h1>
|
<h1>Articles by {{ author }}</h1>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{{ SITENAME }} — Authors
|
{{ SITENAME }} — Authors
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>Authors on {{ SITENAME }}</h1>
|
<h1>Authors on {{ SITENAME }}</h1>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
{% for author, articles in authors|sort %}
|
{% for author, articles in authors|sort %}
|
||||||
<li><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> ({{ articles|count }})</li>
|
<li><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> ({{ articles|count }})</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -2,50 +2,50 @@
|
||||||
<html lang="{{ DEFAULT_LANG }}">
|
<html lang="{{ DEFAULT_LANG }}">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
{% block head %}
|
{% block head %}
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
<title>{% block title %}{{ SITE_SUBTEXT }}{% endblock title %}</title>
|
<title>{% block title %}{{ SITE_SUBTEXT }}{% endblock title %}</title>
|
||||||
|
|
||||||
{% if EXTRA_FAVICON %}
|
{% if EXTRA_FAVICON %}
|
||||||
<link rel="icon" type="image/png" href="/favicon-196x196.png" sizes="196x196">
|
<link rel="icon" type="image/png" href="/favicon-196x196.png" sizes="196x196">
|
||||||
<link rel="icon" type="image/png" href="/favicon-160x160.png" sizes="160x160">
|
<link rel="icon" type="image/png" href="/favicon-160x160.png" sizes="160x160">
|
||||||
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96">
|
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96">
|
||||||
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
|
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
|
||||||
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
|
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% if FEED_ATOM %}
|
{% if FEED_ATOM %}
|
||||||
<link type="application/atom+xml" rel="alternate" href="/{{ FEED_ATOM }}" title="{{ SITENAME }} Atom Feed">
|
<link type="application/atom+xml" rel="alternate" href="/{{ FEED_ATOM }}" title="{{ SITENAME }} Atom Feed">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if FEED_RSS %}
|
{% if FEED_RSS %}
|
||||||
<link type="application/rss+xml" rel="alternate" href="/{{ FEED_RSS }}" title="{{ SITENAME }} RSS Feed">
|
<link type="application/rss+xml" rel="alternate" href="/{{ FEED_RSS }}" title="{{ SITENAME }} RSS Feed">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/style.css">
|
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/style.css">
|
||||||
|
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
{# WARNING: Respond.js doesn't work if you view the page via file:// #}
|
{# WARNING: Respond.js doesn't work if you view the page via file:// #}
|
||||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
|
||||||
{% include "include/google_analytics.html" %}
|
{% include "include/google_analytics.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
{% include "include/header.html" %}
|
{% include "include/header.html" %}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
{% include "include/footer.html" %}
|
{% include "include/footer.html" %}
|
||||||
|
|
||||||
<script src="{{ SITEURL }}/theme/js/jquery.min.js"></script>
|
<script src="{{ SITEURL }}/theme/js/jquery.min.js"></script>
|
||||||
<script src="{{ SITEURL }}/theme/js/bootstrap.min.js"></script>
|
<script src="{{ SITEURL }}/theme/js/bootstrap.min.js"></script>
|
||||||
</body> <!-- 42 -->
|
</body> <!-- 42 -->
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{{ SITENAME }} — Categories
|
{{ SITENAME }} — Categories
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>Categories on {{ SITENAME }}</h1>
|
<h1>Categories on {{ SITENAME }}</h1>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
{% for category, articles in categories %}
|
{% for category, articles in categories %}
|
||||||
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li>
|
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{% extends "index.html" %}
|
{% extends "index.html" %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{{ SITENAME }} — Articles in the {{ category }} category
|
{{ SITENAME }} — Articles in the {{ category }} category
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_title %}
|
{% block page_title %}
|
||||||
<h1>Articles in the {{ category }} category</h1>
|
<h1>Articles in the {{ category }} category</h1>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,24 +1,24 @@
|
||||||
{% if DISQUS_SITENAME %}
|
{% if DISQUS_SITENAME %}
|
||||||
<div id="disqus_thread">
|
<div id="disqus_thread">
|
||||||
<script>
|
<script>
|
||||||
var disqus_shortname = '{{ DISQUS_SITENAME }}';
|
var disqus_shortname = '{{ DISQUS_SITENAME }}';
|
||||||
(function() {
|
(function() {
|
||||||
var dsq = document.createElement('script');
|
var dsq = document.createElement('script');
|
||||||
dsq.type = 'text/javascript';
|
dsq.type = 'text/javascript';
|
||||||
dsq.async = true;
|
dsq.async = true;
|
||||||
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
|
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
|
||||||
(document.getElementsByTagName('head')[0] ||
|
(document.getElementsByTagName('head')[0] ||
|
||||||
document.getElementsByTagName('body')[0]).appendChild(dsq);
|
document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
<noscript>
|
<noscript>
|
||||||
Please enable JavaScript to view the
|
Please enable JavaScript to view the
|
||||||
<a href="http://disqus.com/?ref_noscript={{ DISQUS_SITENAME }}">
|
<a href="http://disqus.com/?ref_noscript={{ DISQUS_SITENAME }}">
|
||||||
comments powered by Disqus.
|
comments powered by Disqus.
|
||||||
</a>
|
</a>
|
||||||
</noscript>
|
</noscript>
|
||||||
<a href="http://disqus.com" class="dsq-brlink">
|
<a href="http://disqus.com" class="dsq-brlink">
|
||||||
blog comments powered by <span class="logo-disqus">Disqus</span>
|
blog comments powered by <span class="logo-disqus">Disqus</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
{{ AUTHOR }}, <a href="{{ LICENSE_URL}}" target="_blank">{{ LICENSE_NAME }}</a> unless otherwise noted.
|
{{ AUTHOR }}, <a href="{{ LICENSE_URL}}" target="_blank">{{ LICENSE_NAME }}</a> unless otherwise noted.
|
||||||
</p>
|
</p>
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
Generated by <a href="http://getpelican.com" target="_blank">Pelican</a> with the <a href="http://github.com/nairobilug/pelican-alchemy">alchemy</a> theme.
|
Generated by <a href="http://getpelican.com" target="_blank">Pelican</a> with the <a href="http://github.com/nairobilug/pelican-alchemy">alchemy</a> theme.
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</footer> <!-- /.footer -->
|
</footer> <!-- /.footer -->
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
{% if GOOGLE_ANALYTICS_ID and GOOGLE_ANALYTICS_DOMAIN %}
|
{% if GOOGLE_ANALYTICS_ID and GOOGLE_ANALYTICS_DOMAIN %}
|
||||||
<script>
|
<script>
|
||||||
(function (i, s, o, g, r, a, m) {
|
(function (i, s, o, g, r, a, m) {
|
||||||
i['GoogleAnalyticsObject'] = r;
|
i['GoogleAnalyticsObject'] = r;
|
||||||
i[r] = i[r] || function () {
|
i[r] = i[r] || function () {
|
||||||
(i[r].q = i[r].q || []).push(arguments)
|
(i[r].q = i[r].q || []).push(arguments)
|
||||||
}, i[r].l = 1 * new Date();
|
}, i[r].l = 1 * new Date();
|
||||||
a = s.createElement(o),
|
a = s.createElement(o),
|
||||||
m = s.getElementsByTagName(o)[0];
|
m = s.getElementsByTagName(o)[0];
|
||||||
a.async = 1;
|
a.async = 1;
|
||||||
a.src = g;
|
a.src = g;
|
||||||
m.parentNode.insertBefore(a, m)
|
m.parentNode.insertBefore(a, m)
|
||||||
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||||
ga('create', '{{ GOOGLE_ANALYTICS_ID }}', '{{ GOOGLE_ANALYTICS_DOMAIN }}');
|
ga('create', '{{ GOOGLE_ANALYTICS_ID }}', '{{ GOOGLE_ANALYTICS_DOMAIN }}');
|
||||||
ga('send', 'pageview');
|
ga('send', 'pageview');
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -1,49 +1,49 @@
|
||||||
<header class="header">
|
<header class="header">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{% if PROFILE_IMAGE %}
|
{% if PROFILE_IMAGE %}
|
||||||
<div class="header-image pull-left">
|
<div class="header-image pull-left">
|
||||||
<a class="nodec" href="{{ SITEURL }}"><img src={{ PROFILE_IMAGE }}></a>
|
<a class="nodec" href="{{ SITEURL }}"><img src={{ PROFILE_IMAGE }}></a>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
<div class="header-inner">
|
||||||
|
<h1 class="header-name">
|
||||||
|
<a class="nodec" href="{{ SITEURL }}">{{ SITENAME }}</a>
|
||||||
|
</h1>
|
||||||
|
<h3 class="header-text">{{ SITE_SUBTEXT }}</h3>
|
||||||
|
<ul class="header-menu list-inline">
|
||||||
|
{% for title, link in MENU_ITEMS %}
|
||||||
|
<li><a class="nodec" href="{{ link }}" target="_blank">{{ title }}</a></li>
|
||||||
|
{% endfor %}
|
||||||
|
{% if PAGES_ON_MENU %}
|
||||||
|
{% for p in PAGES %}
|
||||||
|
{% if loop.first %}
|
||||||
|
<li class="muted">|</li>
|
||||||
|
{% endif %}
|
||||||
|
<li><a class="nodec" href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
|
||||||
|
{% if loop.last %}
|
||||||
|
<li class="muted">|</li>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="header-inner">
|
{% if EMAIL_ADDRESS %}
|
||||||
<h1 class="header-name">
|
<li><a class="nodec icon-mail-alt" href="mailto:{{ EMAIL_ADDRESS }}"></a></li>
|
||||||
<a class="nodec" href="{{ SITEURL }}">{{ SITENAME }}</a>
|
{% endif %}
|
||||||
</h1>
|
{% if GITHUB_ADDRESS %}
|
||||||
<h3 class="header-text">{{ SITE_SUBTEXT }}</h3>
|
<li><a class="nodec icon-github" href="{{ GITHUB_ADDRESS }}"></a></li>
|
||||||
<ul class="header-menu list-inline">
|
{% endif %}
|
||||||
{% for title, link in MENU_ITEMS %}
|
{% if SO_ADDRESS %}
|
||||||
<li><a class="nodec" href="{{ link }}" target="_blank">{{ title }}</a></li>
|
<li><a class="nodec icon-stackoverflow" href="{{ SO_ADDRESS }}"></a></li>
|
||||||
{% endfor %}
|
{% endif %}
|
||||||
{% if PAGES_ON_MENU %}
|
{% if TWITTER_ADDRESS %}
|
||||||
{% for p in PAGES %}
|
<li><a class="nodec icon-twitter" href="{{ TWITTER_ADDRESS }}"></a></li>
|
||||||
{% if loop.first %}
|
{% endif %}
|
||||||
<li class="muted">|</li>
|
{% if FB_ADDRESS %}
|
||||||
{% endif %}
|
<li><a class="nodec icon-facebook" href="{{ FB_ADDRESS }}"></a></li>
|
||||||
<li><a class="nodec" href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
|
{% endif %}
|
||||||
{% if loop.last %}
|
{% if FEED_ATOM or FEED_RSS %}
|
||||||
<li class="muted">|</li>
|
<li><a class="nodec icon-rss" href="/{% if FEED_ATOM %}{{ FEED_ATOM }}{% else %}{{ FEED_RSS }}{% endif %}"></a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
</ul>
|
||||||
{% endif %}
|
|
||||||
{% if EMAIL_ADDRESS %}
|
|
||||||
<li><a class="nodec icon-mail-alt" href="mailto:{{ EMAIL_ADDRESS }}"></a></li>
|
|
||||||
{% endif %}
|
|
||||||
{% if GITHUB_ADDRESS %}
|
|
||||||
<li><a class="nodec icon-github" href="{{ GITHUB_ADDRESS }}"></a></li>
|
|
||||||
{% endif %}
|
|
||||||
{% if SO_ADDRESS %}
|
|
||||||
<li><a class="nodec icon-stackoverflow" href="{{ SO_ADDRESS }}"></a></li>
|
|
||||||
{% endif %}
|
|
||||||
{% if TWITTER_ADDRESS %}
|
|
||||||
<li><a class="nodec icon-twitter" href="{{ TWITTER_ADDRESS }}"></a></li>
|
|
||||||
{% endif %}
|
|
||||||
{% if FB_ADDRESS %}
|
|
||||||
<li><a class="nodec icon-facebook" href="{{ FB_ADDRESS }}"></a></li>
|
|
||||||
{% endif %}
|
|
||||||
{% if FEED_ATOM or FEED_RSS %}
|
|
||||||
<li><a class="nodec icon-rss" href="/{% if FEED_ATOM %}{{ FEED_ATOM }}{% else %}{{ FEED_RSS }}{% endif %}"></a></li>
|
|
||||||
{% endif %}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</header> <!-- /.header -->
|
</header> <!-- /.header -->
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{% if DEFAULT_PAGINATION %}
|
{% if DEFAULT_PAGINATION %}
|
||||||
<ul class="pagination">
|
<ul class="pagination">
|
||||||
{% if articles_page.has_previous() %}
|
{% if articles_page.has_previous() %}
|
||||||
<li><a href="{{ SITEURL }}/{{ articles_previous_page.url }}">«</a></li>
|
<li><a href="{{ SITEURL }}/{{ articles_previous_page.url }}">«</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li class="disabled"><a href="#">Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}</a></li>
|
<li class="disabled"><a href="#">Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}</a></li>
|
||||||
{% if articles_page.has_next() %}
|
{% if articles_page.has_next() %}
|
||||||
<li><a href="{{ SITEURL }}/{{ articles_next_page.url }}">»</a></li>
|
<li><a href="{{ SITEURL }}/{{ articles_next_page.url }}">»</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -1,44 +1,44 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block head %}
|
{% block head %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
<meta name="author" content="{{ AUTHOR }}">
|
<meta name="author" content="{{ AUTHOR }}">
|
||||||
<meta name="description" content="{{ META_DESCRIPTION|striptags }}">
|
<meta name="description" content="{{ META_DESCRIPTION|striptags }}">
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% block page_title %}
|
{% block page_title %}
|
||||||
<h1>All Articles</h1>
|
<h1>All Articles</h1>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
<div>
|
<div>
|
||||||
{% for article in articles_page.object_list %}
|
{% for article in articles_page.object_list %}
|
||||||
<div class="post mini-post">
|
<div class="post mini-post">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<p class="post-date">
|
<p class="post-date">
|
||||||
<a class="text-muted" href="/{{ article.url }}" title="{{ article.date.isoformat() }}">{{ article.locale_date }}</a>
|
<a class="text-muted" href="/{{ article.url }}" title="{{ article.date.isoformat() }}">{{ article.locale_date }}</a>
|
||||||
</p>
|
</p>
|
||||||
<p class="post-category">
|
<p class="post-category">
|
||||||
<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
||||||
</p>
|
</p>
|
||||||
{% if article.author and SHOW_ARTICLE_AUTHOR %}
|
{% if article.author and SHOW_ARTICLE_AUTHOR %}
|
||||||
<address class="post-author">
|
<address class="post-author">
|
||||||
By <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
|
By <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
|
||||||
</address>
|
</address>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<h2 class="post-title">
|
<h2 class="post-title">
|
||||||
<a href="/{{ article.url }}" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
|
<a href="/{{ article.url }}" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="post-content">
|
<div class="post-content">
|
||||||
{{ article.content|striptags|truncate(256) }}
|
{{ article.content|striptags|truncate(256) }}
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% include 'include/pagination.html' %}
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% include 'include/pagination.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,25 +1,25 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block head %}
|
{% block head %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
{% if page.author %}
|
{% if page.author %}
|
||||||
<meta name="author" content="{{ page.author }}">
|
<meta name="author" content="{{ page.author }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if page.summary %}
|
{% if page.summary %}
|
||||||
<meta name="description" content="{{ page.summary|striptags }}">
|
<meta name="description" content="{{ page.summary|striptags }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<meta name="tags" contents="{% for tag in page.tags %}{{ tag }}, {% endfor %}">
|
<meta name="tags" contents="{% for tag in page.tags %}{{ tag }}, {% endfor %}">
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{{ SITENAME }} — {{ page.title|striptags }}
|
{{ SITENAME }} — {{ page.title|striptags }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<h1 class="title">{{ page.title }}</h1>
|
<h1 class="title">{{ page.title }}</h1>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{ page.content }}
|
{{ page.content }}
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{% extends "index.html" %}
|
{% extends "index.html" %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{{ SITENAME }} — Articles with the {{ tag }} tag
|
{{ SITENAME }} — Articles with the {{ tag }} tag
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_title %}
|
{% block page_title %}
|
||||||
<h1>Articles with the {{ tag }} tag</h1>
|
<h1>Articles with the {{ tag }} tag</h1>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{{ SITENAME }} — Tags
|
{{ SITENAME }} — Tags
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>Tags on {{ SITENAME }}</h1>
|
<h1>Tags on {{ SITENAME }}</h1>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
{% for tag, articles in tags|sort %}
|
{% for tag, articles in tags|sort %}
|
||||||
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li>
|
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue