Extend gallery functionality, general cleanup

This commit is contained in:
2015-12-20 13:56:21 +00:00
parent 89f2ca8f31
commit 234fe32bb8
22 changed files with 81 additions and 99 deletions

4
_includes/caption.html Normal file
View File

@@ -0,0 +1,4 @@
<div style="width: {{ include.width }}px;" class="caption">
<img src="{{ include.image }}" {% if include.image-width %}width="{{ include.image-width }}" {% endif %}/>
<p>Een fraaie fles voor een bijzondere whisky.</p>
</div>

View File

@@ -2,8 +2,6 @@
<footer>
This site will be open-source.
Unless noted, software code is licensed under <a href="http://opensource.org/licenses/GPL-3.0">GPL License</a> and all other content under <a href="http://creativecommons.org/licenses/by/3.0/">CC-BY</a>.
</footer>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<script>(function(){var po=document.createElement('script');po.type='text/javascript';po.async=true;po.src='https://apis.google.com/js/plusone.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(po,s);})();</script>
</footer>
</body>
</html>

4
_includes/gallery.html Normal file
View File

@@ -0,0 +1,4 @@
{% capture path %}gallery/{{ include.gallery }}{% endcapture %}
<div style="line-height:0; padding:4px 0 0 1px;">
{% loopdir path:path match:"*.md" sort:"ordering" %}<a href="/{{ site.baseurl }}/{{ item.fullname }}.html" style="display: inline-block; margin: 3px; text-decoration: none;"><img alt="Photo: {{ item.title }}" height="48" src="{{ site.asset_prefix }}/{{ item.fullname }}~96x96.jpg" title="{{ item.title }}" width="48" style="padding: 1px;" /></a>{% endloopdir %}
</div>

View File

@@ -1,4 +1,4 @@
<div class="list-gallery">
{% capture path %}gallery/{{ include.gallery }}{% endcapture %}
{% loopdir path:path match:"*.md" sort:"ordering" %}<span itemprop="image" itemscope itemtype="http://schema.org/Photograph"><a href="/{{ item.fullname }}.html" itemprop="url"><img alt="Photo: {{ item.title }}" height="200" src="{{ site.asset_prefix }}/{{ item.fullname }}~200x200.jpg" title="{{ item.title }}" width="200" /></a></span>{% endloopdir %}
{% loopdir path:path match:"*.md" sort:"ordering" %}<span itemprop="image" itemscope itemtype="http://schema.org/Photograph"><a href="/{{ site.baseurl }}/{{ item.fullname }}.html" itemprop="url"><img alt="Photo: {{ item.title }}" height="200" src="{{ site.asset_prefix }}/{{ item.fullname }}~200x200.jpg" title="{{ item.title }}" width="200" /></a></span>{% endloopdir %}
</div>

View File

@@ -37,9 +37,6 @@
</head>
<body class="layout-{{ page.layout }}{% if page.body_class %} {{ page.body_class }}{% endif %}">
<header>
<!--div class="timeline">
<a href="/"><img alt="" src="" /></a>
</div-->
<ul class="screen-only">
{% if 'dev' == site.environment %}
<li><a href="/{{ site.baseurl }}/private/">private</a></li>