hugo-theme-introduction/layouts/index.html

111 lines
3.7 KiB
HTML
Raw Normal View History

2017-03-13 09:14:02 +00:00
{{ partial "header.html" . }}
<body>
2017-03-13 09:14:02 +00:00
2018-02-03 14:57:23 +00:00
<div id="top"> <!-- Where all the awesome begins -->
<div class="hero is-{{ .Site.Params.introHeight | default "fullheight" }}">
<!-- Possible hero-head not used -->
<!-- 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-06-27 00:10:46 +00:00
{{ .Site.Params.firstName | default "Introduction" }}.
</h1>
<h3 class="subtitle is-3 {{ if .Site.Params.fadeIn | default true }}fade-in two{{ end }}">
2018-01-27 01:10:03 +00:00
{{ .Site.Params.tagLine }}
</h3>
<!-- End title and tagline -->
<!-- Some social icons -->
<div class=" {{ if .Site.Params.fadeIn | default true }}fade-in three{{ end }}">
{{ partial "social.html" . }}
</div>
<!-- End top social icons -->
</div>
2018-06-11 23:39:40 +00:00
</div>
<!-- Hero body title end -->
<div class="hero-foot {{ if .Site.Params.fadeIn | default true }}fade-in three{{ end }}">
2018-06-11 23:39:40 +00:00
{{ partial "nav.html" . }}
</div>
</div>
<!-- Done with Hero -->
<!-- Everything below fades in three! -->
<div class="section no-padding {{ if .Site.Params.fadeIn | default true }}fade-in three{{ end }}">
2017-03-13 09:14:02 +00:00
<!-- Tell them all about it! -->
2018-06-25 13:03:18 +00:00
{{ with .Site.GetPage "page" "about" }}
<div class="section" id="about">
<div class="container">
2018-06-25 13:03:18 +00:00
<h2 class="title is-2 has-text-centered">{{ .Title }}</h2>
<div class="columns"><!-- Avatar and about.md side by side except mobile -->
{{ if .Site.Params.avatar }}
<div class="column is-one-third has-text-centered">
2018-06-27 00:10:46 +00:00
<img class="img-responsive avatar" src="{{ .Site.Params.avatar | relURL }}" alt="{{ i18n "index_avatarAlt" . }}">
</div>
{{ end }}
<div class="column markdown">
2018-06-25 13:03:18 +00:00
{{.Content}}
</div>
</div>
2018-06-25 13:03:18 +00:00
</div>
<!-- End About container-->
{{ partial "top-icon.html" . }}
</div>
<!-- End About section -->
<div class="container"><hr></div>
2018-06-25 13:03:18 +00:00
{{ end }}
<!-- Now for some cool projects -->
2018-06-25 13:03:18 +00:00
{{ partial "projects.html" . }}
<!-- Let's show some blog posts -->
2018-06-25 13:03:18 +00:00
{{ partial "blogsection.html" . }}
<!-- Let's chat, shall we? -->
2018-06-25 13:03:18 +00:00
{{ with .Site.GetPage "page" "contact" }}
<div class="section" id="contact">
<div class="container has-text-centered">
2018-06-25 13:03:18 +00:00
<h2 class="title is-2">{{ .Title }}</h2>
<div class="markdown">
2018-06-25 13:03:18 +00:00
{{.Content}}
</div>
2017-03-13 09:14:02 +00:00
2018-01-27 01:10:03 +00:00
{{ if .Site.Params.localTime }}
2018-06-27 00:10:46 +00:00
<p>{{ i18n "index_currentTime" . }} <span id='time'></span>.</p>
2018-06-09 23:30:15 +00:00
<script type="text/javascript" src="{{ "/js/moment.js" | relURL }}"></script>
<script type="text/javascript" src="{{ "/js/moment-timezone.js" | relURL }}"></script>
<script type="text/javascript" src="{{ "/js/moment-timezone-with-data-2012-2022.js" | relURL }}"></script>
<script>
$(document).ready(function() {
2018-01-27 01:10:03 +00:00
var time = moment().tz("{{ .Site.Params.timeZone }}").format("h:mm A");
$('#time').html(time);
})
</script>
{{ 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 "social.html" . }}
2018-06-25 13:03:18 +00:00
</div>
<!-- End Contact container -->
{{ partial "top-icon.html" . }}
</div>
<!-- End Contact section -->
2017-03-13 09:14:02 +00:00
<div class="container"><hr></div>
2018-06-25 13:03:18 +00:00
{{ end }}
2017-03-13 09:14:02 +00:00
<!-- Nice clean finish -->
{{ partial "footer.html" . }}
<!-- Footer done! -->
2018-06-25 13:03:18 +00:00
</div>
<!-- End of fade in three section -->
<!-- Where all the awesome ends. Aww. -->
</body>