diff --git a/sigal/themes/galleria/templates/album.html b/sigal/themes/galleria/templates/album.html
index cf422ad..bd8f320 100644
--- a/sigal/themes/galleria/templates/album.html
+++ b/sigal/themes/galleria/templates/album.html
@@ -1,17 +1,6 @@
-
-
-
-
-
-
-
- {% 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 %}
-
- {% include 'footer.html' %}
-
+{% 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 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..bc3ab66 100644
--- a/sigal/themes/galleria/templates/album_list.html
+++ b/sigal/themes/galleria/templates/album_list.html
@@ -1,36 +1,6 @@
-
-
-
-
-
+{% extends "base.html" %}
-
{{ album.title|striptags }}
-
-
-
-
-
-
-
-
-
- {% include 'gtm.html' %}
-
-
-
-
- {% if settings.links %}
-
- {% endif %}
-
-
-
+{% block content %}
@@ -42,10 +12,4 @@
{% endfor %}
-
-
- {% include 'footer.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 @@
+
+
+
+
+
+
+
{{ album.title|striptags }}
+
+
+
+
+
+
+
+ {% block extra_head %}{% endblock extra_head %}
+ {% include 'analytics.html' %}
+
+
+ {% include 'gtm.html' %}
+
+
+
+
+ {% 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' %}
+
+ {% block late_js %}{% endblock late_js %}
+ {% include 'piwik.html' %}
+
+