feat(data): parse json and render simple thing
This commit is contained in:
parent
a50d678a67
commit
d25e04d8c7
7 changed files with 62 additions and 17 deletions
|
@ -1,23 +0,0 @@
|
|||
{{define "base"}}
|
||||
<!doctype html>
|
||||
<html lang="fr" prefix="og: https://ogp.me/ns#">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="shortcut icon" href="{{getStaticPath "logo.png"}}" type="image/png" />
|
||||
<title>{{ .Title }}</title>
|
||||
<link rel="stylesheet" href="{{getAssetPath "styles.css"}}" />
|
||||
{{template "opengraph-base" .SEO}}
|
||||
</head>
|
||||
<body>
|
||||
{{if .Data.HasNav}}
|
||||
{{template "navbar" .}}
|
||||
{{end}}
|
||||
{{template "body" .}}
|
||||
{{if .Data.HasFooter}}
|
||||
{{template "footer" .}}
|
||||
{{end}}
|
||||
<script type="module" src="{{getAssetPath "index.js"}}" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
Loading…
Add table
Add a link
Reference in a new issue