Code for drawings.hcoder.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.1KB

  1. ---
  2. title: Drawings tagged '%TAG%'
  3. active_menu_item: index
  4. ---
  5. <h2>Drawings tagged '%TAG%'</h2>
  6. <% picture_info_for_tag('%TAG%').each do |picture| %>
  7. <article class="post tag-photo tag-music post__wrapper" data-cols="4">
  8. <div class="post__wrapper_helper post__wrapper_helper--notloaded el__transition">
  9. <p><img src="/content/<%= picture[:name] %>" alt="featured-image" /></p>
  10. <div data-lightbox-label-for="<%= picture[:id] %>" class="post__preview el__transition">
  11. <p class="post__excerpt"><a id="<%= picture[:id] %>" data-lightbox="drawings" data-title="<%=h picture[:description] %>" href="/content/<%=h picture[:name] %>" class="post__link post__title_link"><span><%= picture[:description] %></span></a></p>
  12. </div>
  13. <footer class="post__meta">
  14. <ul class="post__tags">
  15. <% picture[:tags].each_with_index do |tag, i| %>
  16. <li class="post__tag"><a href="/tag/<%= tag %>/" class="post__link post__tag_link"><%= tag %></a><% if i != picture[:tags].size - 1 %>, <% end %></li>
  17. <% end %>
  18. </ul>
  19. </footer>
  20. </div>
  21. </article>
  22. <% end %>