diff options
Diffstat (limited to 'templates/page')
| -rw-r--r-- | templates/page/base.gohtml | 23 | ||||
| -rw-r--r-- | templates/page/index.gohtml | 12 | ||||
| -rw-r--r-- | templates/page/opengraph.gohtml | 18 |
3 files changed, 12 insertions, 41 deletions
diff --git a/templates/page/base.gohtml b/templates/page/base.gohtml deleted file mode 100644 index 2de2ba4..0000000 --- a/templates/page/base.gohtml +++ /dev/null @@ -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}}
\ No newline at end of file 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 diff --git a/templates/page/opengraph.gohtml b/templates/page/opengraph.gohtml deleted file mode 100644 index f51d561..0000000 --- a/templates/page/opengraph.gohtml +++ /dev/null @@ -1,18 +0,0 @@ -{{define "opengraph-base"}} - <meta property="description" content="{{.Description}}" /> - <!-- Open Graph --> - <meta property="og:title" content="{{.Title}}" /> - <meta property="og:type" content="website" /> - <meta property="og:url" content="https://{{.Domain}}{{.URL}}" /> - <meta property="og:image" content="https://{{.Domain}}{{.Image}}" /> - <meta property="og:description" content="{{.Description}}" /> - <meta property="og:local" content="fr_FR" /> - <meta property="og:site_name" content="Architects Land" /> - <!-- Twitter --> - <meta name="twitter:card" content="summary_large_image" /> - <meta property="twitter:domain" content="{{.Domain}}" /> - <meta property="twitter:url" content="https://{{.Domain}}{{.URL}}/" /> - <meta name="twitter:title" content="{{.Title}}" /> - <meta name="twitter:description" content="{{.Description}}" /> - <meta name="twitter:image" content="https://{{.Domain}}{{.Image}}" /> -{{end}} |
