Skip to content

Instantly share code, notes, and snippets.

@manbearwolf
Created July 18, 2017 18:15
Show Gist options
  • Select an option

  • Save manbearwolf/202c7847c6f5a2f6c0abcdb80f9bdcba to your computer and use it in GitHub Desktop.

Select an option

Save manbearwolf/202c7847c6f5a2f6c0abcdb80f9bdcba to your computer and use it in GitHub Desktop.
Lines Used From JekyllWriter (index.html) https://github.com/JekyllWriter/blog/blob/gh-pages/index.html (Between Lines 9-17) (Used in _layouts/home.html Minima Theme)
<span class="post-meta">{% if post.author %}{{ post.author }}{% else %}{{ site.author }}{% endif %} | {{ post.date | date: "%b %-d, %Y" }}</span>
<div class="post-excerpt">{{ post.excerpt }}</div>
<div class="post-meta">{% if post.categories %}Filed under: <a href="{{ "/categories/" | prepend: site.baseurl }}#category-{{ post.categories.first | replace: ' ', '_' }}">{{ post.categories.first }}</a>{% for category in post.categories offset:1 %}, <a href="{{ "/categories/" | prepend: site.baseurl }}#category-{{ category | replace: ' ', '_' }}">{{ category }}</a>{% endfor %}{% endif %}{% if post.tags %}{% if post.categories %} | {% endif %}Tags: <a href="{{ "/tags/" | prepend: site.baseurl }}#tag-{{ post.tags.first | replace: ' ', '_' }}">{{ post.tags.first }}</a>{% for tag in post.tags offset:1 %}, <a href="{{ "/tags/" | prepend: site.baseurl }}#tag-{{ tag | replace: ' ', '_' }}">{{ tag }}</a>{% endfor %}{% endif %}</div>
<div class="read-more"><a href="{{ post.url | prepend: site.baseurl }}">Read more &raquo;</a></div>
@manbearwolf

manbearwolf commented Jul 22, 2017

Copy link
Copy Markdown
Author

or at Jekyll. Use a more <--more--> tag in setup and post.

In Config.yml

excerpt_separator: <!--more-->

Next in post (I think). Instead of space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment