diff --git a/templates/blog.html.twig b/templates/blog.html.twig index b97fc31..e9905f1 100644 --- a/templates/blog.html.twig +++ b/templates/blog.html.twig @@ -1,61 +1,61 @@ {% extends 'partials/base.html.twig' %} - {% set collection = page.collection() %} - {% set base_url = page.url %} - {% set feed_url = base_url %} - {% if page.header.show_breadcrumbs is defined %} - {% set show_breadcrumbs = page.header.show_breadcrumbs %} - {% else %} - {% set show_breadcrumbs = true %} - {% endif %} - {% if page.header.show_pagination is defined %} - {% set show_pagination = page.header.show_pagination %} - {% else %} - {% set show_pagination = true %} - {% endif %} - -{% if uri.param('category') %} - {% set page_title = theme_config.listing_title.taxonomy.category | default('Posts in Category: ') ~ uri.param('category') %} -{% elseif uri.param('tag') %} - {% set page_title = theme_config.listing_title.taxonomy.tag | default('Posts with Tag: ') ~ uri.param('tag') %} -{% elseif uri.param('author') %} - {% set page_title = theme_config.listing_title.taxonomy.author | default('Posts from Author: ') ~ uri.param('author') %} +{% set collection = page.collection() %} +{% set base_url = page.url %} +{% set feed_url = base_url %} +{% if page.header.show_breadcrumbs is defined %} + {% set show_breadcrumbs = page.header.show_breadcrumbs %} {% else %} - {% set page_title = theme_config.listing_title.blog | default('') %} + {% set show_breadcrumbs = true %} +{% endif %} +{% if page.header.show_pagination is defined %} + {% set show_pagination = page.header.show_pagination %} +{% else %} + {% set show_pagination = true %} {% endif %} - {% if base_url == '/' %} - {% set base_url = '' %} +{% if uri.param('category') %} + {% set page_title = theme_config.listing_title.taxonomy.category | default('Posts in Category: ') ~ uri.param('category') %} +{% elseif uri.param('tag') %} + {% set page_title = theme_config.listing_title.taxonomy.tag | default('Posts with Tag: ') ~ uri.param('tag') %} +{% elseif uri.param('author') %} + {% set page_title = theme_config.listing_title.taxonomy.author | default('Posts from Author: ') ~ uri.param('author') %} +{% else %} + {% set page_title = theme_config.listing_title.blog | default('') %} +{% endif %} + +{% if base_url == '/' %} + {% set base_url = '' %} +{% endif %} + +{% if base_url == base_url_relative %} + {% set feed_url = base_url~'/'~page.slug %} +{% endif %} + +{% block menu %} + {% include 'partials/sidebar_right.html.twig' %} +{% endblock %} + +{% block content %} + {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} + {% include 'partials/breadcrumbs.html.twig' %} {% endif %} - {% if base_url == base_url_relative %} - {% set feed_url = base_url~'/'~page.slug %} - {% endif %} +

+ {{page_title}} +

- {% block menu %} - {% include 'partials/sidebar_right.html.twig' %} - {% endblock %} - - {% block content %} - {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} - {% include 'partials/breadcrumbs.html.twig' %} - {% endif %} - -

- {{page_title}} -

- - {% for child in collection %} - {% include 'partials/blog_item.html.twig' with {'page':child, 'truncate':true} %} - {% endfor %} + {% for child in collection %} + {% include 'partials/blog_item.html.twig' with {'page':child, 'truncate':true} %} + {% endfor %} - {% if show_pagination and config.plugins.pagination.enabled and collection.params.pagination %} - {% include 'partials/pagination.html.twig' with {base_url: page.url, pagination: collection.params.pagination} %} - {% endif %} - {% endblock %} + {% if show_pagination and config.plugins.pagination.enabled and collection.params.pagination %} + {% include 'partials/pagination.html.twig' with {base_url: page.url, pagination: collection.params.pagination} %} + {% endif %} +{% endblock %} - {% block sidebar %} - {% if theme_config.sidebar == true %} - {% include 'partials/sidebar_left.html.twig' %} - {% endif %} - {% endblock %} +{% block sidebar %} + {% if theme_config.sidebar == true %} + {% include 'partials/sidebar_left.html.twig' %} + {% endif %} +{% endblock %} diff --git a/templates/default.html.twig b/templates/default.html.twig index 449046c..bb40978 100644 --- a/templates/default.html.twig +++ b/templates/default.html.twig @@ -8,22 +8,24 @@
-

{{ page.header.title }}

- {% if page.header.subtitle %} -

{{ page.header.subtitle }}

- {% endif %} +

{{ page.header.title }}

+ {% if page.header.subtitle %} +

{{ page.header.subtitle }}

+ {% endif %}
+
+ + {% if page.header.primaryImage %} + {{ page.media[page.header.primaryImage].cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }} + {% else %} + {{ page.media.images|first.cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }} + {% endif %} + + {{ page.content|raw }} - - {% if page.header.primaryImage %} - {{ page.media[page.header.primaryImage].cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }} - {% else %} - {{ page.media.images|first.cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }} - {% endif %} - {{ page.content|raw}} -
+ + {% include 'partials/footer.html.twig' %} + {% endblock %} diff --git a/templates/error.html.twig b/templates/error.html.twig index 8e55c3c..ad5d6c0 100644 --- a/templates/error.html.twig +++ b/templates/error.html.twig @@ -5,12 +5,12 @@ {% endblock %} {% block content %} -
+
-
-

Error {{ page.header.http_response_code }}

-

{{ page.content|raw }}

-
+
+

Error {{ page.header.http_response_code }}

+

{{ page.content|raw }}

+
-
+
{% endblock %} diff --git a/templates/item.html.twig b/templates/item.html.twig index 6407640..adb706b 100644 --- a/templates/item.html.twig +++ b/templates/item.html.twig @@ -1,29 +1,29 @@ {% extends 'partials/base.html.twig' %} - {% set base_url = page.parent.url %} - {% set feed_url = base_url %} - {% set show_breadcrumbs = header_var('show_breadcrumbs', [page, blog]) %} - {% if base_url == '/' %} - {% set base_url = '' %} - {% endif %} +{% set base_url = page.parent.url %} +{% set feed_url = base_url %} +{% set show_breadcrumbs = header_var('show_breadcrumbs', [page, blog]) %} - {% if base_url == base_url_relative %} - {% set feed_url = base_url~'/'~page.parent.slug %} - {% endif %} - - {% block menu %} - {% include 'partials/sidebar_right.html.twig' %} - {% endblock %} +{% if base_url == '/' %} + {% set base_url = '' %} +{% endif %} - {% block content %} - - {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} - {% include 'partials/breadcrumbs.html.twig' %} - {% endif %} +{% if base_url == base_url_relative %} + {% set feed_url = base_url~'/'~page.parent.slug %} +{% endif %} - {% include 'partials/blog_item.html.twig' with {'truncate':false} %} +{% block menu %} + {% include 'partials/sidebar_right.html.twig' %} +{% endblock %} - - {% endblock %} +{% block content %} + {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} + {% include 'partials/breadcrumbs.html.twig' %} + {% endif %} + + {% include 'partials/blog_item.html.twig' with {'truncate':false} %} + + +{% endblock %} diff --git a/templates/offline.html.twig b/templates/offline.html.twig index 5f8ad16..a7c4841 100644 --- a/templates/offline.html.twig +++ b/templates/offline.html.twig @@ -3,16 +3,16 @@ {% block header %}{% endblock %} {% block content %} -
+
-
-

{{ site.title }}

-

Error {{ page.header.http_response_code }}

-

{{ page.content|raw }}

-
+
+

{{ site.title }}

+

Error {{ page.header.http_response_code }}

+

{{ page.content|raw }}

+
-
- +
+ {% endblock %} diff --git a/templates/partials/blog_item.html.twig b/templates/partials/blog_item.html.twig index fb9a5af..dfc87b1 100644 --- a/templates/partials/blog_item.html.twig +++ b/templates/partials/blog_item.html.twig @@ -1,11 +1,11 @@
{% if page.header.metadata.author %} - {% set author = page.header.metadata.author %} + {% set author = page.header.metadata.author %} {% elseif page.header.author %} - {% set author = page.header.author %} + {% set author = page.header.author %} {% else %} - {% set author = page.header.taxonomy.author[0] %} + {% set author = page.header.taxonomy.author[0] %} {% endif %} {% if author %} diff --git a/templates/portfolio.html.twig b/templates/portfolio.html.twig index 43ed5ec..803b71f 100644 --- a/templates/portfolio.html.twig +++ b/templates/portfolio.html.twig @@ -8,38 +8,39 @@ {% block content %} -
-
-
-

{{ page.header.title }}

- {% if page.header.subtitle %} -

{{ page.header.subtitle }}

- {% endif %} -
-
- {% if page.header.primaryImage %} - {{ page.media[page.header.primaryImage].cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }} +
+
+
+

{{ page.header.title }}

+ {% if page.header.subtitle %} +

{{ page.header.subtitle }}

{% endif %} - - {{ page.content|raw}} +
+
+ {% if page.header.primaryImage %} + {{ page.media[page.header.primaryImage].cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }} + {% endif %} + + {{ page.content|raw}} + - {% block portfolio %} -
+ {% block portfolio %} +
- {% for item in page.header.images %} + {% for item in page.header.images %} - {% endfor %} + {% endfor %}
-
+
{% endblock %} -
+
- + {% endblock %} diff --git a/templates/simplesearch_results.html.twig b/templates/simplesearch_results.html.twig index d56a984..0d8aa49 100644 --- a/templates/simplesearch_results.html.twig +++ b/templates/simplesearch_results.html.twig @@ -5,38 +5,35 @@ {% endblock %} {% block content %} -
+
-
- +
{% block results %} -
-

{{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS"|t }}

-
- {% include 'partials/simplesearch_searchbox_results.html.twig' %} -
-

- {% if query %} - {% set count = search_results ? search_results.count : 0 %} - {% if count is same as( 1 ) %} - {{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS_SUMMARY_SINGULAR"|t(query|e)|raw }} - {% else %} - {{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS_SUMMARY_PLURAL"|t(query|e, count)|raw }} - {% endif %} - {% endif %} -

+
+

{{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS"|t }}

+
+ {% include 'partials/simplesearch_searchbox_results.html.twig' %}
+

+ {% if query %} + {% set count = search_results ? search_results.count : 0 %} + {% if count is same as( 1 ) %} + {{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS_SUMMARY_SINGULAR"|t(query|e)|raw }} + {% else %} + {{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS_SUMMARY_PLURAL"|t(query|e, count)|raw }} + {% endif %} + {% endif %} +

+
{% endblock %} - -
- +
- {% for page in search_results %} - {% include 'partials/simplesearch_item.html.twig' with {'page':page} %} + {% for page in search_results %} + {% include 'partials/simplesearch_item.html.twig' with {'page':page} %} {% endfor %} -
- +
{% endblock %} + {% block sidebar %} {% if theme_config.sidebar == true %} {% include 'partials/sidebar_left.html.twig' %}