mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-15 14:16:12 +00:00
about widget: Add support for linking to forum/chat/mailing-list
* Example: `discussion = { name = "Discuss", url = "https://discourse.gohugo.io" }`
can be added to `[params]` section of `config.toml`
* Add noopener to links that open in new tab
See #351
This commit is contained in:
1 parent
0e57c732fe
commit
ec4fe2eb29
2 files changed
+15
-2
No files matched your search
@@ -58,6 +58,10 @@ defaultContentLanguageInSubdir = false
|
|||||||
# Enable Keybase in Contact section by entering your keybase.io username.
|
# Enable Keybase in Contact section by entering your keybase.io username.
|
||||||
keybase = ""
|
keybase = ""
|
||||||
|
|
||||||
|
# Discussion link (e.g. link to a forum, mailing list, or chat).
|
||||||
|
# Uncomment line below to use.
|
||||||
|
# discussion = { name = "Discuss", url = "https://discourse.gohugo.io" }
|
||||||
|
|
||||||
# Diplay a logo in navigation bar rather than title (optional).
|
# Diplay a logo in navigation bar rather than title (optional).
|
||||||
# To enable, place an image in `static/img/` and reference its filename below. To disable, set the value to "".
|
# To enable, place an image in `static/img/` and reference its filename below. To disable, set the value to "".
|
||||||
logo = ""
|
logo = ""
|
||||||
|
|||||||
@@ -22,11 +22,20 @@
|
|||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ with $.Site.Params.discussion }}
|
||||||
|
<li>
|
||||||
|
<i class="fa-li fa fa-comments-o fa-2x" aria-hidden="true"></i>
|
||||||
|
<span>
|
||||||
|
<a href="{{ .url }}" target="_blank" rel="noopener">{{ .name }}</a>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ with $.Site.Params.keybase }}
|
{{ with $.Site.Params.keybase }}
|
||||||
<li>
|
<li>
|
||||||
<i class="fa-li fa fa-lock fa-2x" aria-hidden="true"></i>
|
<i class="fa-li fa fa-lock fa-2x" aria-hidden="true"></i>
|
||||||
<span>
|
<span>
|
||||||
<a href="https://keybase.io/{{ . }}" target="_blank">@{{ . }}</a> on Keybase.
|
<a href="https://keybase.io/{{ . }}" target="_blank" rel="noopener">@{{ . }}</a> on Keybase.
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -53,7 +62,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<i class="fa-li fa fa-telegram fa-2x" aria-hidden="true"></i>
|
<i class="fa-li fa fa-telegram fa-2x" aria-hidden="true"></i>
|
||||||
<span>
|
<span>
|
||||||
{{- if $autolink }}<a href="https://telegram.me/{{ . }}" target="_blank">@{{ . }}</a>{{ else }}@{{ . }}{{ end -}}
|
{{- if $autolink }}<a href="https://telegram.me/{{ . }}" target="_blank" rel="noopener">@{{ . }}</a>{{ else }}@{{ . }}{{ end -}}
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in new issue
Block a user