-
-
Save Flobin/f3d8bf587d5cee597396 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="{{ DEFAULT_LANG }}"> | |
<head> | |
{% 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 %} | |
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/style.css" /> | |
{% endblock head %} | |
</head> | |
<body id="index" class="home"> | |
<header id="banner" class="body"> | |
<h1><a href="{{ SITEURL }}/">{{ SITENAME }} <strong>{{ SITESUBTITLE }}</strong></a></h1> | |
</header><!-- /#banner --> | |
<nav id="menu"><ul> | |
{% for title, link in MENUITEMS %} | |
<li><a href="{{ link }}">{{ title }}</a></li> | |
{% endfor %} | |
{% if DISPLAY_PAGES_ON_MENU %} | |
{% for p in pages %} | |
<li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li> | |
{% endfor %} | |
{% else %} | |
{% if DISPLAY_CATEGORIES_ON_MENU %} | |
{% for cat, null in categories %} | |
<li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li> | |
{% endfor %} | |
{% endif %} | |
{% endif %} | |
</ul></nav><!-- /#menu --> | |
{% block content %} | |
{% endblock %} | |
<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>. | |
</address><!-- /#about --> | |
</footer><!-- /#contentinfo --> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "base.html" %} | |
{% block content %} | |
<section id="content"> | |
{% block content_title %} | |
<h2>All articles</h2> | |
{% endblock %} | |
<ol id="post-list"> | |
{% for article in articles_page.object_list %} | |
<li><article class="hentry"> | |
<header> <h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> </header> | |
<footer class="post-info"> | |
<time class="published" datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time> | |
<address class="vcard author">By | |
{% for author in article.authors %} | |
<a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> | |
{% endfor %} | |
</address> | |
</footer><!-- /.post-info --> | |
<div class="entry-content"> {{ article.summary }} </div><!-- /.entry-content --> | |
</article></li> | |
{% endfor %} | |
</ol><!-- /#posts-list --> | |
{% if articles_page.has_other_pages() %} | |
{% include 'pagination.html' %} | |
{% endif %} | |
</section><!-- /#content --> | |
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="nl"> | |
<head> | |
<title>Robin Berghuijs Design</title> | |
<meta charset="utf-8" /> | |
<link rel="stylesheet" type="text/css" href="./theme/css/style.css" /> | |
</head> | |
<body id="index" class="home"> | |
<header id="banner" class="body"> | |
<h1><a href="./">Robin Berghuijs Design <strong></strong></a></h1> | |
</header><!-- /#banner --> | |
<nav id="menu"><ul> | |
<li><a href="./pages/contact.html">Contact</a></li> | |
</ul></nav><!-- /#menu --> | |
<h1>Robin Berghuijs Design</h1> | |
Translations: | |
<a href="./../en/">en</a> | |
<p>De Nederlandse hoofdpagina</p> | |
<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>. | |
</address><!-- /#about --> | |
</footer><!-- /#contentinfo --> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- # | |
from __future__ import unicode_literals | |
AUTHOR = 'Robin Berghuijs' | |
SITENAME = 'Robin Berghuijs Design' | |
SITEURL = 'http://robin.berghuijs.design/' | |
PATH = 'content' | |
TIMEZONE = 'Europe/Amsterdam' | |
DEFAULT_LANG = 'nl' | |
# Feed generation is usually not desired when developing | |
FEED_ALL_ATOM = None | |
CATEGORY_FEED_ATOM = None | |
TRANSLATION_FEED_ATOM = None | |
AUTHOR_FEED_ATOM = None | |
AUTHOR_FEED_RSS = None | |
# Blogroll | |
LINKS = (('Pelican', 'http://getpelican.com/'), | |
('Python.org', 'http://python.org/'), | |
('Jinja2', 'http://jinja.pocoo.org/'), | |
('You can modify those links in your config file', '#'),) | |
# Social widget | |
SOCIAL = (('You can add links in your config file', '#'), | |
('Another social link', '#'),) | |
DEFAULT_PAGINATION = 10 | |
# Uncomment following line if you want document-relative URLs when developing | |
RELATIVE_URLS = True | |
PLUGIN_PATHS = ['pelican-plugins'] | |
PLUGINS = ['i18n_subsites','neighbors','sitemap'] | |
# these are the defaults | |
SITEMAP = { | |
'format': 'xml', | |
# 'priorities': { | |
# 'articles': 0.5, | |
# 'indexes': 0.5, | |
# 'pages': 0.5 | |
# }, | |
# 'changefreqs': { | |
# 'articles': 'monthly', | |
# 'indexes': 'daily', | |
# 'pages': 'monthly' | |
# } | |
} | |
I18N_SUBSITES = { | |
'nl': { | |
'SITENAME': 'Robin Berghuijs Design', | |
'INDEX_SAVE_AS': 'nieuws.html', | |
'MENUITEMS': [ | |
('Nieuws','nieuws.html'), | |
], | |
}, | |
'en': { | |
'SITENAME': 'Robin Berghuijs Design', | |
'INDEX_SAVE_AS': 'news.html', | |
'MENUITEMS': [ | |
('News','news.html'), | |
], | |
} | |
} | |
THEME = "themes/flobin" | |
CSS_FILE = 'style.css' | |
# static index page | |
# menu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment