Improve generation of gallery lists with listing of mentioning posts, start to apply

This commit is contained in:
2016-01-19 22:45:02 +00:00
parent a7f1170458
commit 0d0edee3a7
25 changed files with 94 additions and 162 deletions

View File

@@ -1,6 +1,8 @@
---
layout: default
---
{% assign url = page.url | split:'/' %}
{% assign gallery = url[2] %}
<section itemscope itemtype="http://schema.org/ImageGallery">
<header>
<div class="timeline"></div>
@@ -9,7 +11,32 @@ layout: default
</h1>
</header>
<section class="post-content">
{{ content }}
<p>{{ content }}</p>
{% if false != page.slideshow %}
<a href="slideshow.html">[ slideshow ]</a>
{% endif %}
{% if false != page.slideshow and false != page.map %}
&nbsp;|&nbsp;
{% endif %}
{% if false != page.map %}
<a href="map.html">[ map ]</a>
{% endif %}
{% include gallery_list.html gallery=gallery %}
{% capture list %}
{% for post in site.posts %}
{% if post.content contains gallery %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endif %}
{% endfor %}
{% endcapture %}
{% if list %}
<p>{{ site.mentioned_in }}</p>
<ul>
{{ list }}
</ul>
{% endif %}
</section>
{% if false != page.comments %}
{% include disqus.html %}