diff --git a/pelicanconf.py b/pelicanconf.py index a962dc0..e20ba00 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -35,7 +35,8 @@ LINKS = (('Pelican', 'http://getpelican.com/'), SOCIAL = (('You can add links in your config file', '#'), ('Another social link', '#'),) -DEFAULT_PAGINATION = 5 +DEFAULT_PAGINATION = 20 +PAGINATED_TEMPLATES = {'index': None, 'tag': None, 'category': None, 'author': None} # Uncomment following line if you want document-relative URLs when developing #RELATIVE_URLS = True diff --git a/theme/templates/analytics.html b/theme/templates/analytics.html index ba174fc..61bc278 100644 --- a/theme/templates/analytics.html +++ b/theme/templates/analytics.html @@ -6,6 +6,7 @@ + pageTracker._trackPageview(); + } catch(err) {} + {% endif %} \ No newline at end of file diff --git a/theme/templates/archives.html b/theme/templates/archives.html index 9425abf..1e78c2f 100644 --- a/theme/templates/archives.html +++ b/theme/templates/archives.html @@ -1,13 +1,18 @@ {% extends "base.html" %} -{% block content %} -
-

Archives for {{ SITENAME }}

-
-{% for article in dates %} -
{{ article.locale_date }}
-
{{ article.title }}
-{% endfor %} -
-
+{% block content_title %} +
@rchives
{{ SITENAME }}
+{{ SITENAME }} +{% endblock %} + +{% block content %} +
+ {% for article in dates %} +
+ + {{ article.date.isoformat() }} - {{ article.title }} + +
+ {% endfor %} +
{% endblock %} diff --git a/theme/templates/base.html b/theme/templates/base.html index 37ca32f..52b99fc 100644 --- a/theme/templates/base.html +++ b/theme/templates/base.html @@ -17,6 +17,10 @@ text-decoration: none; } + a.archives:hover { + background-color: rgba(0, 0, 0, 0.1); + } + p { margin: 0; } diff --git a/theme/templates/category.html b/theme/templates/category.html index 1f8c0a0..0d01237 100644 --- a/theme/templates/category.html +++ b/theme/templates/category.html @@ -6,24 +6,26 @@ {% endblock %} {% block content %} -{% for article in articles %} +{% for article in articles_page.object_list %} -
- - {{ article.title }} - -
+
+ + {{ article.title }} + +
-
- {{ article.content }} -
+
+ {{ article.content }} +
- {% if not HIDE_DATE %} - - {% endif %} +{% if not HIDE_DATE %} + +{% endif %} {% endfor %} +{% include 'pagination.html' %} + {% endblock %} diff --git a/theme/templates/index.html b/theme/templates/index.html index a556a36..600277c 100644 --- a/theme/templates/index.html +++ b/theme/templates/index.html @@ -5,26 +5,22 @@ {% endblock %} {% block content %} - {% for category, articles in categories %} - {% if category.name == 'notes' %} - - {% for article in articles %} -
- - {{ article.title }} - -
-
- {{ article.content }} -
- {% if not HIDE_DATE %} - - {% endif %} - {% endfor %} - + {% for article in articles_page.object_list | selectattr('category', '==', 'notes') %} +
+ + {{ article.title }} + +
+
+ {{ article.content }} +
+ {% if not HIDE_DATE %} + {% endif %} {% endfor %} + {% include 'pagination.html' %} + {% endblock %} diff --git a/theme/templates/page.html b/theme/templates/page.html index c9d5ff6..b251bb5 100644 --- a/theme/templates/page.html +++ b/theme/templates/page.html @@ -1,11 +1,22 @@ {% extends "base.html" %} -{% block title %}{{ page.title }}{% endblock %} -{% block content %} + +{% block title %} +{{ page.title }} +{% endblock %} + +{% block content %}
-

{# {{ SITENAME }} #} {% if SITESUBTITLE %} {{ SITESUBTITLE }}{% endif %} {#:#} - {{ page.title }}

+

+ + {# {{ SITENAME }} #} {% if SITESUBTITLE %} {{ SITESUBTITLE }}{% endif %} + {#:#} + + {{ page.title }} + +

-
- {{ page.content }} + +
+ {{ page.content }}
{% endblock %} diff --git a/theme/templates/pagination.html b/theme/templates/pagination.html index 83c587a..eadf328 100644 --- a/theme/templates/pagination.html +++ b/theme/templates/pagination.html @@ -7,7 +7,7 @@ « {% endif %} {% endif %} - Page {{ articles_page.number }} / {{ articles_paginator.num_pages }} + {{ articles_page.number }} / {{ articles_paginator.num_pages }} {% if articles_page.has_next() %} » {% endif %} diff --git a/theme/templates/piwik.html b/theme/templates/piwik.html index ff459af..8f8f925 100644 --- a/theme/templates/piwik.html +++ b/theme/templates/piwik.html @@ -13,4 +13,4 @@ piwikTracker.enableLinkTracking(); } catch( err ) {} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/theme/templates/tags.html b/theme/templates/tags.html index a6011a0..d2b8895 100644 --- a/theme/templates/tags.html +++ b/theme/templates/tags.html @@ -6,4 +6,3 @@ {% endfor %} {% endblock %} - diff --git a/theme/templates/translations.html b/theme/templates/translations.html index 0079883..0d77a10 100644 --- a/theme/templates/translations.html +++ b/theme/templates/translations.html @@ -1,5 +1,5 @@ {% if article.translations %} -Translations: +Translations: {% for translation in article.translations %} {{ translation.lang }} {% endfor %} diff --git a/theme/templates/twitter.html b/theme/templates/twitter.html index c6b159f..94a9ba9 100644 --- a/theme/templates/twitter.html +++ b/theme/templates/twitter.html @@ -1,3 +1,3 @@ {% if TWITTER_USERNAME %} Tweet -{% endif %} \ No newline at end of file +{% endif %}