fix npprel for zinking
·
1 min read
·
edit
File npprel.py in setup/npprel folder has additional lines as follow.
if rel_path == '.md':
rel_path = '_index.md'
folder_path = 'content/'
elif rel_path == 'zinking.md':
rel_path = '_index.md'
folder_path = 'content/zinking/'
File npprel.html in layouts/shortcodes/card folder has additional lines as follow.
{{ if eq $cleanTitle "" }}
{{ $cleanTitle := index $parts 1 }}
<div class="title">{{ $cleanTitle }}</div>
{{ else }}
<div class="title">{{ $cleanTitle }}</div>
{{ end }}
The card now can call npprel:// protocol to open file _index.md in content/folder/ folder, where folder can be any subfolder name.