_layouts/feature.html in appscms-tools-theme-1.8.0 vs _layouts/feature.html in appscms-tools-theme-1.8.2
- old
+ new
@@ -1,11 +1,9 @@
{% assign file = page.fileName %}
{% assign lang = page.lang %}
{% assign folder = page.folderName %}
{% assign featureData= site.data[folder][lang][file] %}
-
-
<!DOCTYPE html>
<html lang="{{page.lang}}">
{% include head/index.html %}
<body>
@@ -180,16 +178,27 @@
{%- if featureData.compare_formats -%}
<div class="container file-detail-table ">
{%- include fileformat/comparisonfiles.html -%}
</div>
{%- endif -%}
- {%- if page.categories.size> 0 or page.tags.size>0-%}
+ {%- assign langen = "en" -%}
+ {%- if site.data[folder][langen][file].categories -%}
+ {% assign categories= site.data[folder][langen][file].categories %}
+ {%- else -%}
+ {% assign categories= page.categories %}
+ {%- endif -%}
+ {%- if site.data[folder][langen][file].tags -%}
+ {% assign tags= site.data[folder][langen][file].tags %}
+ {%- else -%}
+ {% assign tags= page.tags %}
+ {%- endif -%}
+ {%- if categories.size> 0 or tags.size>0-%}
{%- include section/related_categories_post.html -%}
{%- else -%}
{%- include section/recent_posts.html -%}
{% endif %}
{%- if site.customblogdata -%}
- {%- if page.categories.size> 0 or page.tags.size>0-%}
+ {%- if categories.size> 0 or tags.size>0-%}
{%- include customblog/relatedposts.html -%}
{%- else -%}
{%- include customblog/recentposts.html -%}
{% endif %}
{%- endif -%}
\ No newline at end of file