diff options
author | Fish <aroaminggeek@users.noreply.github.com> | 2017-03-25 16:38:01 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-25 16:38:01 -0600 |
commit | 36c2ef5937c24f9f276f75ac439ec2670f33e5b3 (patch) | |
tree | 3a5df2b2bbc95fefc847a2c58a2ec862188e2cd3 /pelican-striped-html5up/templates | |
parent | d7779b637b990aa70266d55faf842fbb4c837715 (diff) | |
download | pelican-themes-36c2ef5937c24f9f276f75ac439ec2670f33e5b3.tar.gz |
pelican-striped-html5up added
for pull request to origin
Diffstat (limited to 'pelican-striped-html5up/templates')
-rw-r--r-- | pelican-striped-html5up/templates/archives.html | 18 | ||||
-rw-r--r-- | pelican-striped-html5up/templates/article.html | 49 | ||||
-rw-r--r-- | pelican-striped-html5up/templates/author.html | 7 | ||||
-rw-r--r-- | pelican-striped-html5up/templates/authors.html | 13 | ||||
-rw-r--r-- | pelican-striped-html5up/templates/base.html | 104 | ||||
-rw-r--r-- | pelican-striped-html5up/templates/categories.html | 8 | ||||
-rw-r--r-- | pelican-striped-html5up/templates/category.html | 5 | ||||
-rw-r--r-- | pelican-striped-html5up/templates/gosquared.html | 14 | ||||
-rw-r--r-- | pelican-striped-html5up/templates/index.html | 33 | ||||
-rw-r--r-- | pelican-striped-html5up/templates/page.html | 15 | ||||
-rw-r--r-- | pelican-striped-html5up/templates/pagination.html | 11 | ||||
-rw-r--r-- | pelican-striped-html5up/templates/period_archives.html | 11 | ||||
-rw-r--r-- | pelican-striped-html5up/templates/tags.html | 10 | ||||
-rw-r--r-- | pelican-striped-html5up/templates/translations.html | 9 |
14 files changed, 307 insertions, 0 deletions
diff --git a/pelican-striped-html5up/templates/archives.html b/pelican-striped-html5up/templates/archives.html new file mode 100644 index 0000000..2f731f8 --- /dev/null +++ b/pelican-striped-html5up/templates/archives.html @@ -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 %} diff --git a/pelican-striped-html5up/templates/article.html b/pelican-striped-html5up/templates/article.html new file mode 100644 index 0000000..d405c65 --- /dev/null +++ b/pelican-striped-html5up/templates/article.html @@ -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"> </a></li> + <li><a href="http://reddit.com/submit?url={{ SITEURL }}/{{ article.url }}&title=#{{article.title}}"" class="icon fa-reddit"> </a></li> + <li><a href="https://twitter.com/share?url={{ SITEURL }}/{{ article.url }}&text=&hashtags=GnotC" class="icon fa-twitter"> </a></li> + <li><a href="https://www.facebook.com/sharer.php?u={{ SITEURL }}/{{ article.url }}" class="icon fa-facebook"> </a></li> + </ul> + </div><!-- /.post-info --> + <div class="entry-content"> </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 %} diff --git a/pelican-striped-html5up/templates/author.html b/pelican-striped-html5up/templates/author.html new file mode 100644 index 0000000..e9f7870 --- /dev/null +++ b/pelican-striped-html5up/templates/author.html @@ -0,0 +1,7 @@ +{% extends "index.html" %} + +{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %} +{% block content_title %} +<h2>Articles by {{ author }}</h2> +{% endblock %} + diff --git a/pelican-striped-html5up/templates/authors.html b/pelican-striped-html5up/templates/authors.html new file mode 100644 index 0000000..4914904 --- /dev/null +++ b/pelican-striped-html5up/templates/authors.html @@ -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 %} diff --git a/pelican-striped-html5up/templates/base.html b/pelican-striped-html5up/templates/base.html new file mode 100644 index 0000000..1c228f1 --- /dev/null +++ b/pelican-striped-html5up/templates/base.html @@ -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> diff --git a/pelican-striped-html5up/templates/categories.html b/pelican-striped-html5up/templates/categories.html new file mode 100644 index 0000000..e29be0c --- /dev/null +++ b/pelican-striped-html5up/templates/categories.html @@ -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 %} diff --git a/pelican-striped-html5up/templates/category.html b/pelican-striped-html5up/templates/category.html new file mode 100644 index 0000000..4e6fd24 --- /dev/null +++ b/pelican-striped-html5up/templates/category.html @@ -0,0 +1,5 @@ +{% extends "index.html" %} +{% block content_title %} +<h2>Articles in the {{ category }} category</h2> +{% endblock %} + diff --git a/pelican-striped-html5up/templates/gosquared.html b/pelican-striped-html5up/templates/gosquared.html new file mode 100644 index 0000000..49ccbbe --- /dev/null +++ b/pelican-striped-html5up/templates/gosquared.html @@ -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 %} diff --git a/pelican-striped-html5up/templates/index.html b/pelican-striped-html5up/templates/index.html new file mode 100644 index 0000000..7cd6d61 --- /dev/null +++ b/pelican-striped-html5up/templates/index.html @@ -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"> </div><!-- /.entry-content --> + </article> +{% endfor %} +<!-- /#posts-list --> +{% if articles_page.has_other_pages() %} + {% include 'pagination.html' %} +{% endif %} +</div> +</div><!-- /#content --> +{% endblock content %} diff --git a/pelican-striped-html5up/templates/page.html b/pelican-striped-html5up/templates/page.html new file mode 100644 index 0000000..5ceb779 --- /dev/null +++ b/pelican-striped-html5up/templates/page.html @@ -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 %} diff --git a/pelican-striped-html5up/templates/pagination.html b/pelican-striped-html5up/templates/pagination.html new file mode 100644 index 0000000..37e970d --- /dev/null +++ b/pelican-striped-html5up/templates/pagination.html @@ -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 %} diff --git a/pelican-striped-html5up/templates/period_archives.html b/pelican-striped-html5up/templates/period_archives.html new file mode 100644 index 0000000..d930dbb --- /dev/null +++ b/pelican-striped-html5up/templates/period_archives.html @@ -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 %} diff --git a/pelican-striped-html5up/templates/tags.html b/pelican-striped-html5up/templates/tags.html new file mode 100644 index 0000000..b5d1482 --- /dev/null +++ b/pelican-striped-html5up/templates/tags.html @@ -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 %} diff --git a/pelican-striped-html5up/templates/translations.html b/pelican-striped-html5up/templates/translations.html new file mode 100644 index 0000000..db8c372 --- /dev/null +++ b/pelican-striped-html5up/templates/translations.html @@ -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 %} + |