blob: 22fadc992212fb882ba92a240ef8a2aac89ac39f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{{if .PrevInSection}}
<link rel="prefetch" href="{{ .PrevInSection.Permalink }}">
{{end}}
{{if .NextInSection}}
<link rel="prefetch" href="{{.NextInSection.Permalink }}">
{{end}}
{{/* TODO: backport thumbnail animation to base theme, removing fadeIn if no longer used. */}}
<style media="screen">
.lazyload,
.lazyloading {
opacity: 0.5;
}
.lazyloaded {
opacity: 1;
transition: opacity 300ms;
}
</style>
{{ if eq (getenv "HUGO_ENV") "production" }}
<script type="text/javascript">
var loc = window.location.href+'';
if (loc.indexOf('http://')==0){
window.location.href = loc.replace('http://','https://');
}
</script>
{{ end }}
|