summaryrefslogtreecommitdiffstats
path: root/docs/layouts/shortcodes
diff options
context:
space:
mode:
authorCameron Moore <moorereason@gmail.com>2016-03-12 00:27:34 -0600
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-03-21 14:08:39 +0100
commitf52b040ee126ec0c48f1d273681a860fe7814314 (patch)
treee25c6d64224ab2c584a211555eed57cf55872ac4 /docs/layouts/shortcodes
parentd45b55bdd405ae019c065bc6fa0888c25f7952c9 (diff)
docs: Draft of 0.16 release notes
Also included is an enhancement to the gh shortcode to support sending commit hashes by prepending "0x" to the hash.
Diffstat (limited to 'docs/layouts/shortcodes')
-rw-r--r--docs/layouts/shortcodes/gh.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/layouts/shortcodes/gh.html b/docs/layouts/shortcodes/gh.html
index 0d3022e71..2ff240a21 100644
--- a/docs/layouts/shortcodes/gh.html
+++ b/docs/layouts/shortcodes/gh.html
@@ -1,6 +1,8 @@
{{ range .Params }}
{{ if eq (substr . 0 1) "@" }}
<a href="//github.com/{{ substr . 1 }}">{{ . }}</a>
+{{ else if eq (substr . 0 2) "0x" }}
+<a href="//github.com/spf13/hugo/commit/{{ substr . 2 }}">{{ substr . 2 6 }}</a>
{{ else }}
<a href="//github.com/spf13/hugo/issues/{{ . }}">#{{ . }}</a>
{{ end }}