Reputation: 73
I am using expression
{% assign mypages = site.pages | sort: "order" %} {% for page in
mypages %}
{% unless page.exclude %}
<a href="{{page.url|absolute_url}}"> {{ page.shortname }} <span
class="rate">{% include indexmod.html %}</a></span> <span class="rex">
| </span>
{% endunless %}
{% endfor %}
for layout, and see unwanted style.css considered as a Jekyll Page
I have try different tricks from GitHub discussion "/css/main.css considered as a Jekyll:Page? #3151", but it does not help. Sometimes I cutting away all styles.
Please, clear how to let the styles to work properly, but exclude it from generating as link to a Jekyll Page.
Upvotes: 1
Views: 171
Reputation: 2871
You should use site.html_pages
instead of site.pages
, as it will exclude all pages that don't output with the .html
extension (i.e. style.css
). You'll find both listed here:
https://jekyllrb.com/docs/variables/#site-variables
Upvotes: 2