Skip to content
Snippets Groups Projects
Commit 65b91bf1 authored by Nikos Roussos's avatar Nikos Roussos
Browse files

Add footer and license config option

parent c65aa784
No related branches found
No related tags found
No related merge requests found
sitename: blog title here
author: your name here
rooturl: https://example.com/
license: Creative Commons Attribution-ShareAlike
Loading
Loading
@@ -41,7 +41,8 @@ def generate_pages():
template = env.get_template(page)
html = template.render({'page': page,
'author': cfg['author'],
'sitename': cfg['sitename']})
'sitename': cfg['sitename'],
'license': cfg['license']})
with open(page, 'w') as file:
file.write(html)
 
Loading
Loading
@@ -102,6 +103,7 @@ def generate_posts():
tags=tags,
author=cfg['author'],
sitename=cfg['sitename'],
license=cfg['license'],
content=content,
link=link
)
Loading
Loading
@@ -130,6 +132,7 @@ def generate_archive(posts, tag_set):
tpl = env.get_template('blog.html')
html = tpl.render(dict(
sitename=cfg['sitename'],
license=cfg['license'],
title='blog',
posts=posts
))
Loading
Loading
@@ -166,7 +169,8 @@ def generate_feeds(posts, tag_set):
items=posts,
sitename=cfg['sitename'],
author=cfg['author'],
rooturl=cfg['rooturl']
rooturl=cfg['rooturl'],
license=cfg['license']
)
with open('feed.xml', 'w') as file:
file.write(xml)
Loading
Loading
Loading
Loading
@@ -53,6 +53,11 @@
/* Generic
==================== */
 
html,
body {
height: 100%;
}
body {
font-size: 16px;
line-height: 1.4;
Loading
Loading
@@ -62,6 +67,7 @@ body {
 
.container {
margin-top: 20px;
margin-bottom: 20px;
max-width: 800px;
}
 
Loading
Loading
@@ -76,8 +82,21 @@ post > p > img {
max-width: 90%;
}
 
.wrapper {
margin-bottom: 20px;
#wrapper {
height: auto;
min-height: 100%;
margin-bottom: -60px;
padding-bottom: 80px;
margin-top: -20px;
}
#footer {
font-size: 0.8em;
background: #E6E6E6 none repeat scroll 0% 0%;
border-top: 1px solid #DDD;
height: 60px;
text-align: center;
}
 
a:hover,
Loading
Loading
@@ -95,6 +114,7 @@ a.text-muted {
margin: auto;
max-width: 180px;
margin-bottom: 15px;
margin-top: 20px;
}
 
.lead {
Loading
Loading
Loading
Loading
@@ -7,16 +7,13 @@
<link rel="stylesheet" href="/static/css/lib/bootstrap.min.css">
<link rel="stylesheet" href="/static/css/lib/bootstrap-theme.min.css">
<link rel="stylesheet" href="/static/css/app.css">
<link href="/feed.xml" rel="alternate" type="application/rss+xml" title="{{ sitename }}" />
{% block css %}
{% endblock %}
<link href="/feed.xml" rel="alternate" type="application/rss+xml" title="{{ sitename }}">
{% block css %}{% endblock %}
<link rel="shortcut icon" href="/favicon.ico">
</head>
 
<body>
<div class="wrapper">
<div id="wrapper">
 
<div class="container">
<div class="row">
Loading
Loading
@@ -39,6 +36,13 @@
 
</div>
 
<div id="footer">
<div class="container">
powered by <a href="https://github.com/comzeradd/monopati" target="_blank">monopati</a> &bull;
{{ license }}
</div>
</div>
<script src="/static/js/lib/jquery-1.11.2.min.js"></script>
<script src="/static/js/lib/bootstrap.min.js"></script>
{% block javascript %}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment