【发布时间】:2015-11-22 23:37:31
【问题描述】:
我有一个结构有点像这样的页面
---
layout: contents
title: contents
description: Contents of the posts.
permalink: contents/
---
<ul class="posts">
{% for post in site.posts %}
{% if post.categories != "tips" %}
<h2><a class="post-heading" href="{{ post.url }}">{{ post.title }}</a></h2>
<p> {{ post.description }} </p>
<p class="date">{{ post.date | date_to_string }}</p>
<hr class="hr-color"></hr>
{% endif %}
{% endfor %}
</ul >
目前该页面的URL是根据permalinks(BASE_URL/contents)设置的。我希望当用户单击上一页中的选项(Android、Java、Web 是选项)时,我会将此页面的 URL 设为 BASE_URL/android 或 BASE_URL/Java 并显示该类别的内容。
这可以使用 jekyll 吗?
【问题讨论】:
标签: web jekyll liquid github-pages static-site