diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2021-10-01 14:32:43 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2021-10-01 14:32:43 +0200 |
commit | 9ccf652c00457e46eaf46fc4cb8f6d0ee582c5ef (patch) | |
tree | b02c0a9a15de80acb3661163d469da41cd6aa8c3 /themes/hugo-whisper-theme/layouts/index.html | |
download | rfid-9ccf652c00457e46eaf46fc4cb8f6d0ee582c5ef.tar.gz rfid-9ccf652c00457e46eaf46fc4cb8f6d0ee582c5ef.zip |
Initial commit
Diffstat (limited to 'themes/hugo-whisper-theme/layouts/index.html')
-rw-r--r-- | themes/hugo-whisper-theme/layouts/index.html | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/themes/hugo-whisper-theme/layouts/index.html b/themes/hugo-whisper-theme/layouts/index.html new file mode 100644 index 0000000..8730992 --- /dev/null +++ b/themes/hugo-whisper-theme/layouts/index.html @@ -0,0 +1,59 @@ +{{ define "title" }}{{ .Site.Title }}{{ end}} +{{ define "header_css" }}{{ end }} +{{ define "body_classes" }}page-home{{ end }} +{{ define "header_classes" }}{{ end }} + +{{ define "meta_tags" }} +<meta name="description" content="{{ .Site.Params.homepage_meta_tags.meta_description }}" /> +<meta property="og:title" content="{{ .Site.Params.homepage_meta_tags.meta_og_title }}" /> +<meta property="og:type" content="{{ .Site.Params.homepage_meta_tags.meta_og_type }}" /> +<meta property="og:url" content="{{ .Site.Params.homepage_meta_tags.meta_og_url }}" /> +<meta property="og:image" content="{{ .Site.Params.homepage_meta_tags.meta_og_image }}" /> +<meta property="og:description" content="{{ .Site.Params.homepage_meta_tags.meta_og_description }}" /> +<meta name="twitter:card" content="{{ .Site.Params.homepage_meta_tags.meta_twitter_card }}" /> +<meta name="twitter:site" content="{{ .Site.Params.homepage_meta_tags.meta_twitter_site }}" /> +<meta name="twitter:creator" content="{{ .Site.Params.homepage_meta_tags.meta_twitter_creator }}" /> +{{ end }} + +{{ define "main" }} +<div class="strip"> + <div class="container pt-4 pb-16"> + <div class="row"> + <div class="col-12"> + <h1 class="title">{{ .Title | default .Site.Title }}</h1> + <div class="content"> + {{ if .Content }} + {{ .Content }} + {{ else }} + <p>{{ .Site.Params.homepage_intro }}</p> + {{ end }} + </div> + <a class="button button-primary mb-2" href="{{ .Site.Params.homepage_button_link | relURL }}"> + {{ .Site.Params.homepage_button_text }} + </a> + </div> + </div> + </div> +</div> + +{{ if .Site.Params.homepage_image }} +<div class="strip"> + <div class="container pt-4 pb-4"> + <div class="row justify-content-center"> + <div class="col-12 col-md-10"> + <div class="terminal"> + <img src="{{ .Site.Params.homepage_image | relURL}}" /> + </div> +{{ if .Site.Params.homepage_creds }} + <p> {{ .Site.Params.homepage_creds | safeHTML}} +{{ end }} + </div> + </div> + </div> +</div> +{{ end }} + +{{ end }} + +{{ define "footer_js" }} +{{ end }} |