chiark / gitweb /
theme: explicit hyphenation of hardcoded content.
authorVladimír Vondruš <mosra@centrum.cz>
Sun, 10 Dec 2017 23:41:45 +0000 (00:41 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Mon, 11 Dec 2017 01:48:25 +0000 (02:48 +0100)
pelican-theme/templates/archives.html
pelican-theme/templates/base_blog.html

index bbcab8e7aa903afaad1a1ca66c364d29b418a435..bcafc4ec412ebf0c60630857beffa1d08bedf5e2 100644 (file)
@@ -18,8 +18,8 @@
       {% endif %}
       {% if not article_list %}
       <div class="m-note m-success">
-        <h3>Congratulations!</h3>
-        The m.css theme is alive and kicking! Now, feed it some articles so it doesn't feel so empty :)
+        <h3>{{ "Congratulations!"|hyphenate(lang='en') }}</h3>
+        {{ "The m.css theme is alive and kicking! Now, feed it some articles so it doesn't feel so empty :)"|hyphenate(lang='en') }}
       </div>
       {% endif %}
       {% for article in article_list %}
index ecee7d37c111c5232d07e9d67ec3f6f3f15d036c..c867269634188478125aa73dc99cfeb10a1e23d5 100644 (file)
@@ -16,7 +16,7 @@
   <nav class="m-navpanel m-container">
     <div class="m-row">
       <div class="m-col-s-4 m-col-l-2 {% if M_SHOW_AUTHOR_LIST %}m-push-l-1{% elif tags %}m-push-s-2 m-push-l-3{% else %}m-push-s-4 m-push-l-5{% endif %}">
-        <h3>Cate&shy;gories</h3>
+        <h3>{{ "Categories"|hyphenate(lang='en') }}</h3>
         <ol class="m-block-bar-s">
           {% for cat, null in categories %}
           <li><a href="{{ cat.url|format_siteurl }}">{{ cat }}</a></li>
@@ -25,7 +25,7 @@
       </div>
       {% if M_SHOW_AUTHOR_LIST %}
       <div class="m-col-s-4 m-col-l-2 {% if tags %}m-push-l-3{% else %}m-push-s-4 m-push-l-7{% endif %}">
-        <h3>Authors</h3>
+        <h3>{{ "Authors"|hyphenate(lang='en') }}</h3>
         <ol class="m-block-bar-s">
           {% for author, null in authors %}
           <li><a href="{{ author.url|format_siteurl }}">{{ author }}</a></li>
@@ -35,7 +35,7 @@
       {% endif %}
       {% if tags %}
       <div class="m-col-s-4 m-col-l-2 {% if M_SHOW_AUTHOR_LIST %}m-push-l-5{% else %}m-push-s-2 m-push-l-5{% endif %}">
-        <h3>Tag cloud</h3>
+        <h3>{{ "Tag cloud"|hyphenate(lang='en') }}</h3>
         <ul class="m-tagcloud">
           {% set max_articles_per_tag = tags|map(attribute='1')|map('length')|sort|last %}
           {% for tag, articles in tags|sort(attribute='0') %}
@@ -48,7 +48,7 @@
   </nav>
 {% else %}
     <nav class="m-navpanel m-col-m-2">
-      <h3>Cate&shy;gories</h3>
+      <h3>{{ "Categories"|hyphenate(lang='en') }}</h3>
       <ol class="m-block-bar-m">
         {% if not categories %}
         <li><em class="m-text m-dim">(none yet)</em></li>
@@ -58,7 +58,7 @@
         {% endfor %}
       </ol>
       {% if M_SHOW_AUTHOR_LIST and authors %}
-      <h3>Authors</h3>
+      <h3>{{ "Authors"|hyphenate(lang='en') }}</h3>
       <ol class="m-block-bar-m">
         {% for author, null in authors %}
         <li><a href="{{ author.url|format_siteurl }}">{{ author }}</a></li>
@@ -66,7 +66,7 @@
       </ol>
       {% endif %}
       {% if tags %}
-      <h3>Tag cloud</h3>
+      <h3>{{ "Tag cloud"|hyphenate(lang='en') }}</h3>
       <ul class="m-tagcloud">
         {% set max_articles_per_tag = tags|map(attribute='1')|map('length')|sort|last %}
         {% for tag, articles in tags|sort(attribute='0') %}