tankywoo / simiki

Simiki is a simple wiki framework, written in Python.
simiki.org
MIT License
1.15k stars 155 forks source link

两层目录的路径少了一层,导致404 #101

Closed thqy39 closed 7 years ago

thqy39 commented 7 years ago

2017-07 : Week01 / Week02 / Week03 / Week04 2017-08 : Week01 / Week02 / Week03 / Week03

这些Week都找不到

2017-08 : 
Week01 /  Week02 /  Week03 /  Week04
thqy39 commented 7 years ago

感谢作者的开源,东西很喜欢,希望这个简单的功能可以被解决

thqy39 commented 7 years ago

http://thqy39.coding.me/WIKI/ 错误就是里面那个123:3test 无法访问 我看了一下html 少拼了 123这个文件夹的名字,或者output的时候把3test拿出来,而不是放在123中

thqy39 commented 7 years ago

通过 集合 解决了,没事了 我关掉啦

tankywoo commented 7 years ago

抱歉前两天有事没看Github。

因为考虑个人使用和主题开发的复杂性,所以默认主题不支持多级目录结构,集合是更深一级的替代品, 👍

谢谢支持。

gitGksgk commented 6 years ago

简单,主题里的index.html里,找到 {%- for coll_page in coll.pages %} <a href="./{{ category.name }}/{{ coll_page.name }}.html">{{ coll_page.title }}</a> {%- if 'description' in coll_page %} &nbsp;{{ coll_page.description }} {% endif %} {%- if not loop.last %}&nbsp;&#47;&nbsp;{% endif %} {%- endfor %} 改为 {%- for coll_page in coll.pages %} <a href="./{{ category.name }}/{{coll.name}}/{{ coll_page.name }}.html">{{ coll_page.title }}</a> {%- if 'description' in coll_page %} &nbsp;{{ coll_page.description }} {% endif %} {%- if not loop.last %}&nbsp;&#47;&nbsp;{% endif %} {%- endfor %} 即可