diff --git a/content/posts/0001-new-website.markdown b/content/posts/0001-new-website.markdown index b3857fc6f24edc388ba3e7e9feb0c136d72ff713..331010b0dc3f2517a1fd03273ede56d17ffe60e4 100644 --- a/content/posts/0001-new-website.markdown +++ b/content/posts/0001-new-website.markdown @@ -1,5 +1,4 @@ title: Neue Website in Arbeit -slug: neue-website-in-arbeit category: private date: 2017-12-25 modified: 2017-12-25 diff --git a/pelicanconf.py b/pelicanconf.py index d9a49e57d10d7472636e1c01ab124a722237675a..50d5a1979e934d68f7721d6c112722c51a22c4c8 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -7,6 +7,7 @@ SITENAME = u'Dominik George' SITEURL = '' PATH = 'content' +STATIC_PATHS = ['static'] TIMEZONE = 'Europe/Berlin' @@ -31,6 +32,7 @@ SOCIAL = (('XMPP / Jabber', 'xmpp:nik@mercurius.teckids.org'), ('Twitter', 'https://www.twitter.com/Natureshadow'),) DEFAULT_PAGINATION = 10 +SLUGIFY_SOURCE = 'title' # Uncomment following line if you want document-relative URLs when developing #RELATIVE_URLS = True diff --git a/theme/templates/article.html b/theme/templates/article.html new file mode 100644 index 0000000000000000000000000000000000000000..be99b65b6f7c2a5ef39118e517641dce8a0cfce2 --- /dev/null +++ b/theme/templates/article.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} + +{% block title %}{{ article.title }}{% endblock %} + +{% block content %} + <h2>{{ article.title }}</h2> + <label>Veröffentlicht am <strong>{{ article.date }}</strong></label> + {{ article.content }} +{% endblock %} diff --git a/theme/templates/base.html b/theme/templates/base.html new file mode 100644 index 0000000000000000000000000000000000000000..dd9e91ff4b0463fc7bf6ffde8d3ca2d670568675 --- /dev/null +++ b/theme/templates/base.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html lang="de"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title>{% block title %}{% endblock %}</title> +</head> +<body> + <div class="container"> + <div id="header"> + <h1 id="pagetitle">Dominik George</h1> + <p id="subtitle">Free Software Fellow, Education Enthusiast, sozialliberal</p> + </div> + <div id="menu"> + </div> + <div id="page"> + {% block content %}{% endblock %} + </div> + <div id="footer"> + </div> + </div> +</body> +</html> diff --git a/theme/templates/blog.html b/theme/templates/blog.html new file mode 100644 index 0000000000000000000000000000000000000000..983764f1d393bd0a46cef3e3a123e99072d16065 --- /dev/null +++ b/theme/templates/blog.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }}{% endblock %} + +{% block content %} +<h2>Blog</h2> +{% for article in articles %} + <h3><a href="/{{ article.slug }}.html">{{ article.title }}</a></h3> + <label>Veröffentlicht am <strong>{{ article.date }}</strong></label> + {{ article.content|truncate(110) }} +{% else %} + No posts yet! +{% endfor %} +{% endblock %}