2018-07-01 08:09:29 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="{{ .Site.LanguageCode }}">
|
2019-03-15 15:27:09 +00:00
|
|
|
|
2018-07-01 08:09:29 +00:00
|
|
|
<head>
|
|
|
|
{{ partial "head/metadata.html" . }}
|
2020-12-31 12:56:23 +00:00
|
|
|
{{ if .Site.Params.plausible }}{{ partial "head/plausible.html" . }}{{ end }}
|
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>
|
2019-03-15 15:27:09 +00:00
|
|
|
|
2018-07-01 08:09:29 +00:00
|
|
|
<body>
|
2019-03-15 15:27:09 +00:00
|
|
|
{{ with .Site.GetPage "/home" }}
|
|
|
|
<section id="top" class="hero is-{{ .Site.Params.home.introHeight | default "fullheight" }}">
|
|
|
|
<!-- Hero head section to play nice with Bulma -->
|
|
|
|
<div class="hero-head"></div>
|
|
|
|
|
|
|
|
<!-- Super sweet Hero body title -->
|
|
|
|
<div class="hero-body">
|
|
|
|
<div class="container has-text-centered">
|
|
|
|
<!-- Title and tagline -->
|
|
|
|
<h1 class="bold-title {{ if or (.Site.Params.fadeIn | default true) .Site.Params.fadeInIndex }}fade-in one{{ end }}">
|
2020-05-31 18:12:41 +00:00
|
|
|
{{ .Title | markdownify }}
|
2019-03-15 15:27:09 +00:00
|
|
|
</h1>
|
|
|
|
<div class="subtitle is-3 {{ if or (.Site.Params.fadeIn | default true) .Site.Params.fadeInIndex }}fade-in two{{ end }}">
|
|
|
|
{{ .Content }}
|
2018-07-01 08:09:29 +00:00
|
|
|
</div>
|
2019-03-15 15:27:09 +00:00
|
|
|
<!-- End title and tagline -->
|
|
|
|
<!-- Some social icons -->
|
|
|
|
<div class="{{ if or (.Site.Params.fadeIn | default true) .Site.Params.fadeInIndex }}fade-in three{{ end }}">
|
|
|
|
{{ partial "home/social.html" . }}
|
|
|
|
</div>
|
|
|
|
<!-- End top social icons -->
|
2018-07-01 08:09:29 +00:00
|
|
|
</div>
|
2019-03-15 15:27:09 +00:00
|
|
|
</div> <!-- End of Hero body -->
|
2018-07-18 14:58:51 +00:00
|
|
|
{{ end }}
|
|
|
|
|
2019-03-15 15:27:09 +00:00
|
|
|
<div class="hero-foot {{ if or (.Site.Params.fadeIn | default true) .Site.Params.fadeInIndex }}fade-in three{{ end }}">
|
2018-07-01 08:09:29 +00:00
|
|
|
<!-- Tell them all about it! -->
|
|
|
|
{{ partial "nav.html" . }}
|
2019-03-15 15:27:09 +00:00
|
|
|
</div>
|
|
|
|
</section> <!-- Done with Hero -->
|
2018-07-18 14:58:51 +00:00
|
|
|
|
2019-03-15 15:27:09 +00:00
|
|
|
{{ with .Site.GetPage "/home" }}
|
|
|
|
{{ $home := . }}
|
2019-04-10 16:22:12 +00:00
|
|
|
{{ $pages := .Resources.ByType "page" }}
|
|
|
|
|
2019-08-14 12:40:10 +00:00
|
|
|
{{ with .Site.GetPage "/blog" }}
|
2019-04-10 16:22:12 +00:00
|
|
|
{{ $pages = $pages | append . }}
|
|
|
|
{{ end }}
|
|
|
|
|
2019-08-14 12:40:10 +00:00
|
|
|
{{ with .Site.GetPage "/projects" }}
|
2019-04-10 16:22:12 +00:00
|
|
|
{{ $pages = $pages | append . }}
|
|
|
|
{{ end }}
|
2019-04-10 12:41:06 +00:00
|
|
|
|
2019-04-10 16:22:12 +00:00
|
|
|
{{ range sort $pages "Params.weight" }}
|
2019-03-15 15:27:09 +00:00
|
|
|
{{ if ne .Name "contact.md" }}
|
2019-05-14 20:28:57 +00:00
|
|
|
{{ if .File }}
|
2019-05-29 15:28:58 +00:00
|
|
|
{{ if eq (os.Stat .File.Dir).Name "projects" }}
|
2019-04-10 12:41:06 +00:00
|
|
|
<!-- Now for some cool projects -->
|
|
|
|
{{ partial "home/projects.html" . }}
|
2019-05-29 15:28:58 +00:00
|
|
|
{{ else if eq (os.Stat .File.Dir).Name "blog" }}
|
2019-04-10 12:41:06 +00:00
|
|
|
<!-- Let`s show some blog posts -->
|
|
|
|
{{ partial "home/blog.html" . }}
|
|
|
|
{{ else }}
|
|
|
|
|
2019-03-15 15:27:09 +00:00
|
|
|
<!-- Range through all sections in /home execept contact.md -->
|
|
|
|
<div class="section" id="{{ .File.TranslationBaseName }}">
|
|
|
|
<div class="container">
|
2020-05-31 18:12:41 +00:00
|
|
|
<h2 class="title is-2 has-text-centered">{{ .Title | markdownify }}</h2>
|
2019-03-15 15:27:09 +00:00
|
|
|
{{ if .Params.Image }}
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column is-one-third has-text-centered">
|
|
|
|
{{ with $home.Resources.GetMatch .Params.Image }}
|
|
|
|
{{ with .Resize "320x" }}
|
|
|
|
<img class="img-responsive avatar" src="{{ .Permalink }}" alt="{{ .Name }}">
|
|
|
|
{{ end }}
|
2018-07-18 14:58:51 +00:00
|
|
|
{{ end }}
|
2018-07-01 08:09:29 +00:00
|
|
|
</div>
|
2019-03-15 15:27:09 +00:00
|
|
|
<div class="markdown column">
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ else }}
|
|
|
|
<div class="markdown has-text-centered">
|
|
|
|
{{ .Content }}
|
2018-07-01 08:09:29 +00:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
2019-03-15 15:27:09 +00:00
|
|
|
</div>
|
|
|
|
<!-- End About container-->
|
|
|
|
{{ partial "top-icon.html" . }}
|
|
|
|
</div>
|
|
|
|
<div class="container">
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2019-04-10 12:41:06 +00:00
|
|
|
{{ end }}
|
2019-05-14 20:28:57 +00:00
|
|
|
{{ end }}
|
2019-03-15 15:27:09 +00:00
|
|
|
<!-- Let`s chat, shall we? -->
|
|
|
|
{{ with .Resources.GetMatch "contact.md" }}
|
|
|
|
<div class="section" id="{{ .File.TranslationBaseName }}">
|
|
|
|
<div class="container has-text-centered">
|
2020-05-31 18:12:41 +00:00
|
|
|
<h2 class="title is-2">{{ .Title | markdownify }}</h2>
|
2019-03-15 15:27:09 +00:00
|
|
|
<div class="markdown">
|
|
|
|
{{ .Content }}
|
2018-07-01 08:09:29 +00:00
|
|
|
</div>
|
2019-03-15 15:27:09 +00:00
|
|
|
{{ if .Site.Params.home.localTime }}
|
2020-12-04 15:49:32 +00:00
|
|
|
<p>{{ i18n "index_currentTime" . }} <span id="time"></span>.</p>
|
2018-07-01 08:09:29 +00:00
|
|
|
{{ end }}
|
2019-03-15 15:27:09 +00:00
|
|
|
{{ with .Site.Params.email }}
|
|
|
|
<h3 class="subtitle is-3 has-text-centered top-pad">
|
|
|
|
<a href="mailto:{{ . }}">{{ . }}</a>
|
|
|
|
</h3>
|
2018-07-18 14:58:51 +00:00
|
|
|
{{ end }}
|
2019-03-15 15:27:09 +00:00
|
|
|
{{ partial "home/social.html" . }}
|
2017-03-26 05:23:50 +00:00
|
|
|
</div>
|
2019-03-15 15:27:09 +00:00
|
|
|
<!-- End Contact container -->
|
|
|
|
{{ partial "top-icon.html" . }}
|
|
|
|
</div>
|
|
|
|
<div class="container">
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
<!-- End Contact section -->
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ partial "footer/text.html" . }}
|
|
|
|
|
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-20 12:45:36 +00:00
|
|
|
|
|
|
|
{{ if .Site.Params.home.localTime }}
|
2020-12-04 15:49:32 +00:00
|
|
|
<script>
|
|
|
|
function update_localtime() {
|
|
|
|
const time = new Date().toLocaleTimeString('{{ .Site.Params.home.timeFormat }}', { timeZone: '{{ .Site.Params.home.timeZone }}', timeStyle: 'short' });
|
|
|
|
document.getElementById('time').innerHTML = time;
|
|
|
|
}
|
|
|
|
update_localtime();
|
|
|
|
// Updating every second to prevent seconds looking like stood still when timeStyle is ignored.
|
|
|
|
setInterval(update_localtime, 1000);
|
|
|
|
</script>
|
2018-07-20 12:45:36 +00:00
|
|
|
{{ end }}
|
2018-07-01 08:09:29 +00:00
|
|
|
</body>
|
2019-03-15 15:27:09 +00:00
|
|
|
|
2019-04-10 12:41:06 +00:00
|
|
|
</html>
|