diff --git a/_includes/head.html b/_includes/head.html index b0bc90b..c6e2e17 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -6,17 +6,18 @@ - {%- if metaTitle %} {{ metaTitle | escape }} {%- elsif name %} {{ name | - escape }}, Prestwich {%- elsif title %} {{ title | escape }}, Prestwich {%- - else %} {{ site.title | escape }} {%- endif %} + {%- if metaTitle -%} + {{ metaTitle | escape }} + {%- elsif name -%} + {{ name | escape }}, Prestwich + {%- elsif title -%} + {{ title | escape }}, Prestwich + {%- else -%} + {{ site.title | escape }} + {%- endif -%} - - + + diff --git a/_includes/header.html b/_includes/header.html index 88670fb..3a30fcc 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -9,22 +9,25 @@ - + \ No newline at end of file diff --git a/_includes/layouts/place.liquid b/_includes/layouts/place.liquid index 29d79e4..e5d5f49 100644 --- a/_includes/layouts/place.liquid +++ b/_includes/layouts/place.liquid @@ -20,16 +20,16 @@ layout: default
{% assign place_images = collections.place_images | reverse %} {% for image in place_images %} - {% capture absolute_url %}/{{image}}{% endcapture %} - {% assign folder_size = absolute_url.size | minus: 6 %} - {% capture absolute_folder %}{{ absolute_url | slice: 0, folder_size }}{% endcapture %} - {% capture filename %}{{ absolute_url | slice: 1, 999 }}{% endcapture %} - {% if absolute_folder == page.url %} + {%- capture absolute_url %}/{{image}}{% endcapture -%} + {%- assign folder_size = absolute_url.size | minus: 6 -%} + {%- capture absolute_folder %}{{ absolute_url | slice: 0, folder_size }}{% endcapture -%} + {%- capture filename %}{{ absolute_url | slice: 1, 999 }}{% endcapture -%} + {%- if absolute_folder == page.url -%} - {% image filename, name, "150px" %} + {%- image filename, name, "150px" %} - {% endif %} - {% endfor %} + {%- endif -%} + {%- endfor -%}