Add new TuxLite_ZF theme.
This commit is contained in:
12
tuxlite_zf/templates/analytics.html
Normal file
12
tuxlite_zf/templates/analytics.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% 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 %}
|
||||
17
tuxlite_zf/templates/archives.html
Normal file
17
tuxlite_zf/templates/archives.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
|
||||
<h1>Archives</h1>
|
||||
|
||||
<table class="table-archive">
|
||||
<tbody>
|
||||
{% for article in dates %}
|
||||
<tr>
|
||||
<td>{{ article.locale_date }}</td>
|
||||
<td><a href='{{ article.url }}'>{{ article.title }}</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{% endblock %}
|
||||
20
tuxlite_zf/templates/article.html
Normal file
20
tuxlite_zf/templates/article.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}{{ article.title|striptags }}{% endblock %}
|
||||
{% block content %}
|
||||
<article>
|
||||
<header>
|
||||
<h3 class="article-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
|
||||
title="Permalink to {{ article.title|striptags }}">{{ article.title}}</a></h3>
|
||||
{% include 'twitter.html' %}
|
||||
</header>
|
||||
|
||||
{% include 'article_infos.html' %}
|
||||
{{ article.content }}
|
||||
{% include 'article_infos_bottom.html' %}
|
||||
|
||||
{% if DISQUS_SITENAME and SITEURL and article.status != "draft" %}
|
||||
<h4>Comments</h4>
|
||||
{% include 'disqus_script.html' %}
|
||||
{% endif %}
|
||||
</article>
|
||||
{% endblock %}
|
||||
9
tuxlite_zf/templates/article_infos.html
Normal file
9
tuxlite_zf/templates/article_infos.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<h6 class="subheader" title="{{ article.date.isoformat() }}">{{ article.locale_date }}
|
||||
{# {% if article.author %}
|
||||
By <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
|
||||
{% endif %} #}
|
||||
</h6>
|
||||
|
||||
{% import 'translations.html' as translations with context %}
|
||||
{{ translations.translations_for(article) }}
|
||||
|
||||
15
tuxlite_zf/templates/article_infos_bottom.html
Normal file
15
tuxlite_zf/templates/article_infos_bottom.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<p class="subheader">Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
||||
|
||||
{% if article.tags %}
|
||||
Tagged:
|
||||
{% for tag in article.tags %}
|
||||
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }} </a>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
{% if PDF_PROCESSOR %}<p><a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">PDF</a></p>{% endif %}
|
||||
|
||||
{% import 'translations.html' as translations with context %}
|
||||
{{ translations.translations_for(article) }}
|
||||
|
||||
2
tuxlite_zf/templates/author.html
Normal file
2
tuxlite_zf/templates/author.html
Normal file
@@ -0,0 +1,2 @@
|
||||
{% extends "index.html" %}
|
||||
{% block title %}{{ SITENAME }} - {{ author }}{% endblock %}
|
||||
0
tuxlite_zf/templates/authors.html
Normal file
0
tuxlite_zf/templates/authors.html
Normal file
113
tuxlite_zf/templates/base.html
Normal file
113
tuxlite_zf/templates/base.html
Normal file
@@ -0,0 +1,113 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<!-- Set the viewport width to device width for mobile -->
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
|
||||
<title>{% block title %}{{ SITENAME }}{%endblock%}</title>
|
||||
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/normalize.css">
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/foundation.min.css">
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/style.css">
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/pygments.css">
|
||||
<script src="{{ SITEURL }}/theme/js/custom.modernizr.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<!-- Nav Bar -->
|
||||
<nav>
|
||||
<div class="top-bar">
|
||||
<div class="row">
|
||||
<div class="large-9 large-centered columns">
|
||||
<h1><a href="{{ SITEURL }}">{{ SITENAME }}</a></h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Show menu items and pages -->
|
||||
<div class="row">
|
||||
<div class="large-9 columns">
|
||||
<ul class="button-group navigation">
|
||||
{% for title, link in MENUITEMS %}
|
||||
<li><a href="{{ link }}" class="button small">{{ title }}</a></li>
|
||||
{% endfor %}
|
||||
|
||||
{% if DISPLAY_PAGES_ON_MENU %}
|
||||
{% for page in PAGES %}
|
||||
<li><a href="{{ SITEURL }}/{{ page.url }}" class="button small">{{ page.title }}</a></li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<!-- End Nav -->
|
||||
|
||||
|
||||
<!-- Main Page Content and Sidebar -->
|
||||
<div class="row">
|
||||
|
||||
<!-- Main Blog Content -->
|
||||
<div class="large-9 columns">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
<!-- End Main Content -->
|
||||
|
||||
<!-- Sidebar -->
|
||||
<aside class="large-3 columns">
|
||||
<h5 class="sidebar-title">Site</h5>
|
||||
<ul class="side-nav">
|
||||
<li><a href="{{ SITEURL }}/archives.html">Archives</a>
|
||||
<li><a href="{{ SITEURL }}/tags.html">Tags</a>
|
||||
{% if FEED_RSS %}
|
||||
<li><a href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" rel="alternate">Atom feed</a></li>
|
||||
{% endif %}
|
||||
{% if FEED_RSS %}
|
||||
<li><a href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" rel="alternate">RSS feed</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
||||
{% if categories %}
|
||||
<h5 class="sidebar-title">Categories</h5>
|
||||
<ul class="side-nav">
|
||||
{% for cat, null in categories %}
|
||||
<li><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
{% if LINKS %}
|
||||
<h5 class="sidebar-title">Links</h5>
|
||||
<ul class="side-nav">
|
||||
{% for name, link in LINKS %}
|
||||
<li><a href="{{ link }}">{{ name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
{% if SOCIAL %}
|
||||
<h5 class="sidebar-title">Social</h5>
|
||||
<ul class="side-nav">
|
||||
{% for name, link in SOCIAL %}
|
||||
<li><a href="{{ link }}">{{ name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
</aside> <!-- End Sidebar -->
|
||||
|
||||
</div> <!-- End Main Content and Sidebar -->
|
||||
|
||||
|
||||
<!-- Footer -->
|
||||
<footer class="row">
|
||||
<div class="large-12 columns">
|
||||
<hr />
|
||||
<div class="row">
|
||||
<div class="large-6 columns">
|
||||
<p>{{ SITENAME }} by {{ AUTHOR }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
8
tuxlite_zf/templates/categories.html
Normal file
8
tuxlite_zf/templates/categories.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<ul class="circle">
|
||||
{% for category, articles in categories %}
|
||||
<li><a href="{{ category.url }}">{{ category }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
2
tuxlite_zf/templates/category.html
Normal file
2
tuxlite_zf/templates/category.html
Normal file
@@ -0,0 +1,2 @@
|
||||
{% extends "index.html" %}
|
||||
{% block title %}{{ SITENAME }} - {{ category }}{% endblock %}
|
||||
1
tuxlite_zf/templates/comments.html
Normal file
1
tuxlite_zf/templates/comments.html
Normal file
@@ -0,0 +1 @@
|
||||
{% if DISQUS_SITENAME %}<p><a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">comments</a></p>{% endif %}
|
||||
15
tuxlite_zf/templates/disqus_script.html
Normal file
15
tuxlite_zf/templates/disqus_script.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% if DISQUS_SITENAME %}
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = '{{ DISQUS_SITENAME }}'
|
||||
var disqus_identifier = "{{ article.url }}";
|
||||
var disqus_url = "{{ SITEURL }}/{{ article.url }}";
|
||||
|
||||
(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="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||||
{% endif %}
|
||||
9
tuxlite_zf/templates/github.html
Normal file
9
tuxlite_zf/templates/github.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{% if GITHUB_URL %}
|
||||
<a href="{{ GITHUB_URL }}">
|
||||
{% if GITHUB_POSITION != "left" %}
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
{% else %}
|
||||
<img style="position: absolute; top: 0; left: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_left_white_ffffff.png" alt="Fork me on GitHub" />
|
||||
{% endif %}
|
||||
</a>
|
||||
{% endif %}
|
||||
49
tuxlite_zf/templates/index.html
Normal file
49
tuxlite_zf/templates/index.html
Normal file
@@ -0,0 +1,49 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content_title %}{% endblock %}
|
||||
{% block content %}
|
||||
{% if articles %}
|
||||
{% for article in articles_page.object_list %}
|
||||
|
||||
{# First item #}
|
||||
{% if loop.first and not articles_page.has_previous() %}
|
||||
<article>
|
||||
<h3 class="article-title"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h3>
|
||||
{% include 'article_infos.html' %}{{ article.content }}{% include 'article_infos_bottom.html' %}{% include 'comments.html' %}
|
||||
</article>
|
||||
|
||||
{% if loop.length == 1 %}
|
||||
{% include 'pagination.html' %}
|
||||
{% endif %}
|
||||
|
||||
{% if loop.length > 1 %}
|
||||
<hr class="gradient"/>
|
||||
{% endif %}
|
||||
|
||||
{# other items #}
|
||||
{% else %}
|
||||
|
||||
<article>
|
||||
<a href="{{ SITEURL }}/{{ article.url }}"><h3 class="article-title">{{ article.title }}</h3></a>
|
||||
{% include 'article_infos.html' %}{{ article.summary }}{% include 'article_infos_bottom.html' %}{% include 'comments.html' %}
|
||||
<a class="button radius secondary small right" href="{{ SITEURL }}/{{ article.url }}">Read More</a>
|
||||
<hr class="gradient"/>
|
||||
</article>
|
||||
{% endif %}
|
||||
|
||||
{% if loop.last %}
|
||||
<!-- /#posts-list -->
|
||||
{% if loop.last and (articles_page.has_previous() or not articles_page.has_previous() and loop.length > 1) %}
|
||||
{% include 'pagination.html' %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% else %}
|
||||
|
||||
<h3>Pages</h3>
|
||||
{% for page in PAGES %}
|
||||
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
|
||||
{% endfor %}
|
||||
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
9
tuxlite_zf/templates/page.html
Normal file
9
tuxlite_zf/templates/page.html
Normal file
@@ -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) }}
|
||||
{% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">PDF</a>{% endif %}
|
||||
{{ page.content }}
|
||||
{% endblock %}
|
||||
19
tuxlite_zf/templates/pagination.html
Normal file
19
tuxlite_zf/templates/pagination.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{% if DEFAULT_PAGINATION %}
|
||||
<div class="pagination-centered">
|
||||
<h6 class="subheader">Page {{ articles_page.number }} of {{ articles_paginator.num_pages }}</h6>
|
||||
|
||||
<p>
|
||||
{% if articles_page.has_previous() %}
|
||||
{% if articles_page.previous_page_number() == 1 %}
|
||||
<a href="{{ SITEURL }}/{{ page_name }}.html">« Prev</a>
|
||||
{% else %}
|
||||
<a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html">« Prev</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if articles_page.has_next() %}
|
||||
<a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">Next »</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
16
tuxlite_zf/templates/piwik.html
Normal file
16
tuxlite_zf/templates/piwik.html
Normal file
@@ -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 %}
|
||||
2
tuxlite_zf/templates/tag.html
Normal file
2
tuxlite_zf/templates/tag.html
Normal file
@@ -0,0 +1,2 @@
|
||||
{% extends "index.html" %}
|
||||
{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %}
|
||||
15
tuxlite_zf/templates/tags.html
Normal file
15
tuxlite_zf/templates/tags.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
|
||||
<ul class="circle">
|
||||
{% for tag, articles in tags|sort %}
|
||||
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
|
||||
<ul class="square">
|
||||
{% for article in articles|sort %}
|
||||
<li><a href="{{ SITEURL }}/{{ article.url }}"><small>{{ article.title }}</small></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% endblock %}
|
||||
8
tuxlite_zf/templates/translations.html
Normal file
8
tuxlite_zf/templates/translations.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{% macro translations_for(article) %}
|
||||
{% if article.translations %}
|
||||
Translations:
|
||||
{% for translation in article.translations %}
|
||||
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
3
tuxlite_zf/templates/twitter.html
Normal file
3
tuxlite_zf/templates/twitter.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{% if TWITTER_USERNAME %}
|
||||
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="{{TWITTER_USERNAME}}">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user