hugo-whisper-theme/layouts/index.html

56 lines
2 KiB
HTML
Raw Normal View History

2019-02-17 23:58:43 +00:00
{{ define "title" }}Hugo Whisper Theme Demo{{ end}}
2019-02-17 06:55:16 +00:00
{{ define "header_css" }}{{ end }}
{{ define "body_classes" }}page-home{{ end }}
{{ define "header_classes" }}{{ end }}
2019-02-17 06:55:16 +00:00
{{ 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">
2019-02-17 13:20:34 +00:00
<div class="container pt-4 pb-16">
2019-02-17 06:55:16 +00:00
<div class="row">
<div class="col-12">
<h1 class="title">{{ .Title | default .Site.Title }}</h1>
2019-02-17 06:55:16 +00:00
<div class="content">
2019-03-15 01:37:08 +00:00
{{ if .Content }}
{{ .Content }}
{{ else }}
<p>{{ .Site.Params.homepage_intro }}</p>
{{ end }}
2019-02-17 06:55:16 +00:00
</div>
<a class="button button-primary mb-2" href="{{ .Site.Params.homepage_button_link | relURL }}">
{{ .Site.Params.homepage_button_text }}
</a>
2019-02-17 06:55:16 +00:00
</div>
</div>
</div>
2019-02-17 11:44:45 +00:00
</div>
{{ if .Site.Params.homepage_image }}
2019-02-17 13:20:34 +00:00
<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">
2019-03-15 01:37:08 +00:00
<img src="{{ .Site.Params.homepage_image | relURL}}" />
2019-02-17 11:44:45 +00:00
</div>
</div>
2019-02-17 06:55:16 +00:00
</div>
</div>
</div>
{{ end }}
2019-02-17 06:55:16 +00:00
{{ end }}
{{ define "footer_js" }}
{{ end }}