Skip to content

Commit

Permalink
add home kind, remove type from stdlib frontmatter
Browse files Browse the repository at this point in the history
  • Loading branch information
NotLe0n committed Dec 11, 2024
1 parent 8dae7b6 commit 5a768e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gen/stdlib-generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func writeMD(inputFile string, outputFile *os.File, publicDecls []ast.Declaratio
}

fileName := strings.Replace(filepath.Base(outputFile.Name()), ".md", "", 1)
fmt.Fprintf(outputFile, "+++\ntitle = \"%s\"\nweight = 1\ntype = \"article\"\n+++\n", fileName)
fmt.Fprintf(outputFile, "+++\ntitle = \"%s\"\nweight = 1\n+++\n", fileName)
if hasStructs {
fmt.Fprintf(outputFile, "# Duden/%s %s\n", fileName, nameMap[lang]["comb"])
fmt.Fprintln(outputFile, structBldr)
Expand Down
2 changes: 1 addition & 1 deletion hugo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
baseURL = 'http://doku.ddp.im'
disablePathToLower = true
disableKinds = ['taxonomy', 'term', 'home']
disableKinds = ['taxonomy', 'term']
disableHugoGeneratorInject = true
defaultContentLanguage = 'de'

Expand Down
3 changes: 3 additions & 0 deletions layouts/_default/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{- define "main" -}}
{{- partial "artikel.html" . -}}
{{- end -}}

0 comments on commit 5a768e8

Please sign in to comment.