Commit 50ae18d8 authored by Georg Krause's avatar Georg Krause

Improve Page template and auto load changelog from Github

parent 036a3f36
Pipeline #140 passed with stage
in 19 seconds
......@@ -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
......
......@@ -80,4 +80,8 @@ a.pure-button-primary {
.footer {
z-index: 100;
}
.page-wrapper {
margin-top: 60px;
}
\ No newline at end of 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>
......
{% 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 %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment