Website: Fix version of staticsite to v1.2

This commit is contained in:
Tobias Gruetzmacher 2019-12-26 18:36:27 +01:00
parent 44af7acdbc
commit 02c0da24fa
2 changed files with 6 additions and 6 deletions

2
.github/deploy.sh vendored
View file

@ -13,7 +13,7 @@ then
chmod 600 .github/deploy_key chmod 600 .github/deploy_key
ssh-add .github/deploy_key ssh-add .github/deploy_key
pip install git+https://github.com/spanezz/staticsite.git pip install git+https://github.com/spanezz/staticsite.git@v1.2
fi fi
git clone --depth=10 --branch=gh-pages "git@github.com:${TRAVIS_REPO_SLUG}.git" "$P/git" git clone --depth=10 --branch=gh-pages "git@github.com:${TRAVIS_REPO_SLUG}.git" "$P/git"

View file

@ -7,7 +7,7 @@
--> -->
<html> <html>
<head> <head>
<title>{% block title %}{{SITE_NAME}}{{ " - " + title if page.src_relpath != "README.md"}}{% endblock %}</title> <title>{% block title %}{{SITE_NAME}}{{ " - " + page.meta.title if page.src.relpath != "README.md"}}{% endblock %}</title>
{% block favicon %}<link rel="shortcut icon" href="{{ url_for('/images/favicon.ico') }}">{% endblock %} {% block favicon %}<link rel="shortcut icon" href="{{ url_for('/images/favicon.ico') }}">{% endblock %}
{% block head %} {% block head %}
{% endblock %} {% endblock %}
@ -24,7 +24,7 @@
<!-- Logo --> <!-- Logo -->
<div id="logo"> <div id="logo">
{% if page.src_relpath == "README.md" %} {% if page.src.relpath == "README.md" %}
<h1 id="title">{{SITE_NAME}}</h1> <h1 id="title">{{SITE_NAME}}</h1>
{% else %} {% else %}
<h1 id="title"><a href="{{SITE_ROOT}}">{{SITE_NAME}}</a></h1> <h1 id="title"><a href="{{SITE_ROOT}}">{{SITE_NAME}}</a></h1>
@ -60,11 +60,11 @@
<section class="one cover"> <section class="one cover">
<div class="container"> <div class="container">
<header> <header>
{% if page.src_relpath == "README.md" %} {% if page.src.relpath == "README.md" %}
<h2>{{SITE_NAME}}</h2> <h2>{{SITE_NAME}}</h2>
<h3>{{SITE_SUB}}</h3> <h3>{{SITE_SUB}}</h3>
{% else %} {% else %}
<h3>{{title}}</h3> <h3>{{page.meta.title}}</h3>
{% endif %} {% endif %}
</header> </header>
</div> </div>
@ -75,7 +75,7 @@
<section id="content" class="two dark"> <section id="content" class="two dark">
<div class="container"> <div class="container">
{% block content %} {% block content %}
{{content|safe}} {{page.content|safe}}
{% endblock %} {% endblock %}
</div> </div>
</section> </section>