Last active
January 28, 2018 00:26
-
-
Save hwayne/fe731cfbc730c7b4835fe07ef403391d to your computer and use it in GitHub Desktop.
person shortcode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {{ with index $.Site.Data.person (.Get 0) }} | |
| {{ if .site }} | |
| {{ printf "[%s](%s)" .name .site | markdownify }} | |
| {{ else }} | |
| {{ .name }} | |
| {{ end }} | |
| {{ end }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| person_with_site: | |
| name: "Dorkus McKlorkus" | |
| site: "https://www.example.com" | |
| person_without_site: | |
| name: "Hurf McDurf" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
html goes in
layouts/shortcodes, yml goes indata, call with{{% person person_whatever_site %}}.