-
-
- {% endif %} -
-
-
{{ media.description | striptags }}{%- endif -%} + {%- if media.exif -%} + + {%- if media.exif.gps -%} + {{ 'N{:.6f}'.format(media.exif.gps.lat) if media.exif.gps.lat > 0 else 'S{:.6f}'.format(-media.exif.gps.lat) }}{{ 'E{:.6f}'.format(media.exif.gps.lon) if media.exif.gps.lon > 0 else 'W{:.6f}'.format(-media.exif.gps.lon) }} + {%- endif -%} + {%- if media.exif.Make or media.exif.Model -%} + {{ media.exif.Make }} {{ media.exif.Model }} + {%- endif -%} + {%- if media.exif.datetime -%} + {{ media.exif.datetime }} + {%- endif -%} + {% endif %} + {%- endmacro %} {% if album.medias %} {% if settings.show_map and album.show_map %} @@ -293,6 +252,4 @@ {% endif %} - {% include 'piwik.html' %} - - +{% endblock %} diff --git a/sigal/themes/galleria/templates/album_list.html b/sigal/themes/galleria/templates/album_list.html index 299d583..22cdbd5 100644 --- a/sigal/themes/galleria/templates/album_list.html +++ b/sigal/themes/galleria/templates/album_list.html @@ -1,36 +1,19 @@ - - - - - +{% extends "base.html" %} -{{ album.title|striptags }}
-
-
-
+{% block extra_head %}
+ {# These are used on album pages - prefetch now #}
+
+
+
+
+ {% if settings.show_map %}
+
+
+
+ {% endif %}
+{% endblock %}
-
-
-
-
-
- {% include 'gtm.html' %}
- {{ album.title|striptags }}
+
+
+
+
+
+
+
+ {% block extra_head %}{% endblock extra_head %}
+ {% include 'analytics.html' %}
+
+
+ {% include 'gtm.html' %}
+
{{ index_title }}
- - {% if settings.links %} - - {% endif %} - - {% if album.breadcrumb %} -- {%- for url, title in album.breadcrumb -%} - {{ title }} - {%- if not loop.last %} » {% endif -%} - {% endfor -%} -
-- {% endif %} -
+{% block content %}
{% if album.medias %}
- {% macro img_description(media) -%}
- {%- if media.big -%}Full size{%- endif -%}
- {# clean up tags and whitespace, including newlines, in the description #}
- {%- if media.description -%}
{{ media.description | striptags }}{%- endif -%} - {%- if media.exif -%} - - {%- if media.exif.gps -%} - {{ 'N{:.6f}'.format(media.exif.gps.lat) if media.exif.gps.lat > 0 else 'S{:.6f}'.format(-media.exif.gps.lat) }}{{ 'E{:.6f}'.format(media.exif.gps.lon) if media.exif.gps.lon > 0 else 'W{:.6f}'.format(-media.exif.gps.lon) }} - {%- endif -%} - {%- if media.exif.Make or media.exif.Model -%} - {{ media.exif.Make }} {{ media.exif.Model }} - {%- endif -%} - {%- if media.exif.datetime -%} - {{ media.exif.datetime }} - {%- endif -%} - {% endif %} - {%- endmacro %}
+{% endblock %}
+{% block late_js %}
+ {% macro img_description(media) -%}
+ {%- if media.big -%}Full size{%- endif -%}
+ {# clean up tags and whitespace, including newlines, in the description #}
+ {%- if media.description -%}{{ media.description | striptags }}{%- endif -%} - {%- if media.exif -%} - - {%- if media.exif.gps -%} - {{ 'N{:.6f}'.format(media.exif.gps.lat) if media.exif.gps.lat > 0 else 'S{:.6f}'.format(-media.exif.gps.lat) }}{{ 'E{:.6f}'.format(media.exif.gps.lon) if media.exif.gps.lon > 0 else 'W{:.6f}'.format(-media.exif.gps.lon) }} - {%- endif -%} - {%- if media.exif.Make or media.exif.Model -%} - {{ media.exif.Make }} {{ media.exif.Model }} - {%- endif -%} - {%- if media.exif.datetime -%} - {{ media.exif.datetime }} - {%- endif -%} - {% endif %} - {%- endmacro %}
{% if settings.show_map and album.show_map %}
{% endif %}
-
-
- {% include 'footer.html' %}
-
{% endif %}
- {{ media.description | striptags }}{%- endif -%} + {%- if media.exif -%} + + {%- if media.exif.gps -%} + {{ 'N{:.6f}'.format(media.exif.gps.lat) if media.exif.gps.lat > 0 else 'S{:.6f}'.format(-media.exif.gps.lat) }}{{ 'E{:.6f}'.format(media.exif.gps.lon) if media.exif.gps.lon > 0 else 'W{:.6f}'.format(-media.exif.gps.lon) }} + {%- endif -%} + {%- if media.exif.Make or media.exif.Model -%} + {{ media.exif.Make }} {{ media.exif.Model }} + {%- endif -%} + {%- if media.exif.datetime -%} + {{ media.exif.datetime }} + {%- endif -%} + {% endif %} + {%- endmacro %} {% if album.medias %} {% if settings.show_map and album.show_map %} @@ -293,6 +252,4 @@ {% endif %} - {% include 'piwik.html' %} - - +{% endblock %} diff --git a/sigal/themes/galleria/templates/album_list.html b/sigal/themes/galleria/templates/album_list.html index 299d583..22cdbd5 100644 --- a/sigal/themes/galleria/templates/album_list.html +++ b/sigal/themes/galleria/templates/album_list.html @@ -1,36 +1,19 @@ - - - - - +{% extends "base.html" %} -
-
-
-
-
- {% include 'piwik.html' %}
-
-
+{% endblock %}
diff --git a/sigal/themes/galleria/templates/base.html b/sigal/themes/galleria/templates/base.html
new file mode 100644
index 0000000..e7119dc
--- /dev/null
+++ b/sigal/themes/galleria/templates/base.html
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+ {{ index_title }}
- - {% if settings.links %} - - {% endif %} -
+{% block content %}
-
-
- {% include 'footer.html' %}
- -
@@ -42,10 +25,4 @@
{% endfor %}
+
+
+ {% endif %} +
+
+
+ {% block late_js %}{% endblock late_js %}
+ {% include 'piwik.html' %}
+
+
{{ index_title }}
+ + {% if settings.links %} + + {% endif %} + {% if album.breadcrumb %} ++ {%- for url, title in album.breadcrumb -%} + {{ title }} + {%- if not loop.last %} » {% endif -%} + {% endfor -%} +
++ {% endif %} +
+ {% block content %}{% endblock content %}
+
+ {% include 'footer.html' %}
+