Skip to content

Commit

Permalink
Merge pull request getpelican#371 from feld/master
Browse files Browse the repository at this point in the history
Further tuxlite_tbs improvements
  • Loading branch information
justinmayer committed Feb 19, 2016
2 parents f5d9dd9 + f4ef468 commit 714340c
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tuxlite_tbs/templates/archives.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "base.html" %}
{% block title %}{{ SITENAME }} <small>[archive]</small>{% endblock %}
{% block title %}{{ SITENAME }} - Archives{% endblock %}
{% block content %}

<h1>Archives</h1>
Expand Down
1 change: 1 addition & 0 deletions tuxlite_tbs/templates/article.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% extends "base.html" %}
{% block title %}{{ SITENAME }} - {{ article.title }}{% endblock %}
{% block content %}
<div class='article'>
<div class="content-title">
Expand Down
2 changes: 1 addition & 1 deletion tuxlite_tbs/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="{{ DEFAULT_LANG }}">
<head>
<meta charset="utf-8">
<title>{% block windowtitle %}{{ SITENAME }}{% endblock %}</title>
<title>{% block title %}{{ SITENAME }}{% endblock %}</title>
<meta name="description" content="">
<meta name="author" content="{{ AUTHOR }}">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
2 changes: 1 addition & 1 deletion tuxlite_tbs/templates/category.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{% extends "index.html" %}
{% block title %}{{ SITENAME }} <small>{{ category }}</small>{% endblock %}
{% block title %}{{ SITENAME }} - {{ category }}{% endblock %}
2 changes: 1 addition & 1 deletion tuxlite_tbs/templates/page.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "base.html" %}
{% block title %} {% endblock %}
{% block title %}{{ SITENAME }} - {{ page.title }}{% endblock %}
{% block content %}
<section id="content" class="body">
<h2 class="content-title">
Expand Down
32 changes: 32 additions & 0 deletions tuxlite_tbs/templates/sitemap.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

{% for article in articles %}
<url>
<loc>{{ SITEURL }}/{{ article.url }}</loc>
<priority>0.8</priority>
</url>

{% for translation in article.translations %}
<url>
<loc>{{ SITEURL }}/{{ translation.url }}</loc>
<priority>0.8</priority>
</url>
{% endfor %}
{% endfor %}

{% for page in pages %}
<url>
<loc>{{ SITEURL }}/{{ page.url }}</loc>
<priority>1.0</priority>
</url>

{% for translation in page.translations %}
<url>
<loc>{{ SITEURL }}/{{ translation.url }}</loc>
<priority>1.0</priority>
</url>
{% endfor %}
{% endfor %}

</urlset>
2 changes: 1 addition & 1 deletion tuxlite_tbs/templates/tags.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "base.html" %}
{% block title %}{{ SITENAME }} <small>[tgs]</small>{% endblock %}
{% block title %}{{ SITENAME }} - Tags{% endblock %}
{% block content %}
<ul>
{% for tag, articles in tags|sort %}
Expand Down

0 comments on commit 714340c

Please sign in to comment.