Improve Page template and auto load changelog from Github

main
Georg Krause 2019-05-16 12:59:05 +02:00
parent 036a3f36f3
commit 50ae18d8be
4 changed files with 26 additions and 10 deletions

View File

@ -74,6 +74,8 @@ else
endif
publish:
wget --no-cache -O content/pages/Changelog.md https://raw.githubusercontent.com/openAVproductions/openAV-Luppp/MarkdownChangelog/CHANGELOG.md
sed -i '1i Title: Changelog' content/pages/Changelog.md
$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS)
ssh_upload: publish

View File

@ -80,4 +80,8 @@ a.pure-button-primary {
.footer {
z-index: 100;
}
.page-wrapper {
margin-top: 60px;
}

View File

@ -37,9 +37,18 @@
<a class="pure-menu-heading" href="/">{{ SITENAME }}</a>
<ul class="pure-menu-list">
{% for title, link in LINKS %}
<li class="pure-menu-item"><a href="{{ link }}" class="pure-menu-link">{{ title }}</a></li>
{% endfor %}
{% if pages|length > 0 %}
{% for p in pages %}
{% if p.url %}
<li class="pure-menu-item"><a href="/{{ p.url }}" class="pure-menu-link">{{ p.title }}</a></li>
{% endif %}
{% endfor %}
{% endif %}
{% if LINKS|length > 0 %}
{% for title, link in LINKS %}
<li class="pure-menu-item"><a href="/{{ link }}" class="pure-menu-link">{{ title }}</a></li>
{% endfor %}
{% endif %}
</ul>
</div>
</div>

View File

@ -1,14 +1,15 @@
{% extends "base.html" %}
{% block content %}
<div class="content">
<h2 id="GetLuppp" class="content-head is-center">{{ page.title }}</h2>
<div class="page-wrapper">
<div class="content">
<h2 id="GetLuppp" class="content-head is-center">{{ page.title }}</h2>
<div class="pure-g">
<div class="l-box-lrg pure-u-md-1-5"></div>
<div class="l-box-lrg pure-u-1 pure-u-md-3-5">
{{ page.content }}
<div class="pure-g">
<div class="l-box-lrg pure-u-md-1-5"></div>
<div class="l-box-lrg pure-u-1 pure-u-md-3-5">
{{ page.content }}
</div>
</div>
</div>
</div>
{% endblock %}