8 lines
266 B
HTML
8 lines
266 B
HTML
{{ $file := .Get 0 }}
|
|
{{ $full_path := delimit (slice .Page.RelPermalink $file) "" }}
|
|
{{ if strings.HasSuffix $file ".md" }}
|
|
{{ $full_path | readFile | markdownify }}
|
|
{{ else if strings.HasSuffix $file ".html" }}
|
|
{{ $full_path | readFile | safeHTML }}
|
|
{{ end }}
|