Browse Source

change UI

master
sipp11 10 years ago
parent
commit
5f3f2e0cb2
  1. 8
      pelicanconf.py
  2. 1
      themes/notmyideaever/templates/archives.html
  3. 13
      themes/notmyideaever/templates/base.html
  4. 2
      themes/notmyideaever/templates/index.html

8
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('.')

1
themes/notmyideaever/templates/archives.html

@ -1,4 +1,5 @@
{% extends "base.html" %}
{% block content %}
<section id="content" class="body">
<h1>Archives for {{ SITENAME }}</h1>

13
themes/notmyideaever/templates/base.html

@ -70,10 +70,19 @@
<footer id="contentinfo" class="body">
<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>.
<ul>
<li><strong>Category</strong>
{% for cat, null in categories %}
<a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a>
{% endfor %}
<li><strong>Tags</strong>
{% for tag in tag_cloud %}
<a href="{{ SITEURL }}/{{ tag.0.url }}">{{ tag.0 }}</a>
{% endfor %}</li>
</ul>
</address><!-- /#about -->
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
<p>Without <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, <a href="http://getpelican.com/">Pelican</a> and <a href="http://python.org">Python</a>, this isn't possible. Thanks :)</p>
</footer><!-- /#contentinfo -->
{% include 'analytics.html' %}

2
themes/notmyideaever/templates/index.html

@ -54,11 +54,13 @@
{% endif %}
{% endfor %}
{% else %}
<section id="content" class="body">
<h2>Pages</h2>
{% for page in PAGES %}
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
{% endfor %}
</section>
{% endif %}
{% endblock content %}

Loading…
Cancel
Save