summaryrefslogtreecommitdiff
path: root/1 projects/Wedding/Zola.md
blob: 1059a9b5a94bfb17297648fc057989f83edcd1f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#cms #zola #static-site #wedding


---
# Pages
Definition: any MD file in content dir except `_index.md`.
if `index.md` -> page == container dirname, `_index.md` = section
prefix filename with `Y-m-d_ or -`  the prefix date would be stripped.

Why would we create a page using a directory and an index.md, rather than just an pagename.md?
It allows `asset colocation` which enables relative referencing.

output paths defined by either: [[slug]] frontmatter key or pagename.

# Shortcodes
templates/shortcodes/shortcode.html: can be accessed via Markdown {{ shortcode() }}
useful for escaping the bounds of Markdown and creating more complex stuff that's reusable throughout pages.