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
|
@ -10,13 +10,7 @@
|
|||
{{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>
|
12
templates/page/index.gohtml
Normal file
12
templates/page/index.gohtml
Normal file
|
@ -0,0 +1,12 @@
|
|||
{{define "body"}}
|
||||
<main>
|
||||
<div class="presentation">
|
||||
<figure>
|
||||
<img src="{{ getStaticPath .Person.Image }}" alt="{{ .Person.Name }}'s image">
|
||||
</figure>
|
||||
<h2>{{ .Person.Name }}</h2>
|
||||
<p>{{ .Person.Pronouns }}</p>
|
||||
</div>
|
||||
<p class="description">{{ .Description }}</p>
|
||||
</main>
|
||||
{{end}}
|
Loading…
Add table
Add a link
Reference in a new issue