Skip to content

Instantly share code, notes, and snippets.

@nobuhito
Last active December 27, 2015 05:59
Show Gist options
  • Select an option

  • Save nobuhito/7278881 to your computer and use it in GitHub Desktop.

Select an option

Save nobuhito/7278881 to your computer and use it in GitHub Desktop.
Jekyllでまとめファイルを作る
{% for p in extraction reversed %}
{% if p.title contains include.param %}
<h3>
<a href="{{ p.url }}">
{{ p.title }}
</a>
</h3>
<p>
{{ p.content | markdownify | strip_html | strip_newlines | truncate: 256 }}
</p>
{% endif %}
{% endfor %}
{% assign extraction = nil %}
---
layout: page
title: タイトル
---
{% include JB/setup %}
{% assign extraction = site.posts %}
{% include JB/extraction param = page.title %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment