mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2025-07-30 13:30:17 +00:00
first commit
This commit is contained in:
10
templates/analytics.html
Normal file
10
templates/analytics.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{% if GOOGLE_ANALYTICS %}
|
||||
<script>
|
||||
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
|
||||
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
|
||||
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
|
||||
e.src='//www.google-analytics.com/analytics.js';
|
||||
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
|
||||
ga('create','{{ GOOGLE_ANALYTICS }}');ga('send','pageview');
|
||||
</script>
|
||||
{% endif %}
|
22
templates/archives.html
Normal file
22
templates/archives.html
Normal file
@@ -0,0 +1,22 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}Archives{% endblock %}
|
||||
{% block description %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="uk-width-medium-4-5">
|
||||
<h1>Archives</h1>
|
||||
|
||||
{% for article in dates %}
|
||||
<article class="uk-article">
|
||||
<a href="{{ article.url }}" class="uk-article-title uk-link-muted">{{ article.title }}</a>
|
||||
<p class="uk-article-meta">{{ article.locale_date }}</p>
|
||||
<p class="uk-article-lead">{{ article.summary }}</p>
|
||||
<hr class="uk-article-divider">
|
||||
</article>
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
60
templates/article.html
Normal file
60
templates/article.html
Normal file
@@ -0,0 +1,60 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}{{ article.title|striptags }}{% endblock %}
|
||||
{% block description %}{{ article.summary }}{% endblock %}
|
||||
{% block content %}
|
||||
<div class="mg-container-social uk-width-medium-1-10 uk-hidden-small">
|
||||
|
||||
{% if SHARE %}
|
||||
<div class="uk-panel" id="mg-panel-social">
|
||||
<ul class="uk-nav uk-nav-side">
|
||||
<li>
|
||||
<a href="https://www.facebook.com/sharer/sharer.php?u={{ SITEURL }}/{{ article.url }}" onclick="javascript:window.open(this.href,'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false;" taget="_blank" class="uk-button"><i class="uk-icon-facebook-square"></i> Share</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://twitter.com/intent/tweet?text={{ article.title|striptags|urlencode }}&url={{ SITEURL }}/{{ article.url }}&via={{ TWITTER_USERNAME }}" onclick="javascript:window.open(this.href,'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" class="uk-button" target="_blank"><i class="uk-icon-twitter"></i> Tweet</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://plus.google.com/share?url={{ SITEURL }}/{{ article.url }}" onclick="javascript:window.open(this.href,'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" target="_blank" class="uk-button"><i class="uk-icon-google-plus-square"></i> Share</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="uk-width-medium-7-10">
|
||||
|
||||
<article class="uk-article">
|
||||
<h1 class="uk-article-title">{{ article.title }}</h1>
|
||||
<p class="uk-article-meta"> {{ article.locale_date }} in <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>{% if DISQUS_SITENAME %}, <i class="uk-icon-comment"></i> <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread"></a>{% endif %}</p>
|
||||
<p class="uk-article-lead">{{ article.summary }}</p>
|
||||
|
||||
{% if SHARE %}
|
||||
<a href="https://www.facebook.com/sharer/sharer.php?u={{ SITEURL }}/{{ article.url }}" onclick="javascript:window.open(this.href,'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false;" taget="_blank" class="uk-button uk-visible-small"><i class="uk-icon-facebook-square"></i> Share</a>
|
||||
<a href="https://twitter.com/intent/tweet?text={{ article.title|striptags|urlencode }}&url={{ SITEURL }}/{{ article.url }}&via={{ TWITTER_USERNAME }}" onclick="javascript:window.open(this.href,'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" class="uk-button uk-visible-small" target="_blank"><i class="uk-icon-twitter"></i> Tweet</a>
|
||||
<a href="https://plus.google.com/share?url={{ SITEURL }}/{{ article.url }}" onclick="javascript:window.open(this.href,'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" target="_blank" class="uk-button uk-visible-small"><i class="uk-icon-google-plus-square"></i> Share</a>
|
||||
{% endif %}
|
||||
|
||||
{{ article.content }}
|
||||
<hr class="uk-article-divider">
|
||||
</article>
|
||||
|
||||
{% if DISQUS_SITENAME %}
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
|
||||
var disqus_shortname = '{{ DISQUS_SITENAME }}'; // required: replace example with your forum shortname
|
||||
|
||||
/* * * DON'T EDIT BELOW THIS LINE * * */
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||||
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
3
templates/author.html
Normal file
3
templates/author.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{% extends "index.html" %}
|
||||
{% block title %}{{ SITENAME }} | {{ author }}{% endblock %}
|
||||
{% block description %}{% endblock %}
|
0
templates/authors.html
Normal file
0
templates/authors.html
Normal file
197
templates/base.html
Normal file
197
templates/base.html
Normal file
@@ -0,0 +1,197 @@
|
||||
<!DOCTYPE html>
|
||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" prefix="og: http://ogp.me/ns#"> <![endif]-->
|
||||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" prefix="og: http://ogp.me/ns#"> <![endif]-->
|
||||
<!--[if IE 8]> <html class="no-js lt-ie9" prefix="og: http://ogp.me/ns#"> <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" prefix="og: http://ogp.me/ns#"> <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>{% block title %}{{ SITENAME }}{%endblock%}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="{% block description %}{{ SITE_DESCRIPTION }}{% endblock %}">
|
||||
<meta name="author" content="{{ AUTHOR }}">
|
||||
<meta name="copyright" content="{{ AUTHOR }}">
|
||||
{% if article %}
|
||||
<meta property="og:title" content="{{ article.title|capitalize }}" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}" />
|
||||
{% if article.summary %}
|
||||
<meta property="og:description" content="{{ article.summary }}" />
|
||||
{% endif %}
|
||||
{% if article.date %}
|
||||
<meta property="og:article:published_time" content="{{ article.date }}">
|
||||
{% endif %}
|
||||
{% if article.modified %}
|
||||
<meta property="og:article:modified_time" content="{{ article.modified }}">
|
||||
{% endif %}
|
||||
{% if article.author %}
|
||||
<meta property="og:article:author" content="{{ article.author }}">
|
||||
{% endif %}
|
||||
{% for tag in article.tags %}
|
||||
<meta property="og:article:tag" content="{{ tag }}">
|
||||
{% endfor %}
|
||||
{% elif page %}
|
||||
<meta property="og:title" content="{{ page.title|capitalize }}" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="{{ SITEURL }}/{{ page.url }}" />
|
||||
{% else %}
|
||||
<meta property="og:title" content="{{ SITENAME }}" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="{{ SITEURL }}" />
|
||||
{% endif %}
|
||||
<meta property="og:image" content="{{ SITEURL }}/static/{{ OG_IMAGE }}" />
|
||||
<meta property="og:image:type" content="{{ OG_IMAGE_TYPE }}" />
|
||||
|
||||
<link href="{{ SITEURL }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed"/>
|
||||
<link href='//fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/uikit/2.15.0/css/uikit.min.css">
|
||||
<link rel="stylesheet" href="/theme/css/solarized.css">
|
||||
<link rel="stylesheet" href="/theme/css/main.css">
|
||||
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!--[if lt IE 7]>
|
||||
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
|
||||
<![endif]-->
|
||||
<header class=" mg-header uk-navbar uk-navbar-attached">
|
||||
|
||||
<div class="uk-container uk-container-center">
|
||||
<div class="uk-grid" data-uk-grid-margin>
|
||||
|
||||
<a class="mg-brand uk-navbar-brand uk-hidden-small" href="{{ SITEURL }}">
|
||||
{% if LOGO %}
|
||||
<img src="/static/{{ LOGO }}" alt="{{ SITENAME }}" title="{{ SITENAME }}" class="uk-margin uk-margin-remove">
|
||||
{% else %}
|
||||
{{ SITENAME }}
|
||||
{% endif %}
|
||||
</a>
|
||||
<div class="mg-tagline uk-navbar-content uk-hidden-small">{% if SITESUBTITLE %}{{ SITESUBTITLE }}{% endif %}</div>
|
||||
<a class="uk-navbar-toggle uk-visible-small" href="#mg-offcanvas" data-uk-offcanvas></a>
|
||||
<a class="mg-brand uk-navbar-brand uk-navbar-center uk-visible-small" href="{{ SITEURL }}">
|
||||
{% if LOGO %}
|
||||
<img src="/static/{{ LOGO }}" alt="{{ SITENAME }}" title="{{ SITENAME }}" class="uk-margin uk-margin-remove">
|
||||
{% else %}
|
||||
{{ SITENAME }}
|
||||
{% endif %}
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="mg-main">
|
||||
|
||||
<div class="uk-container uk-container-center">
|
||||
|
||||
<div class="uk-grid" data-uk-grid-margin>
|
||||
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
|
||||
<div class="uk-width-medium-1-5 uk-hidden-small">
|
||||
<div class="uk-panel uk-panel-box">
|
||||
<!--<h3 class="uk-panel-title">Categories</h3> -->
|
||||
<ul class="uk-nav uk-nav-side">
|
||||
<li class="uk-nav-header">Categories</li>
|
||||
{% for cat, _ in categories %}
|
||||
<li {% if cat == category %}class="uk-active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
|
||||
{% endfor %}
|
||||
{% if DISPLAY_PAGES_ON_MENU != False %}
|
||||
<li class="uk-nav-header">Pages</li>
|
||||
|
||||
{% for p in PAGES %}
|
||||
<li {% if p == page %}class="uk-active"{% endif %}>
|
||||
<a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
<li class="uk-nav-divider"></li>
|
||||
<li><a href="{{ SITEURL }}/{{ ARCHIVES_URL }}">Archives</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="uk-panel uk-panel-box">
|
||||
<h3 class="uk-panel-title">Receive Updates</h3>
|
||||
<a rel="alternate" type="application/atom+xml" href="{{ SITEURL }}/{{ FEED_ATOM}}" class="mg-feed"><i class="uk-icon-rss uk-icon-medium"></i> ATOM</a>
|
||||
</div>
|
||||
|
||||
{% if SOCIAL %}
|
||||
<div class="uk-panel uk-panel-box">
|
||||
<h3 class="uk-panel-title">Contacts</h3>
|
||||
{% for icon, link in SOCIAL %}
|
||||
<a href="{{ link }}">
|
||||
<i class="uk-icon-{{ icon }} uk-icon-medium"></i>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</main>
|
||||
|
||||
<footer class="mg-footer">
|
||||
<div class="uk-container uk-container-center uk-text-center">
|
||||
|
||||
<div class="mg-icons-small uk-subnav uk-visible-small">
|
||||
<li><a rel="alternate" type="application/atom+xml" href="{{ SITEURL }}/{{ FEED_ATOM }}" class="uk-icon-button uk-icon-rss"></a></li>
|
||||
{% if SOCIAL %}
|
||||
{% for icon, link in SOCIAL %}
|
||||
<li>
|
||||
<a href="{{ link }}" class="uk-icon-button uk-icon-{{ icon.replace("-square", "") }}"></a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="mg-author uk-panel">
|
||||
<p>{{ FOOTER }}</p>
|
||||
|
||||
<p>Powered by <a href="http://blog.getpelican.com">Pelican</a>. Theme <a href="">mg</a> by <a href="https://github.com/lucachr">Luca Chiricozzi</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<div id="mg-offcanvas" class="uk-offcanvas">
|
||||
<div class="uk-offcanvas-bar">
|
||||
<ul class="uk-nav uk-nav-offcanvas" data-uk-nav>
|
||||
<li class="uk-nav-header">Categories</li>
|
||||
{% for cat, _ in categories %}
|
||||
<li {% if cat == category %}class="uk-active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
|
||||
{% endfor %}
|
||||
{% if DISPLAY_PAGES_ON_MENU != False %}
|
||||
<li class="uk-nav-header">Pages</li>
|
||||
{% for p in PAGES %}
|
||||
<li {% if p == page %}class="uk-active"{% endif %}>
|
||||
<a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
<li class="uk-nav-divider"></li>
|
||||
<li><a href="{{ SITEURL }}/{{ ARCHIVES_URL }}">Archives</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.10.2.min.js"><\/script>')</script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/uikit/2.15.0/js/uikit.min.js"></script>
|
||||
<script src="/theme/js/jquery.sticky-kit.min.js"></script>
|
||||
|
||||
<script src="/theme/js/plugins.js"></script>
|
||||
<script src="/theme/js/main.js"></script>
|
||||
|
||||
{% include 'disqus_count.html' %}
|
||||
{% include 'analytics.html' %}
|
||||
</body>
|
||||
</html>
|
||||
|
22
templates/categories.html
Normal file
22
templates/categories.html
Normal file
@@ -0,0 +1,22 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}Categories{% endblock %}
|
||||
{% block description %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="uk-width-medium-4-5">
|
||||
<h1>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">
|
||||
</article>
|
||||
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock %}
|
3
templates/category.html
Normal file
3
templates/category.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{% extends "index.html" %}
|
||||
{% block title %}{{ SITENAME }} | {{ category|capitalize }}{% endblock %}
|
||||
{% block description %}{% endblock %}
|
13
templates/disqus_count.html
Normal file
13
templates/disqus_count.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<script type="text/javascript">
|
||||
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
|
||||
var disqus_shortname = '{{ DISQUS_SITENAME }}'; // required: replace example with your forum shortname
|
||||
|
||||
/* * * DON'T EDIT BELOW THIS LINE * * */
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
31
templates/index.html
Normal file
31
templates/index.html
Normal file
@@ -0,0 +1,31 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content_title %}{% endblock %}
|
||||
{% block content %}
|
||||
<div class="uk-width-medium-4-5">
|
||||
|
||||
{% if articles %}
|
||||
{% 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>{% if DISQUS_SITENAME %} • <i class="uk-icon-comment"></i> <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread"></a>{% endif %}</p>
|
||||
</p>
|
||||
<p class="uk-article-lead">{{ article.summary }}</p>
|
||||
<p>{{ ' '.join(article.content.split(' ')[0:100])|striptags }}...</p>
|
||||
<a href="{{ SITEURL }}/{{ article.url }}">Read More</a>
|
||||
<hr class="uk-article-divider">
|
||||
</article>
|
||||
|
||||
{% if DEFAULT_PAGINATION and articles_paginator.num_pages > 1 %}
|
||||
<ul class="uk-pagination">
|
||||
{% if articles_previous_page %}<li><a href="{{ SITEURL }}/{{ articles_previous_page.url }}"><i class="uk-icon-angle-double-left"></i></a></li>{% endif %}
|
||||
{% if articles_previous_page %}<li><a href="{{ SITEURL }}/{{ articles_previous_page.url }}">{{ articles_previous_page.number }}</a></li>{% endif %}
|
||||
<li class="uk-active"><span>{{ articles_page.number }}</span></li>
|
||||
{% if articles_next_page %}<li><a href="{{ SITEURL }}/{{ articles_next_page.url }}"><i class="uk-icon-angle-double-right"></i></a></li>{% endif %}
|
||||
{% if articles_next_page %}<li><a href="{{ SITEURL }}/{{ articles_next_page.url }}">{{ articles_next_page.number }}</a></li>{% endif %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
15
templates/page.html
Normal file
15
templates/page.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}{{ page.title|capitalize }}{% endblock %}
|
||||
{% block description %}{% endblock %}
|
||||
{% block content %}
|
||||
<div class="uk-width-medium-4-5">
|
||||
<h1 class="uk-heading-large">{{ page.title }}</h1>
|
||||
|
||||
{% block page_content %}
|
||||
{% endblock %}
|
||||
|
||||
{{ page.content }}
|
||||
</div>
|
||||
|
||||
|
||||
{% endblock %}
|
32
templates/sitemap.html
Normal file
32
templates/sitemap.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<?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 %}
|
||||
{% 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 %}
|
||||
{% endfor %}
|
||||
|
||||
</urlset>
|
3
templates/tag.html
Normal file
3
templates/tag.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{% extends "index.html" %}
|
||||
{% block title %}{{ SITENAME }} | {{ tag|capitalize }}{% endblock %}
|
||||
{% block description %}{% endblock %}
|
14
templates/tags.html
Normal file
14
templates/tags.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}Tags{% endblock %}
|
||||
{% block description %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="uk-width-medium-4-5">
|
||||
<h1>Tags</h1>
|
||||
<ul>
|
||||
{% for tag, articles in tags|sort %}
|
||||
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user