summaryrefslogtreecommitdiffstats
path: root/theme/templates
diff options
context:
space:
mode:
Diffstat (limited to 'theme/templates')
-rw-r--r--theme/templates/404.html3
-rw-r--r--theme/templates/500.html3
-rw-r--r--theme/templates/archives.html10
-rw-r--r--theme/templates/article.html48
-rw-r--r--theme/templates/author.html5
-rw-r--r--theme/templates/authors.html12
-rw-r--r--theme/templates/base.html86
-rw-r--r--theme/templates/categories.html8
-rw-r--r--theme/templates/category.html3
-rw-r--r--theme/templates/index.html11
-rw-r--r--theme/templates/list.html28
-rw-r--r--theme/templates/page.html15
-rw-r--r--theme/templates/pagination.html11
-rw-r--r--theme/templates/period_archives.html11
-rw-r--r--theme/templates/simple_base.html63
-rw-r--r--theme/templates/tag.html0
-rw-r--r--theme/templates/tags.html9
-rw-r--r--theme/templates/translations.html9
18 files changed, 335 insertions, 0 deletions
diff --git a/theme/templates/404.html b/theme/templates/404.html
new file mode 100644
index 0000000..d43d0ad
--- /dev/null
+++ b/theme/templates/404.html
@@ -0,0 +1,3 @@
+{% extends "base.html"%}
+{% block pagetitle %}For oh four{% endblock %}
+{% block content %}Whoopsie!{% endblock %}
diff --git a/theme/templates/500.html b/theme/templates/500.html
new file mode 100644
index 0000000..db660a3
--- /dev/null
+++ b/theme/templates/500.html
@@ -0,0 +1,3 @@
+{% extends "base.html"%}
+{% block pagetitle %}Server Error{% endblock %}
+{% block content %}Sorry...{% endblock %}
diff --git a/theme/templates/archives.html b/theme/templates/archives.html
new file mode 100644
index 0000000..e50272b
--- /dev/null
+++ b/theme/templates/archives.html
@@ -0,0 +1,10 @@
+{% extends "base.html" %}
+{% block pagetitle %}Archives for {{ SITENAME }}{% endblock %}
+{% block content %}
+<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/theme/templates/article.html b/theme/templates/article.html
new file mode 100644
index 0000000..dd17efd
--- /dev/null
+++ b/theme/templates/article.html
@@ -0,0 +1,48 @@
+{% extends "base.html" %}
+{% block head %}
+ {{ super() }}
+ {% for keyword in article.keywords %}
+ <meta name="keywords" content="{{keyword}}" />
+ {% endfor %}
+ {% for description in article.description %}
+ <meta name="description" content="{{description}}" />
+ {% endfor %}
+ {% for tag in article.tags %}
+ <meta name="tags" content="{{tag}}" />
+ {% endfor %}
+{% endblock %}
+
+{% block pagetitle %}
+<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
+ title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
+{% endblock %}
+{% block content %}
+{# <section id="content" class="body">
+ <header> #}
+ {% import 'translations.html' as translations with context %}
+ {{ translations.translations_for(article) }}
+{# </header>
+ <footer class="post-info"> #}
+ <div class="right_stuff">
+ <abbr class="published" title="{{ article.date.isoformat() }}">
+ {{ article.locale_date }}
+ </abbr>
+ {% if article.modified %}
+ <abbr class="modified" title="{{ article.modified.isoformat() }}">
+ {{ article.locale_modified }}
+ </abbr>
+ {% endif %}
+ {% if article.authors %}
+ <address class="vcard author">
+ {% for author in article.authors %}
+ <a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
+ {% endfor %}
+ </address>
+ {% endif %}
+ </div>
+{# </footer><!-- /.post-info --> #}
+ <div class="entry-content">
+ {{ article.content }}
+ </div><!-- /.entry-content -->
+{# </section> #}
+{% endblock %}
diff --git a/theme/templates/author.html b/theme/templates/author.html
new file mode 100644
index 0000000..9285e43
--- /dev/null
+++ b/theme/templates/author.html
@@ -0,0 +1,5 @@
+{% extends "list.html" %}
+
+{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %}
+{% block pagetitle %}Articles by {{ author }}{% endblock %}
+
diff --git a/theme/templates/authors.html b/theme/templates/authors.html
new file mode 100644
index 0000000..001e11e
--- /dev/null
+++ b/theme/templates/authors.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+
+{% block title %}{{ SITENAME }} - Authors{% endblock %}
+{% block pagetitle %}Authors on {{ SITENAME }}{% endblock %}
+
+{% block content %}
+ <ul>
+ {%- for author, articles in authors|sort %}
+ <li><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> ({{ articles|count }})</li>
+ {% endfor %}
+ </ul>
+{% endblock %}
diff --git a/theme/templates/base.html b/theme/templates/base.html
new file mode 100644
index 0000000..2f0be01
--- /dev/null
+++ b/theme/templates/base.html
@@ -0,0 +1,86 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+{% block head %}
+<title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
+<!-- <meta charset="utf-8" /> -->
+{% block stylesheets %}
+<link rel="stylesheet" type="text/css" href="/static/style/bootswatch_flatly.min.css" />
+<link rel="stylesheet" type="text/css" href="/static/style/archive3k.css" />
+{% endblock %}{% block externaljs %}
+{% endblock %}{% block otherhead %}{% endblock %}
+{% endblock head %}
+</head>
+<body>
+<body>
+
+<!-- Static navbar -->
+<nav class="navbar navbar-default navbar-static-top">
+ <div class="container">
+ <div class="navbar-header">
+ <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="#">Project name</a>
+ </div>
+ <div id="navbar" class="navbar-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li class="active"><a href="#">Home</a></li>
+ <li><a href="#about">About</a></li>
+ <li><a href="#contact">Contact</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
+ <ul class="dropdown-menu">
+ <li><a href="#">Action</a></li>
+ <li><a href="#">Another action</a></li>
+ <li><a href="#">Something else here</a></li>
+ <li role="separator" class="divider"></li>
+ <li class="dropdown-header">Nav header</li>
+ <li><a href="#">Separated link</a></li>
+ <li><a href="#">One more separated link</a></li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="nav navbar-nav navbar-right">
+ <li><a href="../navbar/">Default</a></li>
+ <li class="active"><a href="./">Static top <span class="sr-only">(current)</span></a></li>
+ <li><a href="../navbar-fixed-top/">Fixed top</a></li>
+ </ul>
+ </div><!--/.nav-collapse -->
+ </div>
+</nav>
+
+<div class="container">
+{% block content %}
+<!-- Main component for a primary marketing message or call to action -->
+<div class="jumbotron">
+ <h1>Navbar example</h1>
+ <p>This example is a quick exercise to illustrate how the default, static and fixed to top navbar work. It includes the responsive CSS and HTML, so it also adapts to your viewport and device.</p>
+ <p>To see the difference between static and fixed top navbars, just scroll.</p>
+ <p>
+ <a class="btn btn-lg btn-primary" href="../../components/#navbar" role="button">View navbar docs &raquo;</a>
+ </p>
+</div>
+{% endblock %}
+</div> <!-- /container -->
+<footer class="footer">
+ <div class="container">
+ <div class="media">
+ <div class="media-left">
+ <img src="/static/ia_logo_small.png" alt="IA logo">
+ </div>
+ <div class="media-body">
+ <p class="text-muted">Paper Search is prototype by the <a href="//archive.org/">Internet Archive</a>, a 501(c)(3) non-profit, building a digital library of Internet sites and other cultural artifacts in digital form. Other <a href="//archive.org/projects/">projects</a> include the <a href="https//web.archive.org/">Wayback Machine</a>, <a href="https//openlibrary.org">openlibrary.org</a>, <a href="https//archive.org/">archive.org</a> and <a href="https//archive-it.org">archive-it.org</a></p>
+ </div>
+ </div>
+ </div>
+</footer>
+<script src="/static/js/jquery.min.js"></script>
+<script src="/static/js/bootstrap.min.js"></script>
+</body>
+</html>
diff --git a/theme/templates/categories.html b/theme/templates/categories.html
new file mode 100644
index 0000000..e29be0c
--- /dev/null
+++ b/theme/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/theme/templates/category.html b/theme/templates/category.html
new file mode 100644
index 0000000..2a5d250
--- /dev/null
+++ b/theme/templates/category.html
@@ -0,0 +1,3 @@
+{% extends "list.html" %}
+{% block pagetitle %}Articles in the {{ category }} category{% endblock %}
+
diff --git a/theme/templates/index.html b/theme/templates/index.html
new file mode 100644
index 0000000..e397ee7
--- /dev/null
+++ b/theme/templates/index.html
@@ -0,0 +1,11 @@
+{% extends "base.html" %}
+
+{% block overhead %}{% endblock %}
+
+{% block path %}{% endblock %}
+
+{% block pagetitle %}{% endblock %}
+
+{% block content %}
+Main Content Goes Here
+{% endblock %}
diff --git a/theme/templates/list.html b/theme/templates/list.html
new file mode 100644
index 0000000..4bd8198
--- /dev/null
+++ b/theme/templates/list.html
@@ -0,0 +1,28 @@
+{% extends "base.html" %}
+{% block content %}
+<section id="content">
+{% block content_title %}
+<h2>All articles</h2>
+{% endblock %}
+
+<ol id="post-list">
+{% for article in articles_page.object_list %}
+ <li><article class="hentry">
+ <header> <h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> </header>
+ <footer class="post-info">
+ <abbr class="published" title="{{ article.date.isoformat() }}"> {{ article.locale_date }} </abbr>
+ <address class="vcard author">By
+ {% for author in article.authors %}
+ <a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
+ {% endfor %}
+ </address>
+ </footer><!-- /.post-info -->
+ <div class="entry-content"> {{ article.summary }} </div><!-- /.entry-content -->
+ </article></li>
+{% endfor %}
+</ol><!-- /#posts-list -->
+{% if articles_page.has_other_pages() %}
+ {% include 'pagination.html' %}
+{% endif %}
+</section><!-- /#content -->
+{% endblock content %}
diff --git a/theme/templates/page.html b/theme/templates/page.html
new file mode 100644
index 0000000..bcbcf5e
--- /dev/null
+++ b/theme/templates/page.html
@@ -0,0 +1,15 @@
+{% extends "base.html" %}
+{% block title %}{{ page.title }}{%endblock%}
+{% block pagetitle %}{{ page.title }}{% endblock %}
+{% block content %}
+ {% import 'translations.html' as translations with context %}
+ {{ translations.translations_for(page) }}
+
+ {{ page.content }}
+
+ {% if page.modified %}
+ <div class="right_stuff">
+ Last updated: {{ page.locale_modified }}
+ </div>
+ {% endif %}
+{% endblock %}
diff --git a/theme/templates/pagination.html b/theme/templates/pagination.html
new file mode 100644
index 0000000..4219a5c
--- /dev/null
+++ b/theme/templates/pagination.html
@@ -0,0 +1,11 @@
+{% if DEFAULT_PAGINATION %}
+<p class="paginator">
+ {% if articles_page.has_previous() %}
+ <a href="{{ SITEURL }}/{{ articles_previous_page.url }}">&laquo;</a>
+ {% endif %}
+ Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}
+ {% if articles_page.has_next() %}
+ <a href="{{ SITEURL }}/{{ articles_next_page.url }}">&raquo;</a>
+ {% endif %}
+</p>
+{% endif %}
diff --git a/theme/templates/period_archives.html b/theme/templates/period_archives.html
new file mode 100644
index 0000000..9f7da56
--- /dev/null
+++ b/theme/templates/period_archives.html
@@ -0,0 +1,11 @@
+{% extends "base.html" %}
+{% block pagetitle %}Archives for {{ period | reverse | join(' ') }}{% endblock %}
+{% block content %}
+
+<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/theme/templates/simple_base.html b/theme/templates/simple_base.html
new file mode 100644
index 0000000..bde7983
--- /dev/null
+++ b/theme/templates/simple_base.html
@@ -0,0 +1,63 @@
+<!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 %}
+</head>
+
+<body id="index" class="home">
+ <header id="banner" class="body">
+ <h1><a href="{{ SITEURL }}/">{{ SITENAME }} <strong>{{ SITESUBTITLE }}</strong></a></h1>
+ </header><!-- /#banner -->
+ <nav id="menu"><ul>
+ {% for title, link in MENUITEMS %}
+ <li><a href="{{ link }}">{{ title }}</a></li>
+ {% endfor %}
+ {% if DISPLAY_PAGES_ON_MENU %}
+ {% for p in PAGES %}
+ <li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
+ {% endfor %}
+ {% else %}
+ {% if DISPLAY_CATEGORIES_ON_MENU %}
+ {% for cat, null in categories %}
+ <li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
+ {% endfor %}
+ {% endif %}
+ {% endif %}
+ </ul></nav><!-- /#menu -->
+ {% block content %}
+ {% endblock %}
+ <footer id="contentinfo" class="body">
+ <address id="about" class="vcard body">
+ Proudly powered by <a href="http://getpelican.com/">Pelican</a>,
+ which takes great advantage of <a href="http://python.org">Python</a>.
+ </address><!-- /#about -->
+ </footer><!-- /#contentinfo -->
+</body>
+</html>
diff --git a/theme/templates/tag.html b/theme/templates/tag.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/theme/templates/tag.html
diff --git a/theme/templates/tags.html b/theme/templates/tags.html
new file mode 100644
index 0000000..1d49d42
--- /dev/null
+++ b/theme/templates/tags.html
@@ -0,0 +1,9 @@
+{% extends "base.html" %}
+
+{% block title %}{{ SITENAME }} - Tags{% endblock %}
+{% block pagetitle %}Tags for {{ SITENAME }}{% endblock %}
+{% block content %}
+ {%- for tag, articles in tags|sort %}
+ <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li>
+ {% endfor %}
+{% endblock %}
diff --git a/theme/templates/translations.html b/theme/templates/translations.html
new file mode 100644
index 0000000..db8c372
--- /dev/null
+++ b/theme/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 %}
+