Skip to content

Commit 0bfe67a

Browse files
Add md files next to html files
1 parent 4b7ea57 commit 0bfe67a

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

config/_default/config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ timeout: 300000
3333
outputFormats:
3434
rss:
3535
baseName: rss
36+
llmmd:
37+
mediaType: "text/markdown"
38+
isPlainText: true
39+
notAlternative: false
40+
permalinkable: false
41+
path: ""
42+
rel: "llmmd"
43+
suffix: ".md"
3644

3745
# We set the outputs explicitly to just "HTML" as otherwise they default to both
3846
# "HTML" and "RSS", and we only want to generate RSS for the blog section -- not
@@ -45,6 +53,10 @@ outputs:
4553
- JSON
4654
section:
4755
- HTML
56+
- llmmd
57+
page:
58+
- HTML
59+
- llmmd
4860

4961
taxonomies:
5062
tag: tags

layouts/_default/list.llmmd.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# {{ .Title }}
2+
3+
{{ with .Params.meta_desc }}
4+
> {{ . }}
5+
{{ end }}
6+
7+
{{ range .Params.sections }}
8+
## {{ .heading }}
9+
10+
{{ with .description_md }}
11+
{{ . | markdownify }}
12+
{{ end }}
13+
14+
{{- if .cards }}
15+
{{ range .cards }}
16+
### {{ .heading }}
17+
18+
{{ with .description }}
19+
{{ . }}
20+
{{ end }}
21+
22+
{{ with .link }}
23+
[Read more]({{ . | relURL }}index.md)
24+
{{ end }}
25+
26+
{{ end }}
27+
{{ end }}
28+
29+
{{- end }}
30+
31+
{{- if .Content }}
32+
{{ .Content }}
33+
{{- end }}

layouts/_default/single.llmmd.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# {{ .Title }}
2+
3+
{{- .RawContent -}}

0 commit comments

Comments
 (0)