diff options
Diffstat (limited to 'tuxlite_tbs')
-rw-r--r-- | tuxlite_tbs/README.md | 7 | ||||
-rw-r--r-- | tuxlite_tbs/templates/archives.html | 2 | ||||
-rw-r--r-- | tuxlite_tbs/templates/article.html | 8 | ||||
-rw-r--r-- | tuxlite_tbs/templates/base.html | 4 | ||||
-rw-r--r-- | tuxlite_tbs/templates/disqus.html | 1 | ||||
-rw-r--r-- | tuxlite_tbs/templates/metadata.html | 6 | ||||
-rw-r--r-- | tuxlite_tbs/templates/page.html | 10 |
7 files changed, 31 insertions, 7 deletions
diff --git a/tuxlite_tbs/README.md b/tuxlite_tbs/README.md new file mode 100644 index 0000000..972743e --- /dev/null +++ b/tuxlite_tbs/README.md @@ -0,0 +1,7 @@ +# tuxlite_tbs #
+
+
+
+## Screenshot ##
+
+![screenshot](screenshot.png)
diff --git a/tuxlite_tbs/templates/archives.html b/tuxlite_tbs/templates/archives.html index 1520943..20fcd87 100644 --- a/tuxlite_tbs/templates/archives.html +++ b/tuxlite_tbs/templates/archives.html @@ -9,7 +9,7 @@ {% for article in dates %} <tr> <td>{{ article.date.strftime("%d %b %Y") }}</td> - <td><a href='{{ article.url }}'>{{ article.title }}</a></td> + <td><a href='{{ SITEURL }}/{{ article.url }}'>{{ article.title }}</a></td> </tr> {% endfor %} </tbody> diff --git a/tuxlite_tbs/templates/article.html b/tuxlite_tbs/templates/article.html index 766de73..b5f3a63 100644 --- a/tuxlite_tbs/templates/article.html +++ b/tuxlite_tbs/templates/article.html @@ -9,9 +9,11 @@ <div>{{ article.content }}</div> <hr> - - <h2>Comments</h2> + {% include "twitter.html" %} - {% include 'disqus.html' %} + {% if DISQUS_SITENAME %} + <h2>Comments</h2> + {% include "disqus.html" %} + {% endif %} </div> {% endblock %} diff --git a/tuxlite_tbs/templates/base.html b/tuxlite_tbs/templates/base.html index 59cfae7..4dd1f52 100644 --- a/tuxlite_tbs/templates/base.html +++ b/tuxlite_tbs/templates/base.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html lang="en"> +<html lang="{{ DEFAULT_LANG }}"> <head> <meta charset="utf-8"> <title>{% block windowtitle %}{{ SITENAME }}{% endblock %}</title> @@ -68,7 +68,7 @@ Site </li> - <li><a href="{{ SITEURL }}/archives.html">Archives</a> + <li><a href="{{ SITEURL }}/{{ ARCHIVES_URL }}">Archives</a> <li><a href="{{ SITEURL }}/tags.html">Tags</a> <li><a href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" rel="alternate">Atom feed</a></li> {% if FEED_RSS %} diff --git a/tuxlite_tbs/templates/disqus.html b/tuxlite_tbs/templates/disqus.html index 5aa9f62..ddaaedd 100644 --- a/tuxlite_tbs/templates/disqus.html +++ b/tuxlite_tbs/templates/disqus.html @@ -2,6 +2,7 @@ <div id="disqus_thread"></div> <script type="text/javascript"> var disqus_shortname = '{{ DISQUS_SITENAME }}'; + var disqus_title = '{{ article.title }}'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; diff --git a/tuxlite_tbs/templates/metadata.html b/tuxlite_tbs/templates/metadata.html index 3f7e987..1ee8b86 100644 --- a/tuxlite_tbs/templates/metadata.html +++ b/tuxlite_tbs/templates/metadata.html @@ -2,6 +2,12 @@ {% if article.author %} by <a class="url fn" href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a> + {% if article.translations %} + <a href="{{ SITEURL }}/{{ article.url }}" class="btn btn-info xsmall">{{ article.lang or DEFAULT_LANG }}</a> + {% for translation in article.translations %} + <a href="{{ SITEURL }}/{{ translation.url }}" class="btn btn-info xsmall">{{ translation.lang }}</a> + {% endfor %} + {% endif %} {% endif %} {# Filed under <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a> #} diff --git a/tuxlite_tbs/templates/page.html b/tuxlite_tbs/templates/page.html index 65470ea..df15a33 100644 --- a/tuxlite_tbs/templates/page.html +++ b/tuxlite_tbs/templates/page.html @@ -2,7 +2,15 @@ {% block title %} {% endblock %} {% block content %} <section id="content" class="body"> - <h2 class="content-title">{{ page.title }}</h2> + <h2 class="content-title"> + {{ page.title }} + {% if page.translations %} + <a href="{{ SITEURL }}/{{ page.url }}" class="btn btn-info xsmall">{{ page.lang or DEFAULT_LANG }}</a> + {% for translation in page.translations %} + <a href="{{ SITEURL }}/{{ translation.url }}" class="btn btn-info xsmall">{{ translation.lang }}</a> + {% endfor %} + {% endif %} + </h2> {% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">get the pdf</a>{% endif %} {{ page.content }} |