Browse Source

Add Github banner. Allow overriding name of index.html page. Change some German text to English.

master
Omwah 9 years ago
parent
commit
d4fcf89703
  1. 15
      static/bootstrap.css
  2. 4
      templates/archives.html
  3. 6
      templates/base.html
  4. 6
      templates/index.html

15
static/bootstrap.css

@ -3978,3 +3978,18 @@ a.thumbnail:hover {
.collapse.in {
height: auto;
}
#forkme_banner {
display: block;
position: absolute;
top:0;
right: 10px;
z-index: 10;
padding: 10px 50px 10px 10px;
color: #fff;
background: url('/theme/images/blacktocat.png') #0090ff no-repeat 95% 50%;
font-weight: 700;
box-shadow: 0 0 10px rgba(0,0,0,.5);
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
}

4
templates/archives.html

@ -1,10 +1,10 @@
{% extends "base.html" %}
{% block title %}Archiv{%endblock%}
{% block title %}Archive{%endblock%}
{% block menu_entry_archive %}
class="active"
{% endblock %}
{% block content %}
<h1>Archiv {{ pagename }}</h1>
<h1>Archive {{ pagename }}</h1>
<dl>
{% for article in dates %}

6
templates/base.html

@ -23,14 +23,20 @@
<div class="container">
<div class="row">
<div class="span12">
{% if GITHUB_URL %}
<a id="forkme_banner" href="{{GITHUB_URL}}">View on GitHub</a>
{% endif %}
<h1 class="brand">{{ SITENAME }}</h1>
<h2 class="brand">{{ SITESUBTITLE }}</h2>
<ul class="nav">
{% if DISPLAY_PAGES_ON_MENU %}
{% if PAGES %}
{% for possiblepage in pages %}
<li {% if possiblepage == page %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ possiblepage.url }}">{{ possiblepage.title}}</a></li>
{% endfor %}
{% endif %}
{% endif %}
</ul>
{% if MENUITEMS %}
<ul class="nav pull-right">

6
templates/index.html

@ -1,9 +1,9 @@
{% extends "base.html" %}
{% block title %}Blog{%endblock%}
{% block title %}{% if INDEX_PAGE_TITLE %}{{ INDEX_PAGE_TITLE }}{% else %}Blog{% endif %}{%endblock%}
{% block content %}
<div id="content">
{% block content_title %}
<h1>Blog</h1>
<h1>{% if INDEX_PAGE_TITLE %}{{ INDEX_PAGE_TITLE }}{% else %}Blog{% endif %}</h1>
{% endblock %}
<ul class="unstyled">
@ -24,7 +24,7 @@
{% endif %}
</div>
<div class="span1 offset3">
<a class="btn btn-small" href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">Mehr</a>
<a class="btn btn-small" href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">More</a>
</div>
</div>
</div>

Loading…
Cancel
Save