Commit 816683d7 authored by Kaushal Modi's avatar Kaushal Modi

Add source information in footer

parent f71ce527
......@@ -59,4 +59,40 @@
{{ end }}
{{ end }}
{{ if .Site.Params.source.ox_hugo }}
<hr>
<small>This site is generated using
{{ with .Site.Params.source.org_dir }}
{{ with $.Params.creator }}
{{ . | replaceRE "ox-hugo" "<a href=\"https://github.com/kaushalmodi/ox-hugo\"><b>ox-hugo</b>" | safeHTML }}
{{ else }}
the <a href="https://github.com/kaushalmodi/ox-hugo"><b>ox-hugo</b></a> package for Emacs/Org-mode
{{ end }} +
{{ end }}
<a href="https://gitlab.com/kaushalmodi/hugo-theme-refined"><code>hugo-theme-refined</code></a> + Hugo <b>{{ .Hugo.Version }}</b>
{{ with .Hugo.CommitHash }}
(commit
{{ . | replaceRE "^[0-9a-f]{7,}" "<a href=\"https://github.com/gohugoio/hugo/commit/${0}\">${0}</a>" | replaceRE ":chroma-([0-9a-f]{7,})" ", using Chroma commit <a href=\"https://github.com/alecthomas/chroma/commit/${1}\">${1}</a>" | safeHTML -}}
)
{{- end }}.
<div>
<br/>
<span style="float: right;">
<i>ox-hugo</i>-generated Markdown
<a href="{{ $.Site.Params.source.url }}/raw/master/{{ $.Site.Params.source.md_dir }}/{{ .File.Path }}">
<b>source</b>
</a>
of this page</span>
<br/>
</div>
</small>
<p>
{{ with .Site.Params.footer }}
{{- . | safeHTML -}}
{{ end }}
</p>
{{ end }}
{{ end }}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment