Merge branch 'bugfix' into 'master'

Fix bug causing non-HTML pages to be displayed in tiles.

Closes #22

See merge request andrewbanchich/forty-jekyll-theme!6
This commit is contained in:
Andrew Banchich 2020-01-13 01:36:21 +00:00
commit da9962859b
3 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,5 +1,6 @@
_site/
.sass-cache/
.jekyll-metadata
.jekyll-cache
Gemfile.lock
*.gem

View file

@ -17,7 +17,7 @@
<li><a href="{{ "" | absolute_url }}/">{{ page.title }}</a></li>
{% endif %}
{% endfor %}
{% for page in site.pages %}
{% for page in site.html_pages %}
{% if page.layout != "home" and page.nav-menu == true %}
<li><a href="{{ page.url | absolute_url }}">{{ page.title }}</a></li>
{% endif %}

View file

@ -12,7 +12,7 @@
</article>
{% endif %}
{% endfor %}
{% for page in site.pages limit:site.tiles-count %}
{% for page in site.html_pages limit:site.tiles-count %}
{% if site.tiles-source == 'pages' and page.show_tile != false %}
<article>
<span class="image">