diff options
Diffstat (limited to 'bricks/templates')
-rw-r--r-- | bricks/templates/analytics.html | 11 | ||||
-rw-r--r-- | bricks/templates/archives.html | 11 | ||||
-rw-r--r-- | bricks/templates/article.html | 45 | ||||
-rw-r--r-- | bricks/templates/author.html | 7 | ||||
-rw-r--r-- | bricks/templates/base.html | 115 | ||||
-rw-r--r-- | bricks/templates/categories.html | 18 | ||||
-rw-r--r-- | bricks/templates/category.html | 46 | ||||
-rw-r--r-- | bricks/templates/credits.html | 14 | ||||
-rw-r--r-- | bricks/templates/index.html | 66 | ||||
-rw-r--r-- | bricks/templates/page.html | 23 | ||||
-rw-r--r-- | bricks/templates/paginator.html | 11 | ||||
-rw-r--r-- | bricks/templates/period_archives.html | 16 | ||||
-rw-r--r-- | bricks/templates/piwik.html | 16 | ||||
-rw-r--r-- | bricks/templates/tag.html | 45 | ||||
-rw-r--r-- | bricks/templates/tags.html | 16 | ||||
-rw-r--r-- | bricks/templates/translations.html | 9 |
16 files changed, 469 insertions, 0 deletions
diff --git a/bricks/templates/analytics.html b/bricks/templates/analytics.html new file mode 100644 index 0000000..b96f455 --- /dev/null +++ b/bricks/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/bricks/templates/archives.html b/bricks/templates/archives.html new file mode 100644 index 0000000..050f268 --- /dev/null +++ b/bricks/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/bricks/templates/article.html b/bricks/templates/article.html new file mode 100644 index 0000000..85f4fcc --- /dev/null +++ b/bricks/templates/article.html @@ -0,0 +1,45 @@ +{% extends "base.html" %} +{% block title %}{{ article.title }} - {{SITENAME}}{% endblock title %} +{% block pageheader %} +<div class="hp-header-inner"> + <div class="page-header"> + <div class="content-header"> + <div id="title-block"> + <h1> <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" + title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h1> + </div> + </div> + </div> +</div> +{% endblock %} +{% block content %} +<div class="content-article"> + <header class="header-article"> + <div class="read-more">Posted on {{ article.locale_date}}</div> + + </header> + <section class='article'> + + <div class="entry-summary"> + {{ article.summary }} + </div> + + <div class="entry-content"> + {{ article.content }} + </div> + </section> + <footer class="footer-article"> + <div class="tags-and-categories">Filed under <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a> + | Tagged: {% if article.tags %}{% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }} </a>{% endfor %}{% endif %} + + | <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" + title="Permalink to {{ article.title|striptags }}">Permalink</a> + </div> + <!-- metaldata + {% for m in article.Metaldata %} + Rock on! {{ m }} + {% endfor %} + --> + </footer> +</div> +{% endblock %} diff --git a/bricks/templates/author.html b/bricks/templates/author.html new file mode 100644 index 0000000..fde712d --- /dev/null +++ b/bricks/templates/author.html @@ -0,0 +1,7 @@ +{% extends "index.html" %} +{% block title %} Articles by {{ author }} - {{ SITENAME }}{% endblock %} +{% block navclass %}{%endblock%} +{% block content_title %} +<h2>Articles by {{ author }}</h2> +{% endblock %} + diff --git a/bricks/templates/base.html b/bricks/templates/base.html new file mode 100644 index 0000000..fdd15cb --- /dev/null +++ b/bricks/templates/base.html @@ -0,0 +1,115 @@ +<!doctype html> +<html class="no-js" lang="en"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link rel="stylesheet" href="{{ SITEURL}}/theme/css/foundation.min.css" media="all"> + <script type="text/javascript" src="{{ SITEURL }}/theme/js/modernizr.js"></script> + <link href='https://fonts.googleapis.com/css?family=Exo+2:400,300,700,300italic,400italic,700italic,900,900italic' rel='stylesheet' type='text/css'> + <link rel="stylesheet" href="{{ SITEURL }}/theme/css/lamboz.css" media="all"> + {% 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> + <div class="pages"> + <ul> + <li class="home"><a href="{{ SITEURL }}/index.html">Home</a></li> + {% for p in pages %} + <li {% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li> + {% endfor %} + </ul> + </div> + {% block pageheader %} + <div class="hp-header"> + <div class="page-header"> + <div class="content-header"> + <div id="title-block"> + <h1><a href="{{ SITEURL }}/">{{ SITENAME }}</a></h1> + <p class="blurb">{{ SITESUBTITLE }}</p> + </div> + </div> + </div> + </div> + {% endblock %} + <div class="content"> + <div class="data-holder"> + <div class="row"> + <div class="large-10 content-column column"> + {% block content %} + {% endblock %} + </div> + <div class="large-2 aside column"> + <h3>Links</h3> + <ul> + {% for title,link in LINKS %} + <li><a href="{{ link }}">{{ title }}</a></li> + {% endfor %} + </ul> + </div> + </div> + </div> +</div> + <div class="footer"> + <div class="data-holder"> + {% block footer %} + <div class="row"> + <div class="large-3 column"> + {% include 'credits.html' %} + </div> + <div class="large-6 tag-cloud column"> + <h3>Tags</h3> + <ul> + {% for t,tx in tags %} + <li{% if t==tag %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ t.url }}">{{ t }}</a>({{ tx | length }})</li> + {% endfor %} + </ul> + </div> + <div class="large-3 category-column column"> + <h3>Categories</h3> + <ul> + {% for cat,l in categories %} + <li{% if cat==category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a> ({{ l | length }})</li> + {% endfor %} + </ul> + + </div> + </row> + {% endblock %} + </div> + <div class="row"> + <div class="small-12 column"> + <p style="font-size: 0.8em; text-align:center;"> + LEGO, the LEGO logo, the Minifigure, and the Brick and Knob configurations + are trademarks of the LEGO Group of Companies. ©2015. + </p> + </div> + </div> + </div> +</body> +</html> diff --git a/bricks/templates/categories.html b/bricks/templates/categories.html new file mode 100644 index 0000000..d5b0c83 --- /dev/null +++ b/bricks/templates/categories.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Categories {% endblock %} + + + +{% block content %} + <h1>Categories for {{ SITENAME }}</h1> + <ul class="tag-list"> + {%- for category, articles in categories|sort %} + <li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> ({{ articles|count }})</li> + {% endfor %} + </ul> +{% endblock %} + +{% block footer %} +{% include 'credits.html' %} +{% endblock %} diff --git a/bricks/templates/category.html b/bricks/templates/category.html new file mode 100644 index 0000000..e445eab --- /dev/null +++ b/bricks/templates/category.html @@ -0,0 +1,46 @@ +{% extends "base.html" %} +{% block pageheader %} +<div class="hp-header" style="height:33%;"> + <div class="page-header"> + <div class="content-header"> + <div id="title-block"> + <h1 style="font-size:3em; color:white;">Articles in the {{ category }} category </h1> + </div> + </div> + </div> +</div> +{% endblock %} + + +{% block content %} + +{% block content_title %} +{% endblock %} + + + +{% set cnt = 0 %} + + +<blocks cols="2"> +{% for article in articles_page.object_list %} + <div class="sec-article"> + <div class="read-more">{{ article.locale_date}}</div> + + <h3><a href="{{ SITEURL }}/{{ article.url }}" rel=Bookmark title="Permalink to {{ article.title | striptags }}">{{ article.title }}</a></h3> + <p> + {{ article.summary }} + </p> + </div> + +{% endfor %} +</blocks> +{% if articles_page.has_other_pages() %} +<div class="pagination-block"> + {% include 'pagination.html' %} +</div> +{% endif %} + +{% endblock content %} +<!-- END CONTENT --> + diff --git a/bricks/templates/credits.html b/bricks/templates/credits.html new file mode 100644 index 0000000..a739bac --- /dev/null +++ b/bricks/templates/credits.html @@ -0,0 +1,14 @@ +<div class="credits"> + <h3>Stuff and credits</h3> + <p> + Proudly powered by <a href="http://getpelican.com/">Pelican</a>, + which takes great advantage of <a href="http://python.org">Python</a>. + </p> + <p> + This site also makes use of <a href="http://foundation.zurb.com">Zurb Foundation Framework</a> + and is typeset using the blocky -- but quite good-looking indeed -- + <a href="https://www.google.com/fonts/specimen/Exo%202">Exo 2</a> fonts, + which comes in a lot of weight and styles. + </p> + <p>Enjoy!</a> +</div> diff --git a/bricks/templates/index.html b/bricks/templates/index.html new file mode 100644 index 0000000..e0c9b59 --- /dev/null +++ b/bricks/templates/index.html @@ -0,0 +1,66 @@ +{% extends "base.html" %} +{% block content %} + +{% block content_title %} +{% endblock %} + + +{% set cnt = 0 %} + +{% for article in articles_page.object_list %} + {% if cnt < 2 %} + {% if articles_page.has_previous() %} + <!-- pagine successive --> + {% if cnt == 0 %} + <ul class="medium-block-grid-2"> + {% endif %} + <li> + <div class="sec-article"> + <div class="read-more">{{ article.locale_date}}</div> + <h3><a href="{{ SITEURL }}/{{ article.url }}" rel=Bookmark title="Permalink to {{ article.title | striptags }}">{{ article.title }}</a></h3> + <p> + {{ article.summary }} + </p> + + </div> + </li> + + {% else %} + <!-- prima pagina --> + <div class="main-article"> + <div class="read-more">{{ article.locale_date}}</div> + + <h2><a href="{{ SITEURL }}/{{ article.url }}" rel=Bookmark title="Permalink to {{ article.title | striptags }}">{{ article.title }}</a></h2> + <p> + {{ article.summary }} + </p> + + + </div> + {% if cnt == 1 %} + <ul class="medium-block-grid-2"> + {% endif %} + {% endif %} + {% else %} + <li> + <div class="sec-article"> + <div class="read-more">{{ article.locale_date}}</div> + <h3><a href="{{ SITEURL }}/{{ article.url }}" rel=Bookmark title="Permalink to {{ article.title | striptags }}">{{ article.title }}</a></h3> + <p> + {{ article.summary }} + </p> + + </div> + </li> + {% endif %} + {% set cnt = cnt +1 %} +{% endfor %} +</ul> +{% if articles_page.has_other_pages() %} +<div class="pagination-block"> + {% include 'pagination.html' %} +</div> +{% endif %} + +{% endblock content %} +<!-- END CONTENT --> diff --git a/bricks/templates/page.html b/bricks/templates/page.html new file mode 100644 index 0000000..e106a5d --- /dev/null +++ b/bricks/templates/page.html @@ -0,0 +1,23 @@ +{% extends "base.html" %} +{% block title %}{{ page.title }}{%endblock%} + +{% block pageheader %} +<div class="hp-header-inner"> + <div class="page-header"> + <div class="content-header"> + <div id="title-block"> + <h1>{{ page.title }}</h1> + </div> + </div> + </div> +</div> +{% endblock %} + +{% block content %} + <section class="article"> + {% import 'translations.html' as translations with context %} + {{ translations.translations_for(page) }} + + {{ page.content }} + </section> +{% endblock %} diff --git a/bricks/templates/paginator.html b/bricks/templates/paginator.html new file mode 100644 index 0000000..4219a5c --- /dev/null +++ b/bricks/templates/paginator.html @@ -0,0 +1,11 @@ +{% if DEFAULT_PAGINATION %} +<p class="paginator"> + {% if articles_page.has_previous() %} + <a href="{{ SITEURL }}/{{ articles_previous_page.url }}">«</a> + {% endif %} + Page {{ articles_page.number }} / {{ articles_paginator.num_pages }} + {% if articles_page.has_next() %} + <a href="{{ SITEURL }}/{{ articles_next_page.url }}">»</a> + {% endif %} +</p> +{% endif %} diff --git a/bricks/templates/period_archives.html b/bricks/templates/period_archives.html new file mode 100644 index 0000000..b7d8f70 --- /dev/null +++ b/bricks/templates/period_archives.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} +{% block archclass %} class="active"{%endblock%} + +{% block content %} + +<dl> + {% for year, date_year in dates|groupby( 'date.year' )|sort(reverse=True) %} + <h3><a href="{{SITEURL}}/{{year}}" class="text">Archive for {{ year }}</a></h3> + <ul class="archive-list"> + {% for article in date_year %} + <li><span class="text-muted">{{article.locale_date}} » </span><a href="{{ SITEURL }}/{{ article.url }}">{{article.title}}</a></li> + {% endfor %} + </ul> + {% endfor %} +</dl> +{% endblock %} diff --git a/bricks/templates/piwik.html b/bricks/templates/piwik.html new file mode 100644 index 0000000..bf6baaa --- /dev/null +++ b/bricks/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 %} diff --git a/bricks/templates/tag.html b/bricks/templates/tag.html new file mode 100644 index 0000000..250cbd0 --- /dev/null +++ b/bricks/templates/tag.html @@ -0,0 +1,45 @@ +{% extends "base.html" %} +{% block pageheader %} +<div class="hp-header-inner"> + <div class="page-header"> + <div class="content-header"> + <div id="title-block"> + <h1>Articles tagged with {{ tag }} </h1> + </div> + </div> + </div> +</div> +{% endblock %} + + +{% block content %} + +{% block content_title %} +{% endblock %} + + +{% set cnt = 0 %} + + +<blocks cols="2"> +{% for article in articles_page.object_list %} + <div class="sec-article"> + <div class="read-more">{{ article.locale_date}}</div> + + <h3><a href="{{ SITEURL }}/{{ article.url }}" rel=Bookmark title="Permalink to {{ article.title | striptags }}">{{ article.title }}</a></h3> + <p> + {{ article.summary }} + </p> + </div> + +{% endfor %} +</blocks> +{% if articles_page.has_other_pages() %} +<div class="pagination-block"> + {% include 'pagination.html' %} +</div> +{% endif %} + +{% endblock content %} +<!-- END CONTENT --> + diff --git a/bricks/templates/tags.html b/bricks/templates/tags.html new file mode 100644 index 0000000..b8238bc --- /dev/null +++ b/bricks/templates/tags.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Tags{% endblock %} + +{% block content %} + <h1>Tags for {{ SITENAME }}</h1> + <ul class="tag-list"> + {%- for tag, articles in tags|sort %} + <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li> + {% endfor %} + </ul> +{% endblock %} + +{% block footer %} +{% include 'credits.html' %} +{% endblock %} diff --git a/bricks/templates/translations.html b/bricks/templates/translations.html new file mode 100644 index 0000000..db8c372 --- /dev/null +++ b/bricks/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 %} + |