diff options
-rw-r--r-- | .all-contributorsrc | 9 | ||||
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | exampleSite/content/blog/rich-content.md | 5 | ||||
-rw-r--r-- | layouts/_default/_markup/render-link.html | 2 | ||||
-rw-r--r-- | layouts/partials/social-icons.html | 10 |
5 files changed, 21 insertions, 10 deletions
diff --git a/.all-contributorsrc b/.all-contributorsrc index f57352a..8967082 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -204,6 +204,15 @@ "contributions": [ "code" ] + }, + { + "login": "gprst", + "name": "gprst", + "avatar_url": "https://avatars.githubusercontent.com/u/32643653?v=4", + "profile": "https://github.com/gprst", + "contributions": [ + "code" + ] } ], "contributorsPerLine": 7, @@ -222,7 +222,7 @@ Check out the [CONTRIBUTORS.md file](https://github.com/jakewies/hugo-theme-code ## Contributors ✨ <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> -[![All Contributors](https://img.shields.io/badge/all_contributors-21-orange.svg?style=flat-square)](#contributors-) +[![All Contributors](https://img.shields.io/badge/all_contributors-22-orange.svg?style=flat-square)](#contributors-) <!-- ALL-CONTRIBUTORS-BADGE:END --> Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): @@ -258,6 +258,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d <td align="center"><a href="https://github.com/macxcool"><img src="https://avatars.githubusercontent.com/u/2531654?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Mark C</b></sub></a><br /><a href="https://github.com/jakewies/hugo-theme-codex/commits?author=macxcool" title="Code">💻</a></td> <td align="center"><a href="https://rbn.is"><img src="https://avatars.githubusercontent.com/u/5955614?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Robin</b></sub></a><br /><a href="https://github.com/jakewies/hugo-theme-codex/commits?author=rbnis" title="Code">💻</a></td> </tr> + <tr> + <td align="center"><a href="https://github.com/gprst"><img src="https://avatars.githubusercontent.com/u/32643653?v=4?s=100" width="100px;" alt=""/><br /><sub><b>gprst</b></sub></a><br /><a href="https://github.com/jakewies/hugo-theme-codex/commits?author=gprst" title="Code">💻</a></td> + </tr> </table> <!-- markdownlint-restore --> diff --git a/exampleSite/content/blog/rich-content.md b/exampleSite/content/blog/rich-content.md index c69a34b..cce312a 100644 --- a/exampleSite/content/blog/rich-content.md +++ b/exampleSite/content/blog/rich-content.md @@ -12,11 +12,6 @@ toc: false Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. -## Instagram Simple Shortcode - -{{< instagram_simple BGvuInzyFAe hidecaption >}} - - ## YouTube Privacy Enhanced Shortcode {{< youtube ZJthWmvUzzc >}} diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index d445e88..f29f1b2 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1,4 +1,4 @@ <a href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}" {{ end }} {{ if strings.HasPrefix .Destination "mailto" }} target="_blank" {{ end }} {{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noreferrer noopener" {{ end }} ->{{ .Text | safeHTML }}</a> +>{{ .Text | safeHTML }}</a>
\ No newline at end of file diff --git a/layouts/partials/social-icons.html b/layouts/partials/social-icons.html index bdcadbf..3250856 100644 --- a/layouts/partials/social-icons.html +++ b/layouts/partials/social-icons.html @@ -5,9 +5,13 @@ {{ range $icons }} {{ $icon := anchorize . }} {{ if isset $currentPage.Site.Params $icon }} - <a class="social-icons__link" rel="me" title="{{ . }}" - href="{{ index $currentPage.Site.Params $icon }}" - target="_blank" rel="noopener"> + <a + class="social-icons__link" + title="{{ . }}" + href="{{ index $currentPage.Site.Params $icon }}" + target="_blank" + rel="me noopener" + > <div class="social-icons__icon" style="background-image: url('{{print "svg/" $icon ".svg" | absURL}}')"></div> </a> {{ end }} |