diff options
author | Dillon <dillonzq@outlook.com> | 2020-03-16 16:35:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-16 16:35:16 +0300 |
commit | 41c2d3a38e77b5a0db8ff9d8d3f49730355f554c (patch) | |
tree | 92a82ec8f17bf17a32a08af9cb2826e833ce097d /layouts/shortcodes | |
parent | 9a7189c2a3f52792dfa5bbd96aaa7c8626ed457c (diff) |
feat: add detection of the theme version and Hugo version (#173)
* feat: add detection of the theme version and Hugo version
* fix: hugo.IsProduction is incompatible in Hugo v0.62.0
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r-- | layouts/shortcodes/version.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/shortcodes/version.html b/layouts/shortcodes/version.html new file mode 100644 index 0000000..c115cd2 --- /dev/null +++ b/layouts/shortcodes/version.html @@ -0,0 +1 @@ +<span class="version"><i class="far fa-heart fa-fw"></i> LoveIt <i class="fas fa-greater-than-equal fa-fw"></i> <a href="https://github.com/dillonzq/LoveIt/releases/tag/v{{ .Get 0 }}" rel="noopener noreffer" target="_blank" title="LoveIt v{{ .Get 0 }}">{{ .Get 0 }}</a></span>
\ No newline at end of file |