Skip to content

Latest commit

 

History

History
46 lines (43 loc) · 1.5 KB

gallery.md

File metadata and controls

46 lines (43 loc) · 1.5 KB
layout title permalink navbar_active order tags
page
Gallery
/gallery/
Gallery
10
picture gallery
photos
    {% for post in site.galleries %} {% if post.categories contains "gallery" %}
  • {{ post.title }}

    {{ post.pub-date }}, {{ post.pub-year }}
    {% if post.galleria %}
                    <script src="//code.jquery.com/jquery.min.js"></script>
                    <script>
                        $.getJSON('/assets/galleria/{{ post.galleria }}', function(data) {
                            var up = document.getElementById('{{ post.url }}');
                            up.innerHTML = '<img src="' + data[0]['image'] + '"widht="100" height="100" align="right" />';
                        });
                    </script>
              {% endif %}
              {{ post.description | strip_html | truncatewords:50 }}
              {% capture readmorelink %}
                {{ post.url | prepend: site.baseurl }}
              {% endcapture %}
              {% include readmore.html href_link= readmorelink %}
          </li>
        {% endif %}
      {% endfor %}
      </ul>
    </div>