aboutsummaryrefslogtreecommitdiff
path: root/development/libs/barrel/docs/blue-penguin/templates
diff options
context:
space:
mode:
Diffstat (limited to 'development/libs/barrel/docs/blue-penguin/templates')
-rw-r--r--development/libs/barrel/docs/blue-penguin/templates/analytics.html11
-rw-r--r--development/libs/barrel/docs/blue-penguin/templates/archives.html22
-rw-r--r--development/libs/barrel/docs/blue-penguin/templates/article.html17
-rw-r--r--development/libs/barrel/docs/blue-penguin/templates/article_stub.html37
-rw-r--r--development/libs/barrel/docs/blue-penguin/templates/author.html7
-rw-r--r--development/libs/barrel/docs/blue-penguin/templates/base.html105
-rw-r--r--development/libs/barrel/docs/blue-penguin/templates/category.html6
-rw-r--r--development/libs/barrel/docs/blue-penguin/templates/disqus.html12
-rw-r--r--development/libs/barrel/docs/blue-penguin/templates/index.html17
-rw-r--r--development/libs/barrel/docs/blue-penguin/templates/page.html8
-rw-r--r--development/libs/barrel/docs/blue-penguin/templates/pagination.html38
-rw-r--r--development/libs/barrel/docs/blue-penguin/templates/tag.html5
-rw-r--r--development/libs/barrel/docs/blue-penguin/templates/tags.html8
-rw-r--r--development/libs/barrel/docs/blue-penguin/templates/translations.html6
14 files changed, 299 insertions, 0 deletions
diff --git a/development/libs/barrel/docs/blue-penguin/templates/analytics.html b/development/libs/barrel/docs/blue-penguin/templates/analytics.html
new file mode 100644
index 000000000000..ba174fcc20a5
--- /dev/null
+++ b/development/libs/barrel/docs/blue-penguin/templates/analytics.html
@@ -0,0 +1,11 @@
+{% if GOOGLE_ANALYTICS %}
+ <script type="text/javascript">
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+ </script>
+ <script type="text/javascript">
+ try {
+ var pageTracker = _gat._getTracker("{{GOOGLE_ANALYTICS}}");
+ pageTracker._trackPageview();
+ } catch(err) {}</script>
+{% endif %} \ No newline at end of file
diff --git a/development/libs/barrel/docs/blue-penguin/templates/archives.html b/development/libs/barrel/docs/blue-penguin/templates/archives.html
new file mode 100644
index 000000000000..73c53bae8b09
--- /dev/null
+++ b/development/libs/barrel/docs/blue-penguin/templates/archives.html
@@ -0,0 +1,22 @@
+{% extends "base.html" %}
+
+{% block title %}{{ SITENAME }} | Archives{% endblock %}
+{% block content %}
+
+ <h1>Archives</h1>
+
+ {# based on http://stackoverflow.com/questions/12764291/jinja2-group-by-month-year #}
+
+ {% for year, year_group in dates|groupby('date.year')|reverse %}
+ {% for month, month_group in year_group|groupby('date.month')|reverse %}
+ <h4 class="date">{{ (month_group|first).date|strftime('%b %Y') }}</h4>
+ <div class="post archives">
+ <ul>
+ {% for article in month_group %}
+ <li><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></li>
+ {% endfor %}
+ </ul>
+ </div>
+ {% endfor %}
+ {% endfor %}
+{% endblock %}
diff --git a/development/libs/barrel/docs/blue-penguin/templates/article.html b/development/libs/barrel/docs/blue-penguin/templates/article.html
new file mode 100644
index 000000000000..d8e7071e9ebf
--- /dev/null
+++ b/development/libs/barrel/docs/blue-penguin/templates/article.html
@@ -0,0 +1,17 @@
+{% extends "base.html" %}
+
+{% block head %}
+ {{ super() }}
+ {% if article.tags %}
+ <meta name="keywords" content="{{ article.tags|join(",") }}" />
+ {% endif %}
+ {% if article.description %}
+ <meta name="description" content="{{ article.description }}" />
+ {% endif %}
+{% endblock %}
+
+{% block title %}{{ SITENAME }} | {{ article.title }}{% endblock %}
+
+{% block content %}
+{% include "article_stub.html" %}
+{% endblock %}
diff --git a/development/libs/barrel/docs/blue-penguin/templates/article_stub.html b/development/libs/barrel/docs/blue-penguin/templates/article_stub.html
new file mode 100644
index 000000000000..935235592889
--- /dev/null
+++ b/development/libs/barrel/docs/blue-penguin/templates/article_stub.html
@@ -0,0 +1,37 @@
+ {% if not articles_page or first_article_of_day %}
+ <h4 class="date">{{ article.date.strftime("%b %d, %Y") }}</h4>
+ {% endif %}
+
+ <article class="post">
+ {% if article.title %}
+ <h2 class="title">
+ <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permanent Link to &quot;{{ article.title }}&quot;">{{ article.title }}</a>
+ </h2>
+ {% endif %}
+
+ {% if not articles_page %}
+ {% include "translations.html" %}
+ {% endif %}
+
+
+ {{ article.content }}
+ <div class="clear"></div>
+
+ <div class="info">
+ <a href="{{ SITEURL }}/{{ article.url }}">posted at {{ article.date.strftime("%H:%M") }}</a>
+ {% if article.category.name != "misc" %}
+ &nbsp;&middot;&nbsp;<a href="{{ SITEURL }}/{{ article.category.url }}" rel="tag">{{ article.category }}</a>
+ {% endif %}
+ {% if article.tags %}
+ &nbsp;&middot;
+ {% for t in article.tags %}
+ &nbsp;<a href="{{ SITEURL }}/{{ t.url }}" class="tags{% if tag and tag.name == t.name %} selected{% endif %}">{{ t }}</a>
+ {% endfor %}
+ {% endif %}
+ </div>
+ {% if articles_page and DISQUS_SITENAME %}
+ <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">Click to read and post comments</a>
+ {% else %}
+ {% include "disqus.html" %}
+ {% endif %}
+ </article>
diff --git a/development/libs/barrel/docs/blue-penguin/templates/author.html b/development/libs/barrel/docs/blue-penguin/templates/author.html
new file mode 100644
index 000000000000..b9ff61e6c048
--- /dev/null
+++ b/development/libs/barrel/docs/blue-penguin/templates/author.html
@@ -0,0 +1,7 @@
+{% extends "index.html" %}
+
+{% block title %}{{ SITENAME }} | Articles by {{ author }}{% endblock %}
+{% block ephemeral_nav %}
+
+ {{ ephemeral_nav_link(author, output_file, True) }}
+{% endblock %}
diff --git a/development/libs/barrel/docs/blue-penguin/templates/base.html b/development/libs/barrel/docs/blue-penguin/templates/base.html
new file mode 100644
index 000000000000..378b12c2b0cf
--- /dev/null
+++ b/development/libs/barrel/docs/blue-penguin/templates/base.html
@@ -0,0 +1,105 @@
+{% macro ephemeral_nav_link(what, where, selected=False) -%}
+<li class="ephemeral{% if selected %} selected{% endif %}"><a href="{{ SITEURL }}/{{ where }}">{{what}}</a></li>
+{%- endmacro -%}
+
+<!DOCTYPE html>
+<html lang="{{ DEFAULT_LANG }}">
+<head>
+ {% block head %}
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width,initial-scale=1">
+ <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
+ {# favicon #}
+ <link rel="shortcut icon" type="image/png" href="{{ SITEURL }}/favicon.png">
+ <link rel="shortcut icon" type="image/x-icon" href="{{ SITEURL }}/favicon.ico">
+ {% 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(slug=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(slug=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(slug=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(slug=tag.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" />
+ {% endif %}
+ <link rel="stylesheet" href="{{ SITEURL }}/theme/css/screen.css" type="text/css" />
+ <link rel="stylesheet" href="{{ SITEURL }}/theme/css/pygments.css" type="text/css" />
+ <link rel="stylesheet" href="{{ SITEURL }}/theme/css/print.css" type="text/css" media="print" />
+ <meta name="generator" content="Pelican" />
+ <meta name="description" content="{{ SITEDESCRIPTION }}" />
+ <meta name="author" content="{{ AUTHOR }}" />
+ {% endblock head %}
+</head>
+<body>
+ {% if DISPLAY_HEADER or DISPLAY_HEADER is not defined %}
+ <header>
+ {% if DISPLAY_MENU or DISPLAY_MENU is not defined %}
+ <nav>
+ <ul>
+ <!-- {% block ephemeral_nav %}{% endblock %} -->
+ {% if DISPLAY_HOME or DISPLAY_HOME is not defined %}
+ <li{% if output_file == "index.html" %} class="selected"{% endif %}><a href="{{ SITEURL }}/">Home</a></li>
+ {% endif %}
+ {% if DISPLAY_PAGES_ON_MENU %}
+ {% for p in pages %}
+ <li{% if p == page %} class="selected"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
+ {% endfor %}
+ {% endif %}
+ {% for title, link in MENUITEMS %}
+ <li><a href="{{ link }}">{{ title }}</a></li>
+ {% endfor %}
+ {% for name, link, file in MENU_INTERNAL_PAGES %}
+ <li{% if output_file == file %} class="selected"{% endif %}><a href="{{ SITEURL }}/{{ link }}">{{ name }}</a></li>
+ {% endfor %}
+ </ul>
+ </nav>
+ {% endif %}
+ <div class="header_box">
+ <h1><a href="{{ SITEURL }}/">{{ SITENAME }}</a></h1>
+ {% if SITESUBTITLE %}
+ <h2>{{ SITESUBTITLE }}</h2>
+ {% endif %}
+ </div>
+ </header>
+ {% endif %}
+ <div id="wrapper">
+ <div id="content">
+ {%- block content -%}{%- endblock %}
+
+ {% if DISPLAY_FOOTER or DISPLAY_FOOTER is not defined %}
+ <div class="clear"></div>
+ <footer>
+ <p>
+ <a href="https://github.com/jody-frankowski/blue-penguin">Blue Penguin</a> Theme
+ &middot;
+ Powered by <a href="http://getpelican.com">Pelican</a>
+ {% if FEED_ALL_ATOM %}
+ &middot;
+ <a href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" rel="alternate">Atom Feed</a>
+ {% endif %}
+ {% if FEED_ALL_RSS %}
+ &middot;
+ <a href="{{ SITEURL }}/{{ FEED_ALL_RSS }}" rel="alternate">Rss Feed</a>
+ {% endif %}
+ </footer>
+ {% endif %}
+ </div>
+ <div class="clear"></div>
+ </div>
+{% include 'analytics.html' %}
+</body>
+</html>
diff --git a/development/libs/barrel/docs/blue-penguin/templates/category.html b/development/libs/barrel/docs/blue-penguin/templates/category.html
new file mode 100644
index 000000000000..23dea1f19d73
--- /dev/null
+++ b/development/libs/barrel/docs/blue-penguin/templates/category.html
@@ -0,0 +1,6 @@
+{% extends "index.html" %}
+{% block title %}{{ SITENAME }} | articles in the "{{ category }}" category{% if articles_page.number != 0 %} | Page {{ articles_page.number }}{% endif %}{% endblock %}
+{% block ephemeral_nav %}
+
+ {{ ephemeral_nav_link(category, output_file, True) }}
+{% endblock %}
diff --git a/development/libs/barrel/docs/blue-penguin/templates/disqus.html b/development/libs/barrel/docs/blue-penguin/templates/disqus.html
new file mode 100644
index 000000000000..b4093e556b69
--- /dev/null
+++ b/development/libs/barrel/docs/blue-penguin/templates/disqus.html
@@ -0,0 +1,12 @@
+{% if DISQUS_SITENAME %}
+<div id="disqus_thread"></div>
+<script type="text/javascript">
+ var disqus_shortname = '{{ DISQUS_SITENAME }}';
+ (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="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
+{% endif %}
diff --git a/development/libs/barrel/docs/blue-penguin/templates/index.html b/development/libs/barrel/docs/blue-penguin/templates/index.html
new file mode 100644
index 000000000000..b8b40f4c045b
--- /dev/null
+++ b/development/libs/barrel/docs/blue-penguin/templates/index.html
@@ -0,0 +1,17 @@
+{% extends "base.html" %}
+
+{% block title %}{{ SITENAME }}{% if articles_page.number != 1 %} | Page {{ articles_page.number }}{% endif %}{% endblock %}
+{% block content %}
+{% set date = None %}
+{% for article in articles_page.object_list %}
+{% if date != article.date.date() %}
+{% set first_article_of_day = True %}
+{% else %}
+{% set first_article_of_day = False %}
+{% endif %}
+{% set date = article.date.date() %}
+{% include "article_stub.html" %}
+{% endfor %}
+
+{% include "pagination.html" %}
+{% endblock %}
diff --git a/development/libs/barrel/docs/blue-penguin/templates/page.html b/development/libs/barrel/docs/blue-penguin/templates/page.html
new file mode 100644
index 000000000000..94b9610059cf
--- /dev/null
+++ b/development/libs/barrel/docs/blue-penguin/templates/page.html
@@ -0,0 +1,8 @@
+{% extends "base.html" %}
+
+{% block content %}
+
+ <div class="page">
+ {{ page.content }}
+ </div>
+{% endblock %}
diff --git a/development/libs/barrel/docs/blue-penguin/templates/pagination.html b/development/libs/barrel/docs/blue-penguin/templates/pagination.html
new file mode 100644
index 000000000000..69eac104e99a
--- /dev/null
+++ b/development/libs/barrel/docs/blue-penguin/templates/pagination.html
@@ -0,0 +1,38 @@
+{# Use PAGINATION_PATTERNS or pagination may break #}
+{% if DEFAULT_PAGINATION and (articles_page.has_previous() or articles_page.has_next()) %}
+
+ <div class="clear"></div>
+ <div class="pages">
+ {% if PAGINATION_PATTERNS[0][0] != 0 %}
+ {%- if articles_page.has_previous() %}
+ {% if articles_page.previous_page_number() == 1 %}
+
+ <a href="{{ SITEURL }}/" class="prev_page">&larr;&nbsp;Previous</a>
+ {%- else %}
+
+ <a href="{{ SITEURL }}/page/{{ articles_page.previous_page_number() }}" class="prev_page">&larr;&nbsp;Previous</a>
+ {%- endif %}
+ {%- endif %}
+ {%- if articles_page.has_next() %}
+
+ <a href="{{ SITEURL }}/page/{{ articles_page.next_page_number() }}" class="next_page">Next&nbsp;&rarr;</a>
+ {%- endif %}
+ {% else %}
+ {%- if articles_page.has_previous() %}
+ {% if articles_page.previous_page_number() == 1 %}
+
+ <a href="{{ SITEURL }}/{{ page_name }}.html" class="prev_page">&larr;&nbsp;Previous</a>
+ {%- else %}
+
+ <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html" class="prev_page">&larr;&nbsp;Previous</a>
+ {%- endif %}
+ {%- endif %}
+ {%- if articles_page.has_next() %}
+
+ <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html" class="next_page">Next&nbsp;&rarr;</a>
+ {%- endif %}
+ {% endif %}
+
+ <span>Page {{ articles_page.number }} of {{ articles_paginator.num_pages }}</span>
+ </div>
+{% endif %}
diff --git a/development/libs/barrel/docs/blue-penguin/templates/tag.html b/development/libs/barrel/docs/blue-penguin/templates/tag.html
new file mode 100644
index 000000000000..92c3439253d9
--- /dev/null
+++ b/development/libs/barrel/docs/blue-penguin/templates/tag.html
@@ -0,0 +1,5 @@
+{% extends "index.html" %}
+{% block title %}{{ SITENAME }} | articles tagged "{{ tag }}"{% if articles_page.number != 1 %} | Page {{ articles_page.number }}{% endif %}{% endblock %}
+{% block ephemeral_nav %}
+ {{ ephemeral_nav_link(tag, output_file, True) }}
+{% endblock %}
diff --git a/development/libs/barrel/docs/blue-penguin/templates/tags.html b/development/libs/barrel/docs/blue-penguin/templates/tags.html
new file mode 100644
index 000000000000..ac657229bac6
--- /dev/null
+++ b/development/libs/barrel/docs/blue-penguin/templates/tags.html
@@ -0,0 +1,8 @@
+{% extends "base.html" %}
+{% block content %}
+<ul>
+ {% for tag, articles in tags %}
+ <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
+ {% endfor %}
+</ul>
+{% endblock %}
diff --git a/development/libs/barrel/docs/blue-penguin/templates/translations.html b/development/libs/barrel/docs/blue-penguin/templates/translations.html
new file mode 100644
index 000000000000..f0a0fa2af3f9
--- /dev/null
+++ b/development/libs/barrel/docs/blue-penguin/templates/translations.html
@@ -0,0 +1,6 @@
+{% if article.translations %}
+Translations:
+ {% for translation in article.translations %}
+ <a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
+ {% endfor %}
+{% endif %} \ No newline at end of file