diff options
-rw-r--r-- | .gitmodules | 6 | ||||
-rw-r--r-- | README.rst | 6 | ||||
m--------- | elegant | 0 | ||||
-rw-r--r-- | mnmlist/templates/base.html | 2 | ||||
m--------- | niu-x2 | 0 | ||||
-rw-r--r-- | tuxlite_tbs/templates/base.html | 2 | ||||
-rw-r--r-- | tuxlite_tbs/templates/metadata.html | 6 | ||||
-rw-r--r-- | tuxlite_tbs/templates/page.html | 10 |
8 files changed, 26 insertions, 6 deletions
diff --git a/.gitmodules b/.gitmodules index 413c484..da846e3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -58,3 +58,9 @@ [submodule "crowsfoot"] path = crowsfoot url = https://github.com/porterjamesj/crowsfoot.git +[submodule "elegant"] + path = elegant + url = git@github.com:talha131/pelican-elegant.git +[submodule "niu-x2"] + path = niu-x2 + url = http://github.com/wilbur-ma/niu-x2 @@ -27,14 +27,14 @@ To use one of the themes, edit your Pelican settings file to include this line: .. code-block:: python - THEME = "~/pelican-themes/theme-name" + THEME = "/home/user/pelican-themes/theme-name" -So, for instance, to use the ``mnmlst`` theme, you would edit your settings +So, for instance, to use the ``mnmlist`` theme, you would edit your settings file to include: .. code-block:: python - THEME = "~/pelican-themes/mnmlst" + THEME = "/home/user/pelican-themes/mnmlist" Save the changes to your settings file and then regenerate your site by using the Makefile you should already have set up using ``pelican-quickstart``: diff --git a/elegant b/elegant new file mode 160000 +Subproject 7e9c4882fe0d67eb19be1c70521cce7a4ef904b diff --git a/mnmlist/templates/base.html b/mnmlist/templates/base.html index 5539dc6..c0d2dec 100644 --- a/mnmlist/templates/base.html +++ b/mnmlist/templates/base.html @@ -33,7 +33,7 @@ <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a>{% if not loop.last %} ::{% endif %}</li> {% endfor %} {% if categories|length > 1 %} - <li>:: <a href="{{ SITEURL }}/categories.html">Catégories</a></li> + <li>:: <a href="{{ SITEURL }}/categories.html">Categories</a></li> {% endif %} {% if tags|length > 1 %} <li>:: <a href="{{ SITEURL }}/tags.html">Tags</a></li> diff --git a/niu-x2 b/niu-x2 new file mode 160000 +Subproject 8d57b4674b2e5ea8ab724bdeb7592e05dff9047 diff --git a/tuxlite_tbs/templates/base.html b/tuxlite_tbs/templates/base.html index 2c18586..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> 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 }} |