Skip to content

Commit

Permalink
fix: removed extra partial for head.html
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaklog committed Apr 16, 2024
1 parent b1b8e44 commit 293aed7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 57 deletions.
2 changes: 1 addition & 1 deletion site/layout/note.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ define "note"}}
{{$PageData := index .DeepDataMerge.Notes .PageURL}}
{{ template "head-note" .}}
{{ template "head" .}}

<body>

Expand Down
56 changes: 0 additions & 56 deletions site/layout/partials/head-note.html

This file was deleted.

3 changes: 3 additions & 0 deletions site/layout/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<!-- If the template for a particular url does not exist(posts.html), setting it to the specific page template data -->
{{ $PageData := index .DeepDataMerge.Templates .PageURL }}
{{if eq $PageData nil }}
{{ $PageData := index .DeepDataMerge.Notes .PageURL }}
{{end}}
{{if eq $PageData nil }}
{{ $PageData = .TemplateData }}
{{end}}

Expand Down

0 comments on commit 293aed7

Please sign in to comment.