-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added extra head-note partial for notes
- Loading branch information
Showing
5 changed files
with
101 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{{ define "head-note" }} | ||
<!-- If the template for a particular url does not exist(posts.html), setting it to the specific page template data --> | ||
{{ $PageData := index .DeepDataMerge.Notes .PageURL }} | ||
{{if eq $PageData nil }} | ||
{{ $PageData = .TemplateData }} | ||
{{end}} | ||
|
||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>{{$PageData.Frontmatter.Title}}</title> | ||
<link rel="preload stylesheet" href="{{.DeepDataMerge.LayoutConfig.ThemeURL}}" /> | ||
|
||
<!-- External Stylesheets and Plugins --> | ||
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/highlight.min.js"></script> | ||
<script src="https://unpkg.com/highlightjs-copy/dist/highlightjs-copy.min.js"></script> | ||
<link rel="stylesheet" href="https://unpkg.com/highlightjs-copy/dist/highlightjs-copy.min.css" /> | ||
<link rel="alternate" type="application/atom+xml" title="feed" href="/feed.xml" /> | ||
|
||
|
||
<!-- Scripts filled in from plugins --> | ||
{{ if $PageData.LiveReload }} | ||
<script> | ||
const eventSource = new EventSource('http://localhost:8000/events'); | ||
eventSource.onmessage = function (event) { | ||
location.reload() | ||
}; | ||
</script> | ||
{{ end }} | ||
|
||
|
||
{{range $PageData.Frontmatter.JSFiles}} | ||
<script src="/script/{{.}}" defer></script> | ||
{{end}} {{range .DeepDataMerge.LayoutConfig.SiteScripts }} | ||
<script src="/script/{{.}}" defer></script> | ||
{{end}} | ||
|
||
|
||
<meta property="og:type" content="website" /> | ||
<meta property="og:title" content="{{ $PageData.Frontmatter.Title }}" /> | ||
<meta property="og:description" content="{{ $PageData.Frontmatter.Description }}" /> | ||
<meta property="og:image" content="{{ $PageData.Frontmatter.PreviewImage }}" /> | ||
|
||
<meta name="description" content="{{ $PageData.Frontmatter.Description }}"> | ||
|
||
<script defer> | ||
hljs.highlightAll(); | ||
hljs.addPlugin(new CopyButtonPlugin()); | ||
</script> | ||
</head> | ||
{{end}} | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters