hugo-theme-introduction/layouts/index.html

112 lines
5.1 KiB
HTML
Raw Normal View History

2018-07-01 08:09:29 +00:00
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
{{ partial "head/metadata.html" . }}
2018-07-01 08:22:28 +00:00
{{ partial "head/openGraph.html" . }}
2018-07-01 08:09:29 +00:00
{{ partial "head/favicons.html" . }}
{{ partial "head/css.html" . }}
2018-07-19 13:33:29 +00:00
{{ partial "css/owlCarousel.html" . }}
2018-07-01 08:09:29 +00:00
</head>
<body>
<div id="top">
2018-07-18 14:58:51 +00:00
{{ with .Site.GetPage "page" "home" }}
2018-07-01 08:09:29 +00:00
<div class="hero is-{{ .Site.Params.introHeight | default "fullheight" }}">
<!-- Super sweet Hero body title -->
<div class="hero-body">
<div class="container has-text-centered">
<!-- Title and tagline -->
<h1 class="bold-title {{ if .Site.Params.fadeIn | default true }}fade-in one{{ end }}">
2018-07-18 14:58:51 +00:00
{{ .Title }}
2018-07-01 08:09:29 +00:00
</h1>
2018-07-18 14:58:51 +00:00
<div class="subtitle is-3 {{ if .Site.Params.fadeIn | default true }}fade-in two{{ end }}">
{{ .Content }}
</div>
2018-07-01 08:09:29 +00:00
<!-- End title and tagline -->
<!-- Some social icons -->
<div class=" {{ if .Site.Params.fadeIn | default true }}fade-in three{{ end }}">
{{ partial "home/social.html" . }}
</div>
<!-- End top social icons -->
</div>
</div>
<!-- Hero body title end -->
</div>
2018-07-18 14:58:51 +00:00
{{ end }}
2018-07-01 08:09:29 +00:00
<!-- Done with Hero -->
2018-07-11 07:55:47 +00:00
<div class="section no-padding-top {{ if .Site.Params.fadeIn | default true }}fade-in three{{ end }}">
2018-07-01 08:09:29 +00:00
<!-- Tell them all about it! -->
{{ partial "nav.html" . }}
2018-07-18 14:58:51 +00:00
{{ with .Site.GetPage "page" "home" }}
{{ $home := . }}
{{ range sort (.Resources.ByType "page") "Params.weight" }}
{{ if ne .Name "contact.md" }}
<!-- Range through all sections in /home execept contact.md -->
2018-07-01 08:09:29 +00:00
<div class="section" id="{{ .File.TranslationBaseName }}">
<div class="container">
<h2 class="title is-2 has-text-centered">{{ .Title }}</h2>
2018-07-18 14:58:51 +00:00
{{ if .Params.Image }}
<div class="columns">
2018-07-01 08:09:29 +00:00
<div class="column is-one-third has-text-centered">
2018-07-18 14:58:51 +00:00
{{ with $home.Resources.GetMatch .Params.Image }}
{{ with .Resize "320x" }}
<img class="img-responsive avatar" src="{{ .RelPermalink }}" alt="{{ .Name }}">
{{ end }}
{{ end }}
2018-07-01 08:09:29 +00:00
</div>
2018-07-18 14:58:51 +00:00
<div class="markdown column">
{{ .Content }}
2018-07-01 08:09:29 +00:00
</div>
</div>
2018-07-18 14:58:51 +00:00
{{ else }}
<div class="markdown has-text-centered">
{{ .Content }}
</div>
{{ end }}
2018-07-01 08:09:29 +00:00
</div>
<!-- End About container-->
{{ partial "top-icon.html" . }}
</div>
<div class="container"><hr></div>
2018-07-18 14:58:51 +00:00
{{ end }}
2018-07-01 08:09:29 +00:00
{{ end }}
<!-- Now for some cool projects -->
{{ partial "home/projects.html" . }}
<!-- Let's show some blog posts -->
{{ partial "home/blog.html" . }}
<!-- Let's chat, shall we? -->
2018-07-18 14:58:51 +00:00
{{ with .Resources.GetMatch "contact.md" }}
2018-07-01 08:09:29 +00:00
<div class="section" id="{{ .File.TranslationBaseName }}">
<div class="container has-text-centered">
<h2 class="title is-2">{{ .Title }}</h2>
<div class="markdown">
2018-07-18 14:58:51 +00:00
{{ .Content }}
2018-07-01 08:09:29 +00:00
</div>
{{ if .Site.Params.localTime }}
<p>{{ i18n "index_currentTime" . }} <span id='time'></span>.</p>
{{ end }}
{{ if .Site.Params.email }}
<h3 class="subtitle is-3 has-text-centered top-pad">
<a href="mailto:{{ .Site.Params.email }}">{{ .Site.Params.email }}</a>
</h3>
{{ end }}
{{ partial "home/social.html" . }}
</div>
<!-- End Contact container -->
{{ partial "top-icon.html" . }}
</div>
<div class="container"><hr></div>
{{ end }}
<!-- End Contact section -->
2018-07-18 14:58:51 +00:00
{{ end }}
2018-07-01 08:09:29 +00:00
{{ partial "footer/text.html" . }}
</div>
</div>
2018-07-01 08:09:29 +00:00
<!-- End of fade in three section -->
{{ partial "footer/scripts.html" . }}
2018-07-19 13:33:29 +00:00
{{ partial "js/owlCarousel.html" . }}
2018-07-01 08:09:29 +00:00
</body>
</html>