This commit is contained in:
Marc Beninca 2021-11-08 23:46:35 +01:00
parent edf883c2f6
commit 3b5262ab5e
101 changed files with 7668 additions and 13930 deletions

View file

@ -0,0 +1,18 @@
{% extends "base.html" %}
{% block content %}
<div id="content">
<div class="inner">
<article class="box post post-excerpt">
<h2>Archives for {{ SITENAME }}</h2>
<header>
{% for article in dates %}
<h2>{{ article.locale_date }}</h2>
<p><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></p>
<p>{{article.headline}}</p>
{% endfor %}
</header>
</article>
</div>
</div>
{% endblock %}

View file

@ -0,0 +1,49 @@
{% extends "base.html" %}
{% block head %}
{{ super() }}
{% if article.description %}
<meta name="description" content="{{article.summary}}" />
{% endif %}
{% for tag in article.tags %}
<meta name="tags" content="{{tag}}" />
{% endfor %}
{% endblock %}
{% block content %}
<div id="content">
<div class="inner">
<article class="box post post-excerpt">
<header>
<h2><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
<p>{{article.headline}}</p>
</header>
<div class="info">
<span class="date" datetime="{{ article.date.isoformat() }}"><span class="month">{{ article.date | strftime('%b') }}</span> <span class="day">{{ article.date | strftime('%d') }}</span> <span class="month"> {{ article.date | strftime('%Y') }}</span></span>
<ul class="stats">
<li><a href="mailto:?Subject={{article.title}}&Body=I%20saw%20this%20and%20thought%20of%20you!%20 {{ SITEURL }}/{{ article.url }}" class="icon fa-envelope">&nbsp;</a></li>
<li><a href="http://reddit.com/submit?url={{ SITEURL }}/{{ article.url }}&title=#{{article.title}}"" class="icon fa-reddit">&nbsp;</a></li>
<li><a href="https://twitter.com/share?url={{ SITEURL }}/{{ article.url }}&text=&hashtags=GnotC" class="icon fa-twitter">&nbsp;</a></li>
<li><a href="https://www.facebook.com/sharer.php?u={{ SITEURL }}/{{ article.url }}" class="icon fa-facebook">&nbsp;</a></li>
</ul>
</div><!-- /.post-info -->
<div class="entry-content"> &nbsp; </div><!-- /.entry-content -->
</article>
{{ article.content }}
</div><!-- /.entry-content -->
<!-- Pagination -->
<div class="pagination">
{% if article.prev_article %}
<a class="button previous" href="{{ SITEURL }}/{{ article.prev_article.url}}">
{{ article.prev_article.title }}
</a>
{% endif %}
{% if article.next_article %}
<a href="{{ SITEURL }}/{{ article.next_article.url}}" class="button next">{{ article.next_article.title }}</a>
{% endif %}
</div>
</div>
</div>
{% endblock %}

View file

@ -0,0 +1,7 @@
{% extends "index.html" %}
{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %}
{% block content_title %}
<h2>Articles by {{ author }}</h2>
{% endblock %}

View file

@ -0,0 +1,13 @@
{% extends "base.html" %}
{% block title %}{{ SITENAME }} - Authors{% endblock %}
{% block content %}
<h1>Authors on {{ SITENAME }}</h1>
<ul>
{%- for author, articles in authors|sort %}
<li><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> ({{ articles|count }})</li>
{% endfor %}
</ul>
{% endblock %}

View file

@ -0,0 +1,104 @@
<!DOCTYPE html>
<html lang="{{ DEFAULT_LANG }}">
<head>
{% block head %}
<title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
<meta charset="utf-8" />
{% if FEED_ALL_ATOM %}
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" />
{% endif %}
{% if FEED_ALL_RSS %}
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Full RSS Feed" />
{% endif %}
{% if FEED_ATOM %}
<link href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
{% endif %}
{% if FEED_RSS %}
<link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
{% endif %}
{% if CATEGORY_FEED_ATOM and category %}
<link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM|format(category.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed" />
{% endif %}
{% if CATEGORY_FEED_RSS and category %}
<link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS|format(category.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Categories RSS Feed" />
{% endif %}
{% if TAG_FEED_ATOM and tag %}
<link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM|format(tag.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Tags Atom Feed" />
{% endif %}
{% if TAG_FEED_RSS and tag %}
<link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS|format(tag.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" />
{% endif %}
{% endblock head %}
<link rel="stylesheet" href="/theme/css/main.css" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!--[if lte IE 8]><script src="/theme/js/ie/html5shiv.js"></script><![endif]-->
<!--[if lte IE 8]><link rel="stylesheet" href="/theme/css/ie8.css" /><![endif]-->
</head>
<body>
<header id="banner" class="body">
<h1><a href="{{ SITEURL }}/">{{ SITENAME }} <strong>{{ SITESUBTITLE }}</strong></a></h1>
</header><!-- /#banner -->
<!-- Sidebar -->
<div id="sidebar">
<!-- Logo -->
<h1 id="logo"><a href="/">{{ SITENAME }}</a></h1>
<!-- Text -->
<section class="box text-style1">
<div class="inner">
<p>
<strong>Ut scelerisque nec sapien ut sollicitudin:</strong><br />{{SITESUBTITLE}}
</p>
</div>
</section>
<!-- Nav -->
<nav id="nav">
<ul>
<li><a href="#">Nam euismod dui</a></li>
<li><a href="#">Integer eget eros</a></li>
<li><a href="#">Proin vehicula tortor</a></li>
<li><a href="#">Vestibulum consectetur tellus</a></li>
</ul>
</nav>
<!-- Search -->
<!-- <section class="box search">
<form method="post" action="#">
<input type="text" class="text" name="search" placeholder="Search" />
</form>
</section> -->
<!-- Recent Posts -->
<section class="box recent-posts">
<header>
<h2>Contact Me</h2>
</header>
<ul>
<li><a class="icon fa-envelope" href="#"> eMail</a></li>
<li><a class="icon fa-twitter" href="#"> Twitter</a></li>
<li><a class="icon fa-facebook" href="#"> Facebook</a></li>
<li><a class="icon fa-github" href="#"> Github</a></li>
</ul>
</section>
<!-- Copyright -->
<ul id="copyright">
<li>Proudly powered by <a href="http://getpelican.com/">Pelican</a>,
which takes great advantage of <a href="http://python.org">Python</a>.</li>
<li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
<li>Modified under a <a href="https://creativecommons.org/licenses/by/3.0/">CC:BY</a> license.</li>
</ul>
</div><!-- /#menu -->
{% block content %}
{% endblock %}
<!-- /#contentinfo -->
</body>
</html>

View file

@ -0,0 +1,8 @@
{% extends "base.html" %}
{% block content %}
<ul>
{% for category, articles in categories %}
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li>
{% endfor %}
</ul>
{% endblock %}

View file

@ -0,0 +1,5 @@
{% extends "index.html" %}
{% block content_title %}
<h2>Articles in the {{ category }} category</h2>
{% endblock %}

View file

@ -0,0 +1,14 @@
{% if GOSQUARED_SITENAME %}
<script type="text/javascript">
var GoSquared={};
GoSquared.acct = "{{ GOSQUARED_SITENAME }}";
(function(w){
function gs(){
w._gstc_lt=+(new Date); var d=document;
var g = d.createElement("script"); g.type = "text/javascript"; g.async = true; g.src = "https://d1l6p2sc9645hc.cloudfront.net/tracker.js";
var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(g, s);
}
w.addEventListener?w.addEventListener("load",gs,false):w.attachEvent("onload",gs);
})(window);
</script>
{% endif %}

View file

@ -0,0 +1,33 @@
{% extends "base.html" %}
{% block content %}
<div id="content">
<div class="inner">
<!-- {% block content_title %}
<h2>All articles</h2>
{% endblock %} -->
{% for article in articles_page.object_list %}
<article class="box post post-excerpt">
<header>
<h2><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
<p>{{article.headline}}</p>
</header>
<div class="info">
<span class="date" datetime="{{ article.date.isoformat() }}"><span class="month">{{ article.date | strftime('%b') }}</span> <span class="day">{{ article.date | strftime('%d') }}</span> <span class="month"> {{ article.date | strftime('%Y') }}</span></span>
<!-- <ul class="stats">
<li><a href="#" class="icon fa-comment">16</a></li>
<li><a href="#" class="icon fa-heart">32</a></li>
<li><a href="#" class="icon fa-twitter">64</a></li>
<li><a href="#" class="icon fa-facebook">128</a></li>
</ul> -->
</div><!-- /.post-info -->
<div class="entry-content"> &nbsp; </div><!-- /.entry-content -->
</article>
{% endfor %}
<!-- /#posts-list -->
{% if articles_page.has_other_pages() %}
{% include 'pagination.html' %}
{% endif %}
</div>
</div><!-- /#content -->
{% endblock content %}

View file

@ -0,0 +1,15 @@
{% extends "base.html" %}
{% block title %}{{ page.title }}{%endblock%}
{% block content %}
<h1>{{ page.title }}</h1>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(page) }}
{{ page.content }}
{% if page.modified %}
<p>
Last updated: {{ page.locale_modified }}
</p>
{% endif %}
{% endblock %}

View file

@ -0,0 +1,11 @@
{% if DEFAULT_PAGINATION %}
<p class="paginator">
{% if articles_page.has_previous() %}
<a class="button previous" href="{{ SITEURL }}/{{ articles_previous_page.url }}">Newer Entries</a>
{% endif %}
Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}
{% if articles_page.has_next() %}
<a class="button next" href="{{ SITEURL }}/{{ articles_next_page.url }}">Older Entries</a>
{% endif %}
</p>
{% endif %}

View file

@ -0,0 +1,11 @@
{% extends "base.html" %}
{% block content %}
<h1>Archives for {{ period | reverse | join(' ') }}</h1>
<dl>
{% for article in dates %}
<dt>{{ article.locale_date }}</dt>
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
{% endfor %}
</dl>
{% endblock %}

View file

@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block title %}{{ SITENAME }} - Tags{% endblock %}
{% block content %}
<h1>Tags for {{ SITENAME }}</h1>
{%- for tag, articles in tags|sort %}
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li>
{% endfor %}
{% endblock %}

View file

@ -0,0 +1,9 @@
{% macro translations_for(article) %}
{% if article.translations %}
Translations:
{% for translation in article.translations %}
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
{% endfor %}
{% endif %}
{% endmacro %}