Merge commit '844aef544c19e9d8f529b4f8144e089d0982bb34'

This commit is contained in:
Kaushal Modi 2018-08-24 14:02:46 -04:00
commit fe21600e79
3 changed files with 10 additions and 10 deletions

View File

@ -2,5 +2,5 @@
<a href="{{ .Permalink }}" class="hide-child link primary-color"> <a href="{{ .Permalink }}" class="hide-child link primary-color">
<span class="nl3 child">{{ partial "svg/link-permalink.svg" (dict "size" "14px") }}</span> <span class="nl3 child">{{ partial "svg/link-permalink.svg" (dict "size" "14px") }}</span>
“{{ .Title }}” “{{ .Title }}”
</a> was last updated: {{ .Lastmod.Format "January 2, 2006" }}{{ with .GitInfo }}: <a class="hide-child link primary-color" href="{{$.Site.Params.ghrepo}}/commit/{{ .Hash }}">{{ .Subject }} ({{ .AbbreviatedHash }})</a>{{end }} </a> was last updated: {{ .Lastmod.Format "January 2, 2006" }}{{ with .GitInfo }}: <a class="hide-child link primary-color" href="{{$.Site.Params.ghrepo}}commit/{{ .Hash }}">{{ .Subject }} ({{ .AbbreviatedHash }})</a>{{end }}
</h6> </h6>

View File

@ -1,5 +1,5 @@
{{if .Prev }} {{if .Prev }}
<a href="{{ .Prev.Permalink }}" class="db-l f4 f3-ns link primary-color hover-black fw8"> <a href="{{ .Prev.Permalink }}" class="db-l f4 f3-ns link primary-color hover-black fw8 mr4">
<span class="v-mid dib">{{ partial "svg/ic_chevron_left_black_24px.svg" (dict "size" "30px") }}</span> {{ .Prev.Title }} <span class="v-mid dib">{{ partial "svg/ic_chevron_left_black_24px.svg" (dict "size" "30px") }}</span> {{ .Prev.Title }}
</a> </a>
{{end}} {{end}}
@ -13,13 +13,13 @@
<script> <script>
document.body.onkeyup = function(e){ document.body.onkeyup = function(e){
if (!(e.ctrlKey || e.shiftKey || e.altKey || e.metaKey)) {
{{ if .Prev }} {{- if .Prev }}
if (e.keyCode == '37') { window.location = '{{ .Prev.Permalink }}'; } if (e.keyCode == '37') { window.location = '{{ .Prev.Permalink }}'; }
{{ end }} {{- end }}
{{ if .Next }} {{- if .Next }}
if (e.keyCode == '39') { window.location = '{{.Next.Permalink }}'; } if (e.keyCode == '39') { window.location = '{{ .Next.Permalink }}'; }
{{ end }} {{- end }}
}
}; };
</script> </script>

View File

@ -3,7 +3,7 @@
<div class="pb3 pt4 w-100 w-50-ns"> <div class="pb3 pt4 w-100 w-50-ns">
<div class="b f3 light-gray mb3 nested-links tc"> <div class="b f3 light-gray mb3 nested-links tc">
By the <a href="https://github.com/gohugoio/hugo/contributors" class="link">Hugo Authors</a><br /> By the <a href="https://github.com/gohugoio/hugo/graphs/contributors" class="link">Hugo Authors</a><br />
</div> </div>
<div class="center w4"> <div class="center w4">