diff --git a/README.md b/README.md index a16654a..aeae78a 100644 --- a/README.md +++ b/README.md @@ -181,6 +181,18 @@ params: On top of easily customizing the built-in services' label and color, user can overwrite their icon by adding an svg file at `/assets/ananke/socials` with a filename matching the service's name. For example, in order to use your own GitHub icon, simply add an svg file at `/assets/ananke/socials/github.svg` +#### Additional relations + +You can add extra relations to the social links via the `rel:` property. This can be used to assert ownership of the linked account as described in the [rel="me" mircroformat](https://microformats.org/wiki/rel-me). + +```yaml +params: + ananke_socials: + - name: twitter + url: https://twitter.com/theNewDynamic + rel: me +``` + #### Built-in Services Here is the list of built-in services. Those marked with an `*` are also part of the "Share" module. diff --git a/layouts/partials/func/socials/Get.html b/layouts/partials/func/socials/Get.html index 7d0a9d1..04530c5 100644 --- a/layouts/partials/func/socials/Get.html +++ b/layouts/partials/func/socials/Get.html @@ -14,6 +14,7 @@ String (.label) String (.color)? Bool (.share)? + String (.rel)? @uses - partial diff --git a/layouts/partials/social-follow.html b/layouts/partials/social-follow.html index 7e3f920..27e5e83 100644 --- a/layouts/partials/social-follow.html +++ b/layouts/partials/social-follow.html @@ -1,7 +1,7 @@ {{ $socials := where (partialCached "func/socials/Get" "socials/Get") "follow" "!=" false }}
{{ range $socials }} - + {{ with .icon }} {{ . }} {{ else }}