Skip to content

Commit

Permalink
release 2.1 and hide categories on front page
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklas Buschmann committed Jan 27, 2020
1 parent 55a2390 commit 1c3daec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Just fork the repo and adjust the `_config.yml` to use with [Github Pages](https
You can use this theme with the `jekyll-remote-theme` plugin. Just create an empty repo, copy over the `index.html` file and add this to your `_config.yml`:

```yaml
remote_theme: niklasbuschmann/contrast@v2.0
remote_theme: niklasbuschmann/contrast@v2.1

plugins:
- jekyll-remote-theme
Expand Down
4 changes: 3 additions & 1 deletion _includes/post.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<article>
<header>
{% if include.post.categories.size > 0 %}<span class="categories">{{ include.post.categories | join: ", " | upcase }}</span>{% endif %}
{% if include.post.categories.size > 0 and include.preview != true %}
<span class="categories">{{ include.post.categories | join: ", " | upcase }}</span>
{% endif %}
<h1><a href="{{ include.post.url | relative_url }}">{{ include.post.title }}</a></h1>
{%- assign date_format = site.date_format | default: "%B %d, %Y" -%}
<time datetime="{{ include.post.date | date_to_xmlschema }}">{{ include.post.date | date: date_format }}</time>
Expand Down

0 comments on commit 1c3daec

Please sign in to comment.