Merge pull request #114 from nekr0z/microblog

add micro.blog social option
This commit is contained in:
Huy Tran 2020-11-03 11:21:15 +11:00 committed by GitHub
commit 977c128307
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View file

@ -50,6 +50,7 @@ theme = "hyde-hyde"
linkedin = "<username>" linkedin = "<username>"
twitter = "<username>" twitter = "<username>"
facebook = "<username>" facebook = "<username>"
microblog = "<username>"
stackoverflow = "<username>" stackoverflow = "<username>"
telegram = "<username>" telegram = "<username>"
# orcid = "<xxxx-xxxx-xxxx-xxxx>" # orcid = "<xxxx-xxxx-xxxx-xxxx>"

View file

@ -1 +1 @@
<script defer src="https://use.fontawesome.com/releases/v5.11.2/js/all.js" integrity="sha384-b3ua1l97aVGAPEIe48b4TC60WUQbQaGi2jqAWM90y0OZXZeyaTCWtBTKtjW2GXG1" crossorigin="anonymous"></script> <script defer src="https://use.fontawesome.com/releases/v5.12.1/js/all.js" integrity="sha384-ZbbbT1gw3joYkKRqh0kWyRp32UAvdqkpbLedQJSlnI8iLQcFVxaGyrOgOJiDQTTR" crossorigin="anonymous"></script>

View file

@ -2,6 +2,9 @@
{{ with .Site.Params.social.twitter }} {{ with .Site.Params.social.twitter }}
<a href="https://twitter.com/{{.}}" rel="me"><i class="fab fa-twitter fa-lg" aria-hidden="true"></i></a> <a href="https://twitter.com/{{.}}" rel="me"><i class="fab fa-twitter fa-lg" aria-hidden="true"></i></a>
{{ end }} {{ end }}
{{ with .Site.Params.social.microblog }}
<a href="https://micro.blog/{{.}}" rel="me"><i class="fab fa-microblog fa-lg" aria-hidden="true"></i></a>
{{ end }}
{{ with .Site.Params.social.facebook }} {{ with .Site.Params.social.facebook }}
<a href="https://facebook.com/{{.}}" rel="me"><i class="fab fa-facebook-f"></i></a> <a href="https://facebook.com/{{.}}" rel="me"><i class="fab fa-facebook-f"></i></a>
{{ end }} {{ end }}