Skip to content

Instantly share code, notes, and snippets.

@susatadahiro
Last active December 19, 2015 01:08
Show Gist options
  • Save susatadahiro/5873376 to your computer and use it in GitHub Desktop.
Save susatadahiro/5873376 to your computer and use it in GitHub Desktop.
{% for item in tables["ニュース"].rows %}
<article class="post">
<div class="post_header">
<h3 class="post_title"><a href="/news/-/detail/=/news_id={{ item["id"] }}/">{{ item["タイトル"] }}</a></h3>
<div class="post_sub"><i class="icon-time"></i> {{ item["published_at"] | date: "%Y/%m/%d" }} ({{ item["published_at"] | date: "%Y/%m/%d" | youbi }})</div>
</div>
<div class="post_content">
{{ item["本文"] | strip_html | truncate: 100 }}
<a href="/news/-/detail/=/news_id={{ item["id"] }}/" class="btn btn-primary">続きを読む</a> </div>
</article>
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment