hugo-theme-introduction/layouts/blog/single.html

90 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
<div class="section" id="top"><!-- Parent section -->
2018-01-27 01:10:03 +00:00
<div class="container hero {{ if .Site.Params.fadeIn }} fade-in one {{ end }}"><!-- Begin Title -->
<h1 class="bold-title is-1">{{ .Site.Params.blogHead }}</h1>
</div><!-- End Title -->
2017-03-14 13:14:07 +00:00
<!-- Everything below fades in two! -->
2018-01-27 01:10:03 +00:00
<div class="section {{ if .Site.Params.fadeIn }} fade-in two {{ end }}">
<div class="container"><!-- Begin Nav bar -->
{{ partial "nav-single.html" . }}
</div><!-- End Nav bar -->
2018-01-27 01:10:03 +00:00
<div class="container {{ if .Site.Params.fadeIn }} fade-in two {{ end }}"><!-- Begin blog title container -->
<h2 class="title is-1 top-pad strong-post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
2017-03-13 09:14:02 +00:00
<div class="post-data">
2018-01-27 01:10:03 +00:00
{{ .Date.Format .Site.Params.dateForm }} |
2017-03-13 09:14:02 +00:00
{{ if eq 1 .ReadingTime }}{{ .ReadingTime }} minute read{{ else }}{{ .ReadingTime }} minutes read{{ end }}
</div>
2018-01-27 01:10:03 +00:00
{{ if .Site.Params.shareButtons }}
2017-03-13 09:14:02 +00:00
<div class="blog-share">
Share this:
2018-01-27 01:10:03 +00:00
{{ if .Site.Params.shareTwitter }}
2017-03-13 09:14:02 +00:00
<a class="twitter-share-button" href="https://twitter.com/intent/tweet?text=Read%20{{ .Title }}%20{{ .Permalink }}"
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
<i class="fa fa-twitter"></i>
<span class="hidden">Twitter</span>
</a>
2017-08-12 05:10:55 +00:00
{{ end }}
2018-01-27 01:10:03 +00:00
{{ if .Site.Params.shareFacebook }}
2017-03-13 09:14:02 +00:00
<a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}"
onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
<i class="fa fa-facebook"></i>
<span class="hidden">Facebook</span>
</a>
2017-08-12 05:10:55 +00:00
{{ end }}
2018-01-27 01:10:03 +00:00
{{ if .Site.Params.sharePinterest }}
2018-01-27 03:56:33 +00:00
<a class="icon-pinterest" href="http://pinterest.com/pin/create/button/?url={{ .Permalink }}{{ if .Params.pinterestMedia }}&amp;media={{ .Site.BaseURL }}{{ .Params.pinterestMedia }}{{ end }}&amp;description={{ .Title | safeHTML}}"
2017-03-13 09:14:02 +00:00
onclick="window.open(this.href, 'pinterest-share','width=580,height=296');return false;">
<i class="fa fa-pinterest"></i>
<span class="hidden">Pinterest</span>
</a>
2017-08-12 05:10:55 +00:00
{{ end }}
2018-01-27 01:10:03 +00:00
{{ if .Site.Params.shareGooglePlus }}
2017-03-13 09:14:02 +00:00
<a class="icon-google-plus" href="https://plus.google.com/share?url={{ .Permalink }}"
onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
2017-08-12 05:10:55 +00:00
<i class="fa fa-google-plus"></i>
2017-03-13 09:14:02 +00:00
<span class="hidden">Google+</span>
</a>
2017-08-12 05:10:55 +00:00
{{ end }}
2017-03-13 09:14:02 +00:00
</div>
{{ end }}
</div><!-- End blog title container -->
2018-01-27 01:10:03 +00:00
<div class="container markdown {{ if .Site.Params.fadeIn }} fade-in two {{ end }} top-pad"><!-- Begin blog post content -->
2017-03-13 09:14:02 +00:00
{{ .Content }}
</div><!-- End blog post content -->
<div class="disqus">
{{ template "_internal/disqus.html" . }}
2017-03-13 09:14:02 +00:00
</div>
<div class="container has-text-centered top-pad">
2017-03-13 09:14:02 +00:00
<hr>
<a href="{{ .Permalink }}#top"><i class="fa fa-arrow-up"></i></a>
2017-03-13 09:14:02 +00:00
<hr>
</div>
2017-03-13 09:14:02 +00:00
{{ partial "footer.html" . }}
</div><!-- End fade in two -->
</div><!-- End parent section -->
<!-- Bitty scrolling links script -->
<script>
$('a[href^="{{ .Permalink }}#"]').click(function(e) {
e.preventDefault();
var target = this.hash;
$('html, body').animate({
scrollTop: $(target).offset().top
}, 500);
return false;
})
</script>
</body>