From 5f3f2e0cb27f8bdcaaf34e51bff8e93a5fe76f1d Mon Sep 17 00:00:00 2001 From: sipp11 Date: Mon, 2 Feb 2015 06:32:09 +0700 Subject: [PATCH] change UI --- pelicanconf.py | 8 ++++++++ themes/notmyideaever/templates/archives.html | 1 + themes/notmyideaever/templates/base.html | 13 +++++++++++-- themes/notmyideaever/templates/index.html | 2 ++ 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/pelicanconf.py b/pelicanconf.py index dae9ebc..85b6f71 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -34,7 +34,13 @@ CATEGORY_SAVE_AS = 'category/{slug}/index.html' TAG_URL = 'tag/{slug}/' TAG_SAVE_AS = 'tag/{slug}/index.html' +YEAR_ARCHIVE_URL = 'posts/{date:%Y}/' +YEAR_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/index.html' +MONTH_ARCHIVE_URL = 'posts/{date:%Y}/{date:%m}/' +MONTH_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/{date:%m}/index.html' + DISPLAY_PAGES_ON_MENU = True +DISPLAY_CATEGORIES_ON_MENU = False TYPOGRIFY = True @@ -58,6 +64,8 @@ DEFAULT_PAGINATION = 10 RELATIVE_URLS = True THEME = 'themes/notmyideaever' # THEME = 'themes/chameleon' +# +GZIP_CACHE = True import sys sys.path.append('.') diff --git a/themes/notmyideaever/templates/archives.html b/themes/notmyideaever/templates/archives.html index f678494..1a597e4 100644 --- a/themes/notmyideaever/templates/archives.html +++ b/themes/notmyideaever/templates/archives.html @@ -1,4 +1,5 @@ {% extends "base.html" %} + {% block content %}

Archives for {{ SITENAME }}

diff --git a/themes/notmyideaever/templates/base.html b/themes/notmyideaever/templates/base.html index 14df94c..76a14bc 100644 --- a/themes/notmyideaever/templates/base.html +++ b/themes/notmyideaever/templates/base.html @@ -70,10 +70,19 @@ {% include 'analytics.html' %} diff --git a/themes/notmyideaever/templates/index.html b/themes/notmyideaever/templates/index.html index c898247..d97d49c 100644 --- a/themes/notmyideaever/templates/index.html +++ b/themes/notmyideaever/templates/index.html @@ -54,11 +54,13 @@ {% endif %} {% endfor %} {% else %} +

Pages

{% for page in PAGES %}
  • {{ page.title }}
  • {% endfor %}
    + {% endif %} {% endblock content %}