diff options
Diffstat (limited to 'gum/templates')
-rw-r--r-- | gum/templates/archives.html | 11 | ||||
-rw-r--r-- | gum/templates/article.html | 53 | ||||
-rw-r--r-- | gum/templates/author.html | 7 | ||||
-rw-r--r-- | gum/templates/base.html | 155 | ||||
-rw-r--r-- | gum/templates/categories.html | 8 | ||||
-rw-r--r-- | gum/templates/category.html | 5 | ||||
-rw-r--r-- | gum/templates/disqus_script.html | 11 | ||||
-rw-r--r-- | gum/templates/index.html | 49 | ||||
-rw-r--r-- | gum/templates/page.html | 9 | ||||
-rw-r--r-- | gum/templates/pagination.html | 15 | ||||
-rwxr-xr-x | gum/templates/piwik.html | 16 | ||||
-rw-r--r-- | gum/templates/sidebar.html | 53 | ||||
-rw-r--r-- | gum/templates/tag.html | 2 | ||||
-rw-r--r-- | gum/templates/tags.html | 13 |
14 files changed, 407 insertions, 0 deletions
diff --git a/gum/templates/archives.html b/gum/templates/archives.html new file mode 100644 index 0000000..050f268 --- /dev/null +++ b/gum/templates/archives.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} +{% block content %} +<h1>Archives for {{ SITENAME }}</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/gum/templates/article.html b/gum/templates/article.html new file mode 100644 index 0000000..15188d0 --- /dev/null +++ b/gum/templates/article.html @@ -0,0 +1,53 @@ +{% extends "base.html" %} +{% block title %}{{ article.title|striptags }}{% endblock %} +{% block content %} +<section id="content" class="body"> + + <div class="row"> + <div class="eleven columns"> + + + <header> + <h2 class="entry-title"> + <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" + title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> + {% import 'translations.html' as translations with context %} + {{ translations.translations_for(article) }} + </header> + <footer class="post-info"> + <abbr class="published" title="{{ article.date.isoformat() }}"> + {{ article.locale_date }} + </abbr> + {% if article.author %} + <address class="vcard author"> + By <a class="url fn" href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a> + </address> + {% endif %} + </footer><!-- /.post-info --> + <div class="entry-content"> + {{ article.content }} + </div><!-- /.entry-content --> + {% if DISQUS_SITENAME %} + <div class="comments"> + <h3>Comments</h3> + <div id="disqus_thread"></div> + <script type="text/javascript"> + var disqus_identifier = "{{ article.url }}"; + (function() { + var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; + dsq.src = 'http://{{ DISQUS_SITENAME }}.disqus.com/embed.js'; + (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); + })(); + </script> + </div> + {% endif %} + + + </div><!-- /.eleven.columns --> + + {% include 'sidebar.html' %} + </div><!-- /.row --> + + +</section> +{% endblock %} diff --git a/gum/templates/author.html b/gum/templates/author.html new file mode 100644 index 0000000..e9f7870 --- /dev/null +++ b/gum/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/gum/templates/base.html b/gum/templates/base.html new file mode 100644 index 0000000..bc0fa93 --- /dev/null +++ b/gum/templates/base.html @@ -0,0 +1,155 @@ +<!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 %} + + + <!-- Mobile viewport optimized: j.mp/bplateviewport --> + <meta name="viewport" content="width=device-width,initial-scale=1, maximum-scale=1"> + + <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/gumby.css" /> + <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/style.css" /> + <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/pygment.css" /> + + <script src="{{ SITEURL }}/theme/js/libs/modernizr-2.6.2.min.js"></script> + + + {% if GOOGLE_ANALYTICS_ID %} + <script> + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) + })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); + + ga('create', '{{ GOOGLE_ANALYTICS_ID }}', '{{ GOOGLE_ANALYTICS_SITENAME }}'); + ga('send', 'pageview'); + + </script> + {% endif %} + + + + + {% endblock head %} +</head> + +<body id="index" class="home"> + + + <div class="container"> + + <div class="row"> + + <header id="banner" class="body"> + <h1><a href="{{ SITEURL }}">{{ SITENAME }} <strong>{{ SITESUBTITLE }}</strong></a></h1> + </header><!-- /#banner --> + + <div id="navigation" class="navbar row"> + <a href="#" gumby-trigger="#navigation > ul" class="toggle"><i class="icon-menu"></i></a> + + <ul class="columns"> + <li><a href="{{ SITEURL }}">Home</a></li> + + {% 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> + </div> + + {% block content %} + + {% endblock %} + + </div><!-- /.row --> + </div><!-- /.container --> + + + <div class="container.nopad bg"> + + + <footer id="credits" class="row"> + <div class="seven columns left-center"> + + <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>. + <br /> + Based on the <a target="_blank" href="http://gumbyframework.com">Gumby Framework</a> + </address> + </div> + + + <div class="seven columns"> + <div class="row"> + <ul class="socbtns"> + + {% if GITHUB_URL %} + <li><div class="btn primary"><a href="{{ GITHUB_URL }}" target="_blank">Github</a></div></li> + {% endif %} + + {% if TWITTER_URL %} + <li><div class="btn twitter"><a href="{{ TWITTER_URL }}" target="_blank">Twitter</a></div></li> + {% endif %} + + {% if FACEBOOK_URL %} + <li><div class="btn facebook"><a href="{{ FACEBOOK_URL }}" target="_blank">Facebook</a></div></li> + {% endif %} + + {% if GOOGLEPLUS_URL %} + <li><div class="btn danger"><a href="{{ GOOGLEPLUS_URL }}" target="_blank">Google+</a></div></li> + {% endif %} + + </ul> + </div> + </div> + </footer> + + </div> + + +{% include 'disqus_script.html' %} +{% include 'piwik.html' %} + <script src="{{ SITEURL }}/theme/js/libs/jquery-1.9.1.min.js"></script> + <script src="{{ SITEURL }}/theme/js/libs/gumby.min.js"></script> + <script src="{{ SITEURL }}/theme/js/plugins.js"></script> +</body> +</html> diff --git a/gum/templates/categories.html b/gum/templates/categories.html new file mode 100644 index 0000000..e29be0c --- /dev/null +++ b/gum/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/gum/templates/category.html b/gum/templates/category.html new file mode 100644 index 0000000..4e6fd24 --- /dev/null +++ b/gum/templates/category.html @@ -0,0 +1,5 @@ +{% extends "index.html" %} +{% block content_title %} +<h2>Articles in the {{ category }} category</h2> +{% endblock %} + diff --git a/gum/templates/disqus_script.html b/gum/templates/disqus_script.html new file mode 100644 index 0000000..c4f442c --- /dev/null +++ b/gum/templates/disqus_script.html @@ -0,0 +1,11 @@ +{% if DISQUS_SITENAME %} +<script type="text/javascript"> + var disqus_shortname = '{{ DISQUS_SITENAME }}'; + (function () { + var s = document.createElement('script'); s.async = true; + s.type = 'text/javascript'; + s.src = 'http://' + disqus_shortname + '.disqus.com/count.js'; + (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); + }()); +</script> +{% endif %} diff --git a/gum/templates/index.html b/gum/templates/index.html new file mode 100644 index 0000000..aae5ea5 --- /dev/null +++ b/gum/templates/index.html @@ -0,0 +1,49 @@ +{% extends "base.html" %} +{% block content %} +<section id="content"> +{% block content_title %} + +{% endblock %} + + + <div class="row"> + + + <div class="eleven columns"> + <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> + {% if article.author %}<address class="vcard author">By <a class="url fn" href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a></address>{% endif %} + </footer><!-- /.post-info --> + <div class="entry-content"> {{ article.summary }} </div><!-- /.entry-content --> + + <div class="medium primary btn"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">Read more <i class="icon-arrow-right"></i></a></div> + + + + <div class="row tag-row"> + {% if article.tags %} + <span>Tagged as : </span> + {% for tag in article.tags %} + <a class="danger label" href="{{ SITEURL }}/{{ tag.url }}">{{ tag|e }}</a> + {% endfor %} + {% endif %} + </div> + + + + </article></li> + {% endfor %} + </ol><!-- /#posts-list --> + + </div><!-- /.eleven.columns --> + + {% include 'sidebar.html' %} + </div><!-- /.row --> + +{% include 'pagination.html' %} +</section><!-- /#content --> +{% endblock content %} diff --git a/gum/templates/page.html b/gum/templates/page.html new file mode 100644 index 0000000..3a0dc4a --- /dev/null +++ b/gum/templates/page.html @@ -0,0 +1,9 @@ +{% 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 }} +{% endblock %} diff --git a/gum/templates/pagination.html b/gum/templates/pagination.html new file mode 100644 index 0000000..7b4afb5 --- /dev/null +++ b/gum/templates/pagination.html @@ -0,0 +1,15 @@ +{% if DEFAULT_PAGINATION %} +<p class="paginator"> + {% if articles_page.has_previous() %} + {% if articles_page.previous_page_number() == 1 %} + <a href="{{ SITEURL }}/{{ page_name }}.html"><i class="icon-arrow-left"></i></a> + {% else %} + <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html"><i class="icon-arrow-left"></i></a> + {% endif %} + {% endif %} + Page {{ articles_page.number }} / {{ articles_paginator.num_pages }} + {% if articles_page.has_next() %} + <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html"><i class="icon-arrow-right"></i></a> + {% endif %} +</p> +{% endif %} diff --git a/gum/templates/piwik.html b/gum/templates/piwik.html new file mode 100755 index 0000000..ff459af --- /dev/null +++ b/gum/templates/piwik.html @@ -0,0 +1,16 @@ +{% if PIWIK_URL and PIWIK_SITE_ID %} + <script type="text/javascript"> + {% if PIWIK_SSL_URL %} + var pkBaseURL = (("https:" == document.location.protocol) ? "https://{{ PIWIK_SSL_URL }}/" : "http://{{ PIWIK_URL }}/"); + {% else %} + var pkBaseURL = (("https:" == document.location.protocol) ? "https://{{ PIWIK_URL }}/" : "http://{{ PIWIK_URL }}/"); + {% endif %} + document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E")); + </script><script type="text/javascript"> + try { + var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", {{ PIWIK_SITE_ID }}); + piwikTracker.trackPageView(); + piwikTracker.enableLinkTracking(); + } catch( err ) {} + </script><noscript><p><img src="http://{{ PIWIK_URL }}/piwik.php?idsite={{ PIWIK_SITE_ID }}" style="border:0" alt="" /></p></noscript> +{% endif %}
\ No newline at end of file diff --git a/gum/templates/sidebar.html b/gum/templates/sidebar.html new file mode 100644 index 0000000..25b22e4 --- /dev/null +++ b/gum/templates/sidebar.html @@ -0,0 +1,53 @@ +<div class="three columns"> + +<h4>Pages</h4> + + <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> + +<h4>Categories</h4> +{% if categories %} +<ul> + {% for cat, null in categories %} + <li><a href="{{ SITEURL }}/{{ cat.url|e }}">{{ cat }}</a></li> + {% endfor %} +</ul> +{% endif %} + + +<h4>Tags</h4> +{% if tags %} + <ul> + {% for tag in tag_cloud %} + <li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/{{ tag.0.url }}">{{ tag.0|e }}</a></li> + {% endfor %} +</ul> +{% endif %} + + +{% if SOCIAL %} +<nav class="widget"> + <h4>Social</h4> + <ul> + {% for name, url in SOCIAL %} + <li><a href="{{ url|e }}">{{ name }}</a></li> + {% endfor %} + </ul> +</nav> +{% endif %} + +</div> diff --git a/gum/templates/tag.html b/gum/templates/tag.html new file mode 100644 index 0000000..dc697fe --- /dev/null +++ b/gum/templates/tag.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ tag|e }}{% endblock %} diff --git a/gum/templates/tags.html b/gum/templates/tags.html new file mode 100644 index 0000000..ec380b7 --- /dev/null +++ b/gum/templates/tags.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} +{% block content %} +<ul> +<li class="nav-header"><h4><i class="icon-tags icon-large"></i>Tags</h4></li> +{% for tag in tag_cloud %} +<li class="tag-{{ tag.1 }}"> + <a href="{{ SITEURL }}/{{ tag.0.url }}"> + <i class="icon-tag icon-large"></i>{{ tag.0|e }} + </a> +</li> +{% endfor %} +</ul> +{% endblock %} |