Skip to content

Commit

Permalink
jinjify
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Jun 10, 2015
1 parent b5af039 commit 4912e30
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 8 deletions.
4 changes: 2 additions & 2 deletions nikola/data/themes/base-jinja/templates/base_header.tmpl
Expand Up @@ -36,15 +36,15 @@
<ul>
{% for suburl, text in url %}
{% if rel_link(permalink, suburl) == "#" %}
<li class="active"><a href="{{ permalink }}">{{ text }} <span class="sr-only">{{ messages("(active)", langname) }}</span></a></li>
<li class="active"><a href="{{ permalink }}">{{ text }} <span class="sr-only">{{ messages("(active)", lang) }}</span></a></li>
{% else %}
<li><a href="{{ suburl }}">{{ text }}</a></li>
{% endif %}
{% endfor %}
</ul>
{% else %}
{% if rel_link(permalink, url) == "#" %}
<li class="active"><a href="{{ permalink }}">{{ text }} <span class="sr-only">{{ messages("(active)", langname) }}</span></a></li>
<li class="active"><a href="{{ permalink }}">{{ text }} <span class="sr-only">{{ messages("(active)", lang) }}</span></a></li>
{% else %}
<li><a href="{{ url }}">{{ text }}</a></li>
{% endif %}
Expand Down
11 changes: 10 additions & 1 deletion nikola/data/themes/base-jinja/templates/gallery.tmpl
Expand Up @@ -22,7 +22,16 @@
{% endfor %}
</ul>
{% endif %}

<noscript>
{% if photo_array %}
<ul class="thumbnails">
{% for image in photo_array %}
<li><a href="{{ image['url'] }}" class="thumbnail image-reference" title="{{ image['title'] }}">
<img src="{{ image['url_thumb'] }}" alt="{{ image['title'] }}" /></a>
{% endfor %}
</ul>
{% endif %}
</noscript>
<div id="gallery_container"></div>

{% if site_has_comments and enable_comments %}
Expand Down
4 changes: 2 additions & 2 deletions nikola/data/themes/bootstrap-jinja/templates/base_helper.tmpl
Expand Up @@ -136,15 +136,15 @@ lang="{{ lang }}">
<ul class="dropdown-menu">
{% for suburl, text in url %}
{% if rel_link(permalink, suburl) == "#" %}
<li class="active"><a href="{{ permalink }}">{{ text }} <span class="sr-only">{{ messages("(active)", langname) }}</span></a>
<li class="active"><a href="{{ permalink }}">{{ text }} <span class="sr-only">{{ messages("(active)", lang) }}</span></a>
{% else %}
<li><a href="{{ suburl }}">{{ text }}</a>
{% endif %}
{% endfor %}
</ul>
{% else %}
{% if rel_link(permalink, url) == "#" %}
<li class="active"><a href="{{ permalink }}">{{ text }} <span class="sr-only">{{ messages("(active)", langname) }}</span></a>
<li class="active"><a href="{{ permalink }}">{{ text }} <span class="sr-only">{{ messages("(active)", lang) }}</span></a>
{% else %}
<li><a href="{{ url }}">{{ text }}</a>
{% endif %}
Expand Down
11 changes: 10 additions & 1 deletion nikola/data/themes/bootstrap-jinja/templates/gallery.tmpl
Expand Up @@ -22,7 +22,16 @@
{% endfor %}
</ul>
{% endif %}

<noscript>
{% if photo_array %}
<ul class="thumbnails">
{% for image in photo_array %}
<li><a href="{{ image['url'] }}" class="thumbnail image-reference" title="{{ image['title'] }}">
<img src="{{ image['url_thumb'] }}" alt="{{ image['title'] }}" /></a>
{% endfor %}
</ul>
{% endif %}
</noscript>
<div id="gallery_container"></div>

{% if site_has_comments and enable_comments %}
Expand Down
Expand Up @@ -133,15 +133,15 @@ lang="{{ lang }}">
<ul class="dropdown-menu">
{% for suburl, text in url %}
{% if rel_link(permalink, suburl) == "#" %}
<li class="active"><a href="{{ permalink }}">{{ text }} <span class="sr-only">{{ messages("(active)", langname) }}</span></a>
<li class="active"><a href="{{ permalink }}">{{ text }} <span class="sr-only">{{ messages("(active)", lang) }}</span></a>
{% else %}
<li><a href="{{ suburl }}">{{ text }}</a>
{% endif %}
{% endfor %}
</ul>
{% else %}
{% if rel_link(permalink, url) == "#" %}
<li class="active"><a href="{{ permalink }}">{{ text }} <span class="sr-only">{{ messages("(active)", langname) }}</span></a>
<li class="active"><a href="{{ permalink }}">{{ text }} <span class="sr-only">{{ messages("(active)", lang) }}</span></a>
{% else %}
<li><a href="{{ url }}">{{ text }}</a>
{% endif %}
Expand Down
10 changes: 10 additions & 0 deletions nikola/data/themes/bootstrap3-jinja/templates/gallery.tmpl
Expand Up @@ -22,6 +22,16 @@
</ul>
{% endif %}

<noscript>
{% if photo_array %}
<ul class="thumbnails">
{% for image in photo_array %}
<li><a href="{{ image['url'] }}" class="thumbnail image-reference" title="{{ image['title'] }}">
<img src="{{ image['url_thumb'] }}" alt="{{ image['title'] }}" /></a>
{% endfor %}
</ul>
{% endif %}
</noscript>
<div id="gallery_container"></div>

{% if site_has_comments and enable_comments %}
Expand Down

0 comments on commit 4912e30

Please sign in to comment.