【发布时间】:2018-08-13 13:58:22
【问题描述】:
我正在使用表达式
{% 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 %}
用于布局,并将不需要的 style.css 视为 Jekyll 页面
我尝试了GitHub discussion "/css/main.css considered as a Jekyll:Page? #3151" 的不同技巧,但没有帮助。有时我会删除所有样式。
请明确如何让样式正常工作,但将其排除在生成为 Jekyll 页面的链接之外。
【问题讨论】:
-
尝试将带有 style.css 的
css/文件夹移动到public/文件夹中。
标签: css ruby jekyll liquid github-pages