Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yanlinlin82/simple-style.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinlin Yan <yanlinlin82@gmail.com>2020-01-02 12:16:38 +0300
committerLinlin Yan <yanlinlin82@gmail.com>2020-01-02 12:16:38 +0300
commit1e0dcfca23865d209f07b78b3032c4dfb30f4d5c (patch)
treef8b2f8ec02e7dbcd41d1a7f9e2f718a2de693fad
parent35bb325c2081a60bc1ed724af1be1156e20a8aee (diff)
Add shortcode for permalink
-rw-r--r--layouts/shortcodes/permalink.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/shortcodes/permalink.html b/layouts/shortcodes/permalink.html
new file mode 100644
index 0000000..e98449a
--- /dev/null
+++ b/layouts/shortcodes/permalink.html
@@ -0,0 +1 @@
+{{with .Get 0}}<a id="{{.}}" href="#{{.}}"><svg onmouseover="this.style.color='#f00'" onmouseout="this.style.color='#000'" style="color:#000;fill:currentColor" height="22px" viewBox="0 0 24 24" width="22px" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"></path><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg></a>{{end}}