aboutsummaryrefslogtreecommitdiffstats
path: root/graymill/templates
diff options
context:
space:
mode:
authorRahul Nair <rn@rahul-nair.com>2017-08-04 07:47:36 +0530
committerJustin Mayer <entroP@gmail.com>2017-08-03 19:17:36 -0700
commit3f9ddddab6f49eb2d2df35d47de78c0dddea3088 (patch)
tree65be5b1919d6f2feff3f94a5f7f8e6cbc575253d /graymill/templates
parent2a00d3cbf6ed7745ae3cd2f6a557bad31d4a3990 (diff)
downloadpelican-themes-3f9ddddab6f49eb2d2df35d47de78c0dddea3088.tar.gz
Add Graymill theme
Diffstat (limited to 'graymill/templates')
-rw-r--r--graymill/templates/archives.html27
-rw-r--r--graymill/templates/article.html56
-rw-r--r--graymill/templates/author.html18
-rw-r--r--graymill/templates/base.html138
-rw-r--r--graymill/templates/categories.html21
-rw-r--r--graymill/templates/category.html17
-rw-r--r--graymill/templates/index.html39
-rw-r--r--graymill/templates/page.html8
-rw-r--r--graymill/templates/pagination.html16
-rw-r--r--graymill/templates/tag.html18
-rw-r--r--graymill/templates/tags.html21
-rw-r--r--graymill/templates/translations.html6
12 files changed, 385 insertions, 0 deletions
diff --git a/graymill/templates/archives.html b/graymill/templates/archives.html
new file mode 100644
index 0000000..9ebba9c
--- /dev/null
+++ b/graymill/templates/archives.html
@@ -0,0 +1,27 @@
+{% extends "base.html" %}
+{% block head %}
+{{ super() }}
+<meta name="twitter:creator" content="{{ TWITTER_USERNAME }}">
+<meta name="twitter:url" content="{{ SITEURL }}/archives.html">
+<meta name="twitter:title" content="{{ SITENAME }} || Archives">
+<meta name="twitter:description" content="{{ SITENAME }} || Archives for this website">
+
+<!-- Facebook Meta Data -->
+<meta property="og:title" content="{{ SITENAME }} || Archives" />
+<meta property="og:description" content="{{ SITENAME }} || Archives for this website" />
+<meta property="og:image" content="{{ AVATAR }}" />
+{% endblock head %}
+{% block content %}
+<h2>Archives</h2>
+ {% for article in dates %}
+ <div class="row">
+ <div class="column column-25">
+ {{ article.locale_date }}
+ </div>
+
+ <div class="column column-75">
+ <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
+ </div>
+ </div>
+ {% endfor %}
+{% endblock %}
diff --git a/graymill/templates/article.html b/graymill/templates/article.html
new file mode 100644
index 0000000..58b49d9
--- /dev/null
+++ b/graymill/templates/article.html
@@ -0,0 +1,56 @@
+{% extends "base.html" %}
+{% block head %}
+{{ super() }}
+<meta name="twitter:creator" content="{{ TWITTER_USERNAME }}">
+<meta name="twitter:url" content="{{ SITEURL }}/{{ article.url }}">
+<meta name="twitter:title" content="{{ SITENAME }} ~ {{ article.title }}">
+<meta name="twitter:description" content="{{ article.summary|striptags|escape }}">
+
+<!-- Facebook Meta Data -->
+<meta property="og:title" content="{{ SITENAME }} ~ {{ article.title }}" />
+<meta property="og:description" content="{{ article.summary|striptags|escape }}" />
+<meta property="og:image" content="" />
+{% endblock head %}
+{% block title %}{{ article.title }}{% endblock %}
+{% block content %}
+<h2>
+ <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title }}">{{ article.title }}</a>
+</h2>
+
+<div>
+ <b>By: </b><a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a><b> On: </b>{{ article.locale_date }}<br />
+ <b>In: </b><a href="{{ SITEURL }}/{{ article.category.url }}" rel="bookmark" title="Permalink to {{ article.category|striptags }}">{{ article.category }}</a><br />
+ <em><b>Tags: </b>
+ {% if article.tags %}
+ {% for tag in article.tags %}
+ <span><a href="{{ SITEURL }}/{{ tag.url }}">#{{ tag }} </a></span>
+ {% endfor %}
+ {% endif %}
+ </em>
+ <hr>
+</div>
+
+<div>
+ <mainarticle>
+ {{ article.content }}
+ </mainarticle>
+</div>
+<hr>
+
+<div>
+ <i>If you found the article helpful, please share or cite the article, and spread the word:</i>
+ <p style="margin-top: 2%;">
+ <span><a target="_blank" rel="nofollow" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=700');return false;" title="Twitter" href="https://twitter.com/share?url={{ SITEURL }}/{{ article.url }}&text={{ article.title }}&via={{TWITTER_USERNAME}}"><img class="social-icons-a" src="{{ SITEURL }}/theme/images/icons/twitter.png"></a></span>
+ <span><a target="_blank" title="Facebook" rel="nofollow" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=500,width=700');return false;" href="https://www.facebook.com/sharer.php?u={{ SITEURL }}/{{article.url}}&t={{ article.title }}"><img class="social-icons-a" src="{{ SITEURL }}/theme/images/icons/facebook.png"></a></span>
+
+ <a target="_blank" title="Linkedin" href="https://www.linkedin.com/shareArticle?mini=true&url={{ SITEURL }}/{{ article.url }}&title={{ article.title }}" rel="nofollow" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=450,width=650');return false;"><img class="social-icons-a" src="{{ SITEURL }}/theme/images/icons/linkedin.png"></a>
+ </p>
+</div>
+<hr>
+{% if AUTHOREMAIL %}
+ <p><i>For any feedback or corrections, please write in to: </i><b> {{ AUTHOREMAIL }} </b></p>
+{% else %}
+ <p><i>For any feedback or corrections, please write in to: </i><b> {{ AUTHOR }} </b></p>
+{% endif %}
+
+{% endblock %}
diff --git a/graymill/templates/author.html b/graymill/templates/author.html
new file mode 100644
index 0000000..3606441
--- /dev/null
+++ b/graymill/templates/author.html
@@ -0,0 +1,18 @@
+{% extends "index.html" %}
+{% block head %}
+ {{ super() }}
+ <meta name="twitter:creator" content="{{ TWITTER_USERNAME }}">
+ <meta name="twitter:url" content="{{ SITEURL }}/{{ author.url }}">
+ <meta name="twitter:title" content="{{ SITENAME }} ~ {{ author }}">
+ <meta name="twitter:description" content="All articles by {{ author }}">
+
+ <!-- Facebook Meta Data -->
+ <meta property="og:title" content="{{ SITENAME }} ~ {{ author }}"/>
+ <meta property="og:description" content="All articles by {{ author }}"/>
+ <meta property="og:image" content="{{ AVATAR }}"/>
+{% endblock head %}
+{% block title %}{{ SITENAME }} - {{ author }}{% endblock %}
+{% block heading %}
+ <h2>Author: <i>{{ author }}</i></h2>
+{% endblock %}
+
diff --git a/graymill/templates/base.html b/graymill/templates/base.html
new file mode 100644
index 0000000..55fc051
--- /dev/null
+++ b/graymill/templates/base.html
@@ -0,0 +1,138 @@
+<!doctype html>
+<html lang="{{ DEFAULT_LANG }}" itemscope itemtype="http://schema.org/Person">
+<head>
+ {% block head %}
+ <meta charset="utf-8">
+ <!-- Site Meta Data -->
+ <title>{% block title %} {{ SITENAME }} {% endblock %}</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="description" content="{{ AUTHOR_DESCRIPTION }}">
+ <meta name="author" content="{{ AUTHOR }}">
+
+ <link rel="shortcut icon" href="{{ FAVICON }}">
+
+ <!-- schema.org -->
+ <meta itemprop="name" content="{{ SITENAME }}">
+ <meta itemprop="image" content="{{ AVATAR}}">
+ <meta itemprop="description" content="{{ AUTHOR_DESCRIPTION }}">
+
+ <!-- Style Meta Data -->
+ <link rel="stylesheet" href="{{ SITEURL }}/theme/css/milligram.css" type="text/css" />
+ <link rel="stylesheet" href="{{ SITEURL }}/theme/css/custom.css" type="text/css" />
+
+ <!-- Feed Meta Data -->
+ {% if FEED_ALL_ATOM %}
+ <link href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" />
+ {% endif %}
+ {% if FEED_ALL_RSS %}
+ <link href="{{ SITEURL }}/{{ FEED_RSS }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
+ {% endif %}
+
+ <!-- Twitter Feed -->
+ <meta name="twitter:card" content="summary">
+ <meta name="twitter:site" content="{{ TWITTER_USERNAME }}">
+ <meta name="twitter:image" content="">
+ {% endblock %}
+</head>
+
+<body>
+ <div class="container">
+
+ <!-- Navbar -->
+ <div class="navbar">
+ <ul>
+ <div>
+ <li>
+ <a href="{{ SITEURL }}"><h3>{{ SITENAME }}</h3></a>
+ </li>
+ <li>
+ {% if SITEDESCRIPTION %}
+ <em><h6>{{ SITEDESCRIPTION }}</h6></em>
+ {% endif %}
+ </li>
+ </div>
+ </ul>
+ </div>
+
+ <!-- Sidebar -->
+ <sidebar>
+ <ul class="static-item">
+ {% for title, link in MENUITEMS %}
+ <li><a href="{{ link }}">{{ title }}</a></li>
+ {% endfor %}
+
+ {% if DISPLAY_PAGES_ON_MENU and PAGES %}
+ {% for p in pages %}
+ <li><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
+ {% endfor %}
+ {% endif %}
+ </ul>
+
+ <ul>
+ {% if DISPLAY_CATEGORIES_ON_MENU and categories %}
+ <div class="cat-border">
+ <li style="color: #F2F1EF; background-color: #6C7A89;">Categories</li>
+ {% for cat, null in categories %}
+ <li{% if cat == category %}{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
+ {% endfor %}
+ </div>
+ {% endif %}
+ </ul>
+
+ {% if LINKS %}
+ <h2><br/>BLOGROLLS</h2>
+ <ul>
+ {% for name, link in LINKS %}
+ <li><a href="{{ link }}">{{ name }}</a></li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+
+ <p>
+ {% if SOCIAL %}
+ {% for name, link in SOCIAL %}
+ <span>
+ <a href="{{ link }}" target="_blank">
+ <img class="social-icons-m" src="{{ SITEURL }}/theme/images/icons/{{ name|lower }}.png">
+ </a>
+ </span>
+ {% endfor %}
+ {% endif %}
+ </p>
+ <p>
+ {% if FEED_ALL_ATOM %}
+ <a href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" rel="alternate">
+ <img class="social-icons-m" src="{{ SITEURL }}/theme/images/icons/rss.png"></a>
+ {% endif %}
+ </p>
+ <p>
+ {% if FEED_ALL_RSS %}
+ <a href="{{ SITEURL }}/{{ FEED_ALL_RSS }}" rel="alternate">
+ <img class="social-icons-m" src="{{ SITEURL }}/theme/images/icons/rss.png"></a>
+ {% endif %}
+ </p>
+ </sidebar>
+
+ <maincontent>
+ {% block content %}
+ {% endblock %}
+ </maincontent>
+
+ <!-- Analytics -->
+ {% if GOOGLE_ANALYTICS %}
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', '{{ GOOGLE_ANALYTICS }}']);
+ _gaq.push(['_trackPageview']);
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ </script>
+ {% endif %}
+
+ </div>
+</body>
+
+</html>
diff --git a/graymill/templates/categories.html b/graymill/templates/categories.html
new file mode 100644
index 0000000..676f717
--- /dev/null
+++ b/graymill/templates/categories.html
@@ -0,0 +1,21 @@
+{% extends "base.html" %}
+{% block head %}
+{{ super() }}
+<meta name="twitter:creator" content="{{ TWITTER_USERNAME }}">
+<meta name="twitter:url" content="{{ SITEURL }}/categories.html">
+<meta name="twitter:title" content="{{ SITENAME }} || Categories">
+<meta name="twitter:description" content="{{ SITENAME }} || Categories in this website">
+
+<!-- Facebook Meta Data -->
+<meta property="og:title" content="{{ SITENAME }} || Categories" />
+<meta property="og:description" content="{{ SITENAME }} || Categories in this website" />
+<meta property="og:image" content="{{ AVATAR }}" />
+{% endblock head %}
+{% block content %}
+<h2>Categories</h2>
+<ol>
+{% for category, articles in categories %}
+ <li><a href="{{ category.url }}">{{ category }}</a></li>
+{% endfor %}
+</ol>
+{% endblock %}
diff --git a/graymill/templates/category.html b/graymill/templates/category.html
new file mode 100644
index 0000000..b4ffe69
--- /dev/null
+++ b/graymill/templates/category.html
@@ -0,0 +1,17 @@
+{% extends "index.html" %}
+{% block head %}
+ {{ super() }}
+ <meta name="twitter:creator" content="{{ TWITTER_USERNAME }}">
+ <meta name="twitter:url" content="{{ SITEURL }}/{{ category.url }}">
+ <meta name="twitter:title" content="{{ SITENAME }} || {{ category }}">
+ <meta name="twitter:description" content="Articles in {{ category }}">
+
+ <!-- Facebook Meta Data -->
+ <meta property="og:title" content="{{ SITENAME }} || {{ category }}"/>
+ <meta property="og:description" content="Articles in {{ category }}"/>
+ <meta property="og:image" content="{{ AVATAR }}"/>
+{% endblock head %}
+{% block title %}{{ SITENAME }} - {{ category }}{% endblock %}
+{% block heading %}
+ <h2>Category: <i>{{ category }}</i></h2>
+{% endblock %}
diff --git a/graymill/templates/index.html b/graymill/templates/index.html
new file mode 100644
index 0000000..b63d91f
--- /dev/null
+++ b/graymill/templates/index.html
@@ -0,0 +1,39 @@
+{% extends "base.html" %}
+{% block head %}
+{{ super() }}
+ <meta name="twitter:creator" content="{{ TWITTER_USERNAME }}">
+ <meta name="twitter:url" content="{{ SITEURL }}">
+ <meta name="twitter:title" content="{{ SITENAME }}">
+ <meta name="twitter:description" content="{{ SITEDESCRIPTION }}">
+
+ <!-- Facebook Meta Data -->
+ <meta property="og:title" content="{{ SITENAME }}" />
+ <meta property="og:description" content="{{ SITEDESCRIPTION }}" />
+ <meta property="og:image" content="" />
+{% endblock head %}
+{% block content_title %}{% endblock %}
+{% block content %}
+
+{% if articles %}
+ <ol>
+ {% block heading %}
+ <h3>Recent entries</h3>
+ {% endblock %}
+ {% for article in (articles_page.object_list if articles_page else articles) %}
+ <hr>
+ <li>
+ <h5><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h5>
+ {% if DISPLAY_SUMMARY and article.summary|length > 0 %}
+ <i>{{ article.summary }}</i>
+ {% endif %}
+ By:<a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a><br />On:{{ article.locale_date }}<br />In:<a href="{{ SITEURL }}/{{ article.category.url }}" rel="bookmark" title="Permalink to {{ article.category|striptags }}">{{ article.category }}</a>
+ </li>
+ {% endfor %}
+ </ol>
+{% endif %}
+
+{% if articles_page and articles_paginator.num_pages > 1 %}
+ {% include 'pagination.html' %}
+{% endif %}
+
+{% endblock content %}
diff --git a/graymill/templates/page.html b/graymill/templates/page.html
new file mode 100644
index 0000000..dc6cfff
--- /dev/null
+++ b/graymill/templates/page.html
@@ -0,0 +1,8 @@
+{% extends "base.html" %}
+{% block title %}{{ page.title }}{% endblock %}
+{% block content %}
+{% if PDF_PROCESSOR %}
+ <a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">Download the PDF file</a>
+{% endif %}
+{{ page.content }}
+{% endblock %}
diff --git a/graymill/templates/pagination.html b/graymill/templates/pagination.html
new file mode 100644
index 0000000..0c5ed4d
--- /dev/null
+++ b/graymill/templates/pagination.html
@@ -0,0 +1,16 @@
+{% if DEFAULT_PAGINATION %}
+<p class="pagination-dir">
+ {% if articles_page.has_previous() %}
+ {% if articles_page.previous_page_number() == 1 %}
+ <a href="{{ SITEURL }}/{{ page_name }}.html">&#8678;</a>
+ {% else %}
+ <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html">&#8678;</a>
+ {% endif %}
+ {% endif %}
+ {{ articles_page.number }} of {{ articles_paginator.num_pages }}
+ {% if articles_page.has_next() %}
+ <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">&#8680;</a>
+ {% endif %}
+</p>
+{% endif %}
+
diff --git a/graymill/templates/tag.html b/graymill/templates/tag.html
new file mode 100644
index 0000000..8186a7a
--- /dev/null
+++ b/graymill/templates/tag.html
@@ -0,0 +1,18 @@
+{% extends "index.html" %}
+{% block head %}
+ {{ super() }}
+ <meta name="twitter:creator" content="{{ TWITTER_USERNAME }}">
+ <meta name="twitter:url" content="{{ SITEURL }}/{{ tag.url }}">
+ <meta name="twitter:title" content="{{ SITENAME }} || {{ tag }}">
+ <meta name="twitter:description" content="Articles with the tag '{{ tag }}'">
+
+ <!-- Facebook Meta Data -->
+ <meta property="og:title" content="{{ SITENAME }} || {{ tag }}"/>
+ <meta property="og:description" content="Articles with the tag '{{ tag }}'"/>
+ <meta property="og:image" content="{{ AVATAR }}"/>
+{% endblock head %}
+{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %}
+{% block heading %}
+ <h2>Tag: {{ tag }}</h2>
+{% endblock %}
+
diff --git a/graymill/templates/tags.html b/graymill/templates/tags.html
new file mode 100644
index 0000000..b9a80cb
--- /dev/null
+++ b/graymill/templates/tags.html
@@ -0,0 +1,21 @@
+{% extends "base.html" %}
+{% block head %}
+{{ super() }}
+<meta name="twitter:creator" content="{{ TWITTER_USERNAME }}">
+<meta name="twitter:url" content="{{ SITEURL }}/tags.html">
+<meta name="twitter:title" content="{{ SITENAME }} || Tags">
+<meta name="twitter:description" content="{{ SITENAME }} || Tags in this website">
+
+<!-- Facebook Meta Data -->
+<meta property="og:title" content="{{ SITENAME }} || Tags" />
+<meta property="og:description" content="{{ SITENAME }} || Tags" />
+<meta property="og:image" content="{{ AVATAR }}" />
+{% endblock head %}
+{% block content %}
+<h2>Tags</h2>
+<ol>
+{% for tag, articles in tags %}
+ <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</li>
+{% endfor %}
+</ol>
+{% endblock %}
diff --git a/graymill/templates/translations.html b/graymill/templates/translations.html
new file mode 100644
index 0000000..30429a4
--- /dev/null
+++ b/graymill/templates/translations.html
@@ -0,0 +1,6 @@
+{% if article.translations %}
+ <span>Languages: </span>
+ {% for translation in article.translations %}
+ <a href="{{ SITEURL }}/{{ translation.url }}"><i class="icon-edit"></i>{{ translation.lang }}</a>
+ {% endfor %}
+{% endif %}