diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 970a32f..71e8c06 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -84,7 +84,7 @@ copyright = "" # default: author.name ↓ # 默认为下面配 alipay = "/path/to/your/alipay-qr-code.png" # 支付宝二维码 [params.social] # 社交链接 - a-email = "your@email.com" + a-email = "mailto:your@email.com" b-stack-overflow = "http://localhost:1313" c-twitter = "http://localhost:1313" d-facebook = "http://localhost:1313" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 4004d7b..7ce1aaf 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,11 +2,7 @@ {{- range $name, $path := .Site.Params.social }} {{- if $path }} {{- $realName := slicestr $name 2 }} - {{- if eq $realName "email" }} - - {{- else }} - - {{- end }} + {{- end }} {{- end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f41fdac..4cc13c8 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -6,7 +6,7 @@
diff --git a/layouts/partials/slideout.html b/layouts/partials/slideout.html index 0ebf0c2..21de3cb 100644 --- a/layouts/partials/slideout.html +++ b/layouts/partials/slideout.html @@ -11,7 +11,7 @@