diff options
| author | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-11-09 21:52:13 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-11-09 21:52:13 +0100 |
| commit | d25e04d8c736e5ee0a4bdc2531a6047dccc81013 (patch) | |
| tree | e12332d91cdeba5ffb4a99d70e045b24afa661bf /templates | |
| parent | a50d678a6757212f6f7fdcb0c35641fb18874872 (diff) | |
feat(data): parse json and render simple thing
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base/base.gohtml (renamed from templates/page/base.gohtml) | 6 | ||||
| -rw-r--r-- | templates/base/opengraph.gohtml (renamed from templates/page/opengraph.gohtml) | 0 | ||||
| -rw-r--r-- | templates/page/index.gohtml | 12 |
3 files changed, 12 insertions, 6 deletions
diff --git a/templates/page/base.gohtml b/templates/base/base.gohtml index 2de2ba4..5859805 100644 --- a/templates/page/base.gohtml +++ b/templates/base/base.gohtml @@ -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> diff --git a/templates/page/opengraph.gohtml b/templates/base/opengraph.gohtml index f51d561..f51d561 100644 --- a/templates/page/opengraph.gohtml +++ b/templates/base/opengraph.gohtml diff --git a/templates/page/index.gohtml b/templates/page/index.gohtml new file mode 100644 index 0000000..dbc228a --- /dev/null +++ b/templates/page/index.gohtml @@ -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}}
\ No newline at end of file |
