From bf2fa131cba6430ba93f584f4693c3444e0c455f Mon Sep 17 00:00:00 2001 From: lxf Date: Sat, 30 Oct 2021 17:22:29 -0400 Subject: base: added a base template dir --- templates/base.html | 53 +++++++++++++++++++++++++++++++++ templates/lib/breadcrumbs.html | 14 +++++++++ templates/lib/breadcrumbs_detail.html | 14 +++++++++ templates/lib/friends_featured_img.html | 6 ++++ templates/lib/img_archive.html | 7 +++++ templates/lib/img_blok.html | 9 ++++++ templates/lib/img_cluster.html | 6 ++++ templates/lib/img_pic960.html | 9 ++++++ templates/lib/img_picfull.html | 10 +++++++ templates/lib/img_pictall.html | 9 ++++++ templates/lib/img_picwide.html | 7 +++++ templates/lib/img_product.html | 10 +++++++ 12 files changed, 154 insertions(+) create mode 100644 templates/base.html create mode 100644 templates/lib/breadcrumbs.html create mode 100644 templates/lib/breadcrumbs_detail.html create mode 100644 templates/lib/friends_featured_img.html create mode 100644 templates/lib/img_archive.html create mode 100644 templates/lib/img_blok.html create mode 100644 templates/lib/img_cluster.html create mode 100644 templates/lib/img_pic960.html create mode 100644 templates/lib/img_picfull.html create mode 100644 templates/lib/img_pictall.html create mode 100644 templates/lib/img_picwide.html create mode 100644 templates/lib/img_product.html diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..bb8b902 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,53 @@ + + + {% block sitename %} + + {% block pagetitle %}Libregraf Publishing. Fine books for fine people{% endblock %}{%endblock%} + + + + + + + {%block stylesheet%}{%endblock%} + + {%block extrahead%}{%endblock%} + + +
+ + +
+ {% block breadcrumbs %}{% endblock %} + {% block primary %}{% endblock %} + {% block extrabody %}{% endblock %} + {% block disclaimer %}{% endblock%} + + {% block js %}{% endblock%} + + diff --git a/templates/lib/breadcrumbs.html b/templates/lib/breadcrumbs.html new file mode 100644 index 0000000..025b8e4 --- /dev/null +++ b/templates/lib/breadcrumbs.html @@ -0,0 +1,14 @@ + diff --git a/templates/lib/breadcrumbs_detail.html b/templates/lib/breadcrumbs_detail.html new file mode 100644 index 0000000..170c53a --- /dev/null +++ b/templates/lib/breadcrumbs_detail.html @@ -0,0 +1,14 @@ + diff --git a/templates/lib/friends_featured_img.html b/templates/lib/friends_featured_img.html new file mode 100644 index 0000000..999c780 --- /dev/null +++ b/templates/lib/friends_featured_img.html @@ -0,0 +1,6 @@ +{% load get_image_by_size %} +{{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} diff --git a/templates/lib/img_archive.html b/templates/lib/img_archive.html new file mode 100644 index 0000000..4ff8e8a --- /dev/null +++ b/templates/lib/img_archive.html @@ -0,0 +1,7 @@ +{% load get_image_by_size %} +{% get_image_by_size image 'featured_jrnl' as featured %} +{{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} diff --git a/templates/lib/img_blok.html b/templates/lib/img_blok.html new file mode 100644 index 0000000..2d0e947 --- /dev/null +++ b/templates/lib/img_blok.html @@ -0,0 +1,9 @@ +{% load get_image_by_size %} +{% if caption or exif or image.photo_credit_source %} +{%else%}{%if not is_cluster %}
{%endif%}{%endif%} + + {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} + +{% if caption or exif or image.photo_credit_source %}
{% endif %}{% if caption %}{{image.caption|safe}}{% endif %}{% if exif %} | Camera: {{image.exif_make}} {{image.exif_model}} with {{image.exif_lens}}{% endif %}{% if image.photo_credit_source %}{%if caption or exif %} | {%endif%}image by {% if image.photo_credit_url %}{%endif%}{%endif%}{% if caption or exif or image.photo_credit_source %}
+{%else%}{%if not is_cluster %}
{%endif%} +{% endif %} diff --git a/templates/lib/img_cluster.html b/templates/lib/img_cluster.html new file mode 100644 index 0000000..9e7d8a3 --- /dev/null +++ b/templates/lib/img_cluster.html @@ -0,0 +1,6 @@ +{% load get_image_by_size %}{% if caption or exif %}
{%endif%} + + {%if image.alt %}{{image.alt}}{%else%}{{image.title}}{%endif%} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} +{% if caption or exif %}
{% endif %}{% if caption %}{{image.caption|safe}}{% endif %}{% if exif %} | Camera: {{image.exif_make}} {{image.exif_model}} with {{image.exif_lens}}{% endif %}{% if caption or exif %}
+
+{% endif %} diff --git a/templates/lib/img_pic960.html b/templates/lib/img_pic960.html new file mode 100644 index 0000000..1915ce6 --- /dev/null +++ b/templates/lib/img_pic960.html @@ -0,0 +1,9 @@ +{% load get_image_by_size %} +{% if caption or exif or image.photo_credit_source %} +{%else%}{%if not is_cluster %}
{%endif%}{%endif%} + + {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} + +{% if caption or exif or image.photo_credit_source %}
{% endif %}{% if caption %}{{image.caption|safe}}{% endif %}{% if exif %} | Camera: {{image.exif_make}} {{image.exif_model}} with {{image.exif_lens}}{% endif %}{% if image.photo_credit_source %}{%if caption or exif %} | {%endif%}image by {% if image.photo_credit_url %}{%endif%}{%endif%}{% if caption or exif or image.photo_credit_source %}
+{%else%}{%if not is_cluster %}
{%endif%} +{% endif %} diff --git a/templates/lib/img_picfull.html b/templates/lib/img_picfull.html new file mode 100644 index 0000000..15dd5f6 --- /dev/null +++ b/templates/lib/img_picfull.html @@ -0,0 +1,10 @@ +{% load get_image_by_size %} +{% load get_image_width %} +{% if caption or exif or image.photo_credit_source %} +{%else%}{%if not is_cluster %}
{%endif%}{%endif%} + + {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} + +{% if caption or exif or image.photo_credit_source %}
{% endif %}{% if caption %}{{image.caption|safe}}{% endif %}{% if exif %} | Camera: {{image.exif_make}} {{image.exif_model}} with {{image.exif_lens}}{% endif %}{% if image.photo_credit_source %}{%if caption or exif %} | {%endif%}image by {% if image.photo_credit_url %}{%endif%}{%endif%}{% if caption or exif or image.photo_credit_source %}
+{%else%}{%if not is_cluster %}
{%endif%} +{% endif %} diff --git a/templates/lib/img_pictall.html b/templates/lib/img_pictall.html new file mode 100644 index 0000000..7d539e8 --- /dev/null +++ b/templates/lib/img_pictall.html @@ -0,0 +1,9 @@ +{% load get_image_by_size %} +{% load get_image_width %} +{% if caption %} +
{%endif%} +{{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} +{% if caption %}
{{image.caption|safe}}
+
+{% endif %} diff --git a/templates/lib/img_picwide.html b/templates/lib/img_picwide.html new file mode 100644 index 0000000..9f98020 --- /dev/null +++ b/templates/lib/img_picwide.html @@ -0,0 +1,7 @@ +{% load get_image_by_size %}{% if caption or exif or image.photo_credit_source %}{%else%}{%if not is_cluster %}
{%endif%}{%endif%} + + {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} + +{% if caption or exif or image.photo_credit_source %}
{% endif %}{% if caption %}{{image.caption|safe}}{% endif %}{% if exif %} | Camera: {{image.exif_make}} {{image.exif_model}} with {{image.exif_lens}}{% endif %}{% if image.photo_credit_source %}{%if caption or exif %} | {%endif%}image by {% if image.photo_credit_url %}{%endif%}{%endif%}{% if caption or exif or image.photo_credit_source %}
+{%else%}{%if not is_cluster %}
{%endif%} +{% endif %} diff --git a/templates/lib/img_product.html b/templates/lib/img_product.html new file mode 100644 index 0000000..58dd43e --- /dev/null +++ b/templates/lib/img_product.html @@ -0,0 +1,10 @@ +{% load get_image_by_size %} +{% load get_image_width %} +{% if caption or exif or image.photo_credit_source %} +{%else%}{%if not is_cluster %}
{%endif%}{%endif%} + + {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} + +{% if caption or exif or image.photo_credit_source %}
{% endif %}{% if caption %}{{image.caption|safe}}{% endif %}{% if exif %} | Camera: {{image.exif_make}} {{image.exif_model}} with {{image.exif_lens}}{% endif %}{% if image.photo_credit_source %}{%if caption or exif %} | {%endif%}image by {% if image.photo_credit_url %}{%endif%}{%endif%}{% if caption or exif or image.photo_credit_source %}
+{%else%}{%if not is_cluster %}
{%endif%} +{% endif %} -- cgit v1.2.3-70-g09d2