Skip to content

Commit 226f4d1

Browse files
authored
Update @mxmehl PR (#15)
Make shortcode also usable as partial and update credits and description --------- Co-authored-by: Max Mehl <mail@mehl.mx>
1 parent 4fa3ad5 commit 226f4d1

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
## About
66

7-
This [Hugo](https://gohugo.io) theme component provides a shortcode and a partial
7+
This [Hugo](https://gohugo.io) theme component provides a shortcode and a partial.
88

99
## Features
1010

11-
Shortcode `cloakemail` cloakes e-mail or other messaging (`xmpp`, `tg`, etc.) or phone (`sip`, `tel`, etc.) addresses from spamming bots. Can also be used as a partial with equivalent functionality.
11+
Shortcode `cloakemail` cloakes e-mail or other messaging (`xmpp`, `tg`, etc.) or phone (`sip`, `tel`, etc.) addresses from spamming bots. It can also be used as a partial with equivalent functionality.
1212

1313
### Mandatory parameter
1414

@@ -33,7 +33,7 @@ All parameters can be combined.
3333

3434
### Use as partial
3535

36-
In some cases, you have to embed e-mail addresses directly in your theme code, e.g. partials. Therefore, you can also use the functionality as a partial.
36+
In some cases, you have to embed e-mail addresses directly in your theme code, e.g. with partials. This component can also be used as a partial, with the same functionality.
3737

3838
Examples:
3939

@@ -73,6 +73,6 @@ Given address `jane.doe@example.com`, the shortcode
7373

7474
Copyright © 2019 onwards, Nicolas Martignoni nicolas@martignoni.net.
7575

76-
Thanks to [@mxmehl](https://github.com/mxmehl) for ideas and explanations about other protocols and script fingerprinting.
76+
Thanks to [@mxmehl](https://github.com/mxmehl) for ideas and explanations about other protocols and script fingerprinting and for implementing the use of this component as a partial.
7777

7878
This theme component was possible because of the work done by [@danieka](https://github.com/danieka) in [this pull request](https://github.com/gohugoio/hugo/pull/3935).

layouts/shortcodes/cloakemail.html

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
{{- partial "cloakemail.html"
32
(dict
43
"address" (.Get "address" | default (.Get 0))

0 commit comments

Comments
 (0)