- {% if page.title %}{% endif %} + {% if title %}{% endif %} {% if page.excerpt %}{% endif %} {% if page.date %}{% endif %} {% if page.last_modified_at %}{% endif %} diff --git a/src/_includes/layouts/tags.html b/src/_includes/layouts/tags.html index daa1182..a81bda0 100644 --- a/src/_includes/layouts/tags.html +++ b/src/_includes/layouts/tags.html @@ -5,19 +5,21 @@ layout: archive {{ content }} {% assign tags_max = 0 %} -{% for tag in site.tags %} - {% if tag[1].size > tags_max %} - {% assign tags_max = tag[1].size %} +{% for tag in collections.tags %} + {% if collections[tag].size > tags_max %} + {% assign tags_max = collections[tag].size %} {% endif %} {% endfor %} + +
    {% for i in (1..tags_max) reversed %} - {% for tag in site.tags %} - {% if tag[1].size == i %} + {% for tag in collections.tags %} + {% if collections[tag].size == i %}
  • - - {{ tag[0] }} {{ i }} + + {{ tag }} {{ i }}
  • {% endif %} @@ -27,16 +29,16 @@ layout: archive {% assign entries_layout = page.entries_layout | default: 'list' %} {% for i in (1..tags_max) reversed %} - {% for tag in site.tags %} - {% if tag[1].size == i %} -
    -

    {{ tag[0] }}

    + {% for tag in collections.tags %} + {% if collections[tag].size == i %} +
    +

    {{ tag }}

    - {% for post in tag.last %} - {% include archive-single.html type=entries_layout %} + {% for post in collections[tag] %} + {% include archive-single.html type=entries_layout, aPost=post %} {% endfor %}
    - {{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} ↑ + {{ ui-text[site.locale].back_to_top | default: 'Back to Top' }} ↑
    {% endif %} {% endfor %} diff --git a/src/_includes/masthead.html b/src/_includes/masthead.html index 0c66aa6..e787577 100644 --- a/src/_includes/masthead.html +++ b/src/_includes/masthead.html @@ -12,7 +12,7 @@ {% if site.subtitle %}{{ site.subtitle }}{% endif %} {% if site.search == true %} {% endif %} diff --git a/src/_includes/nav_list.liquid b/src/_includes/nav_list.liquid index a035a5b..21781e4 100644 --- a/src/_includes/nav_list.liquid +++ b/src/_includes/nav_list.liquid @@ -3,7 +3,7 @@ diff --git a/src/_includes/post_pagination.html b/src/_includes/post_pagination.html index a93c627..5cc4207 100644 --- a/src/_includes/post_pagination.html +++ b/src/_includes/post_pagination.html @@ -1,14 +1,15 @@ -{% if page.previous or page.next %} + +{% if include.siblings.prev or include.siblings.next %} {% endif %} \ No newline at end of file diff --git a/src/_includes/search/algolia-search-scripts.html b/src/_includes/search/algolia-search-scripts.html index 2728d29..b6a02e6 100644 --- a/src/_includes/search/algolia-search-scripts.html +++ b/src/_includes/search/algolia-search-scripts.html @@ -37,7 +37,7 @@ search.addWidget( instantsearch.widgets.searchBox({ container: '.search-searchbar', {% unless site.algolia.powered_by == false %}poweredBy: true,{% endunless %} - placeholder: '{{ site.data.ui-text[site.locale].search_placeholder_text | default: "Enter your search term..." }}' + placeholder: '{{ ui-text[site.locale].search_placeholder_text | default: "Enter your search term..." }}' }) ); search.addWidget( @@ -45,7 +45,7 @@ search.addWidget( container: '.search-hits', templates: { item: hitTemplate, - empty: '{{ site.data.ui-text[site.locale].search_algolia_no_results | default: "No results" }}', + empty: '{{ ui-text[site.locale].search_algolia_no_results | default: "No results" }}', } }) ); diff --git a/src/_includes/search/search_form.html b/src/_includes/search/search_form.html index c346379..2416a75 100644 --- a/src/_includes/search/search_form.html +++ b/src/_includes/search/search_form.html @@ -4,17 +4,17 @@ {%- when "lunr" -%}
    - +
    {%- when "google" -%}
    - +
    diff --git a/src/_includes/seo.html b/src/_includes/seo.html index c9d01e9..315d01c 100644 --- a/src/_includes/seo.html +++ b/src/_includes/seo.html @@ -6,8 +6,8 @@ {% assign title_separator = site.title_separator | default: '-' | replace: '|', '|' %} -{%- if page.title -%} - {%- assign seo_title = page.title | append: " " | append: title_separator | append: " " | append: site.title -%} +{%- if title -%} + {%- assign seo_title = title | append: " " | append: title_separator | append: " " | append: site.title -%} {%- endif -%} {%- if seo_title -%} @@ -20,34 +20,34 @@ {%- assign canonical_url = page.url | replace: "index.html", "" | absolute_url %} {% endif %} -{%- assign seo_description = page.description | default: page.excerpt | default: site.description -%} +{%- assign seo_description = description | default: excerpt | default: site.description -%} {%- if seo_description -%} {%- assign seo_description = seo_description | markdownify | strip_html | newline_to_br | strip_newlines | replace: '
    ', ' ' | escape_once | strip -%} {%- endif -%} -{%- assign author = page.author | default: page.authors[0] | default: site.author -%} -{%- assign author = site.data.authors[author] | default: author -%} +{%- assign author = author | default: authors[0] | default: site.author -%} +{%- assign author = authors[author] | default: author -%} {%- if author.twitter -%} {%- assign author_twitter = author.twitter | replace: "@", "" -%} {%- endif -%} -{%- assign page_large_image = page.header.og_image | default: page.header.overlay_image | default: page.header.image | absolute_url -%} +{%- assign page_large_image = header.og_image | default: header.overlay_image | default: header.image | absolute_url -%} {%- assign page_large_image = page_large_image | escape -%} -{%- assign page_teaser_image = page.header.teaser | default: site.og_image | absolute_url -%} +{%- assign page_teaser_image = header.teaser | default: site.og_image | absolute_url -%} {%- assign page_teaser_image = page_teaser_image | escape -%} {%- assign site_og_image = site.og_image | absolute_url -%} {%- assign site_og_image = site_og_image | escape -%} -{%- if page.date -%} +{%- if date -%} {%- assign og_type = "article" -%} {%- else -%} {%- assign og_type = "website" -%} {%- endif -%} -{{ seo_title | default: site.title }}{% if paginator %}{% unless paginator.page == 1 %} {{ title_separator }} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}{% endif %} +{{ seo_title | default: site.title }}{% if paginator %}{% unless paginator.page == 1 %} {{ title_separator }} {{ ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}{% endif %} {% if author.name %} @@ -60,7 +60,7 @@ - + {% if seo_description %} @@ -75,7 +75,7 @@ {% if site.twitter.username %} - + @@ -94,12 +94,12 @@ {% endif %} {% endif %} -{% if page.date %} - +{% if date %} + {% endif %} {% if og_type == "article" and page.last_modified_at %} - + {% endif %} {% if site.facebook %} diff --git a/src/_includes/skip-links.html b/src/_includes/skip-links.html index c2d5223..5786317 100644 --- a/src/_includes/skip-links.html +++ b/src/_includes/skip-links.html @@ -1,7 +1,7 @@ diff --git a/src/_includes/social-share.html b/src/_includes/social-share.html index 0b37798..6fe7710 100644 --- a/src/_includes/social-share.html +++ b/src/_includes/social-share.html @@ -1,11 +1,11 @@ diff --git a/src/_includes/tag-list.html b/src/_includes/tag-list.html index b16eca2..a6c0368 100644 --- a/src/_includes/tag-list.html +++ b/src/_includes/tag-list.html @@ -6,10 +6,10 @@ {% endcase %} {% if site.tag_archive.path %} - {% assign tags_sorted = page.tags | sort_natural %} + {% assign tags_sorted = tags | sort_natural %}

    - {{ site.data.ui-text[site.locale].tags_label | default: "Tags:" }} + {{ ui-text[site.locale].tags_label | default: "Tags:" }} {% for tag_word in tags_sorted %} {% unless forloop.last %}, {% endunless %} diff --git a/src/_includes/toc.liquid b/src/_includes/toc.liquid index 6423ccd..80fa323 100644 --- a/src/_includes/toc.liquid +++ b/src/_includes/toc.liquid @@ -1,6 +1,6 @@