refactor: shields shortcode
parent
92a994ad2f
commit
f5b5058289
|
@ -1,8 +1,11 @@
|
|||
img.shields-icon {
|
||||
display: inline-block;
|
||||
vertical-align: text-bottom;
|
||||
border: none;
|
||||
border-radius: 0%;
|
||||
a.shields {
|
||||
display: inline;
|
||||
img {
|
||||
display: inline;
|
||||
vertical-align: text-bottom;
|
||||
border: none;
|
||||
border-radius: 0%;
|
||||
}
|
||||
}
|
||||
a.github-profile {
|
||||
display: inline-block;
|
||||
|
@ -34,11 +37,19 @@ a.github-profile {
|
|||
}
|
||||
}
|
||||
.csv-table {
|
||||
margin: 0;
|
||||
width: max-content;
|
||||
max-width: max-content !important;
|
||||
white-space: nowrap;
|
||||
table-layout: fixed;
|
||||
word-break: break-all;
|
||||
th {
|
||||
text-align: center;
|
||||
}
|
||||
th,
|
||||
td {
|
||||
border: 1px solid black;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
}
|
||||
.mtf-wiki > {
|
||||
.c1 {
|
||||
|
@ -145,15 +156,15 @@ a.anchor {
|
|||
color: #96ccff;
|
||||
}
|
||||
}
|
||||
|
||||
.highlight {
|
||||
code,
|
||||
pre, span {
|
||||
pre,
|
||||
span {
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
background-color: transparent!important;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
.lntd code {
|
||||
margin: 0!important;
|
||||
padding: 0!important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,17 +40,14 @@ and other lovely guys who give us help and information.
|
|||
|
||||
## Contact
|
||||
|
||||
Through Discord [![Discord][shields/discord]](https://233.plus/discord)
|
||||
Through Discord {{< shields/discord 883004164760801320 "MtF.wiki Official" "https://233.plus/discord" >}}
|
||||
|
||||
Twitter {{< shields/twitter mtfwiki >}}
|
||||
Twitter {{< shields/twitter MtFwiki >}}
|
||||
|
||||
Through GitHub [![GitHub issues][shields/github]](https://github.com/mtf-wiki/MtF-wiki/issues/new/choose)
|
||||
Through GitHub {{< shields/github-issue "mtf-wiki/MtF-wiki" >}}
|
||||
|
||||
Via Email <hi@mtf.wiki>
|
||||
|
||||
[shields/discord]: https://img.shields.io/discord/883004164760801320?style=flat-square
|
||||
[shields/github]: https://img.shields.io/github/issues/mtf-wiki/MtF-wiki?style=flat-square
|
||||
|
||||
## Acknowledgement
|
||||
|
||||
We run a [Hugo][hugo-url] on GitHub Pages with theme [zdoc][zdoc-url]. Thanks for them.
|
||||
|
|
|
@ -37,17 +37,14 @@ y los otros queridos que nos dan ayuda y información.
|
|||
|
||||
## Contacto
|
||||
|
||||
Por Discord [![Discord][shields/discord]](https://233.plus/discord)
|
||||
Por Discord {{< shields/discord 883004164760801320 "MtF.wiki Official" "https://233.plus/discord" >}}
|
||||
|
||||
Twitter {{< shields/twitter mtfwiki >}}
|
||||
Twitter {{< shields/twitter MtFwiki >}}
|
||||
|
||||
Por GitHub [![GitHub issues][shields/github]](https://github.com/mtf-wiki/MtF-wiki/issues/new/choose)
|
||||
Por GitHub {{< shields/github-issue "mtf-wiki/MtF-wiki" >}}
|
||||
|
||||
Por correo electrónico <hi@mtf.wiki>
|
||||
|
||||
[shields/discord]: https://img.shields.io/discord/883004164760801320?style=flat-square
|
||||
[shields/github]: https://img.shields.io/github/issues/mtf-wiki/MtF-wiki?style=flat-square
|
||||
|
||||
## Agradecimiento
|
||||
|
||||
Ejecutamos [Hugo][hugo-url] en GitHub Pages. Tema visual [zdoc][zdoc-url]. Muchas gracias.
|
||||
|
|
|
@ -40,17 +40,14 @@ weight: 0
|
|||
|
||||
## 連絡
|
||||
|
||||
Discord [![Discord][shields/discord]](https://233.plus/discord)
|
||||
Discord {{< shields/discord 883004164760801320 "MtF.wiki Official" "https://233.plus/discord" >}}
|
||||
|
||||
Twitter {{< shields/twitter mtfwiki >}}
|
||||
Twitter {{< shields/twitter MtFwikiJapan >}}
|
||||
|
||||
GitHub [![GitHub issues][shields/github]](https://github.com/mtf-wiki/MtF-wiki/issues/new/choose)
|
||||
GitHub {{< shields/github-issue "mtf-wiki/MtF-wiki" >}}
|
||||
|
||||
Email <hi@mtf.wiki>
|
||||
|
||||
[shields/discord]: https://img.shields.io/discord/883004164760801320?style=flat-square
|
||||
[shields/github]: https://img.shields.io/github/issues/mtf-wiki/MtF-wiki?style=flat-square
|
||||
|
||||
## 感謝
|
||||
|
||||
日本語版に特別な感謝:<http://wasadasan.com/voice2/hormon-byouin/>
|
||||
|
|
|
@ -40,17 +40,14 @@ weight: 0
|
|||
|
||||
## 联系方式
|
||||
|
||||
Discord [![Discord][badge-discord]](https://233.plus/discord)
|
||||
Discord {{< shields/discord 883004164760801320 "MtF.wiki Official" "https://233.plus/discord" >}}
|
||||
|
||||
Twitter {{< shields/twitter mtfwiki >}}
|
||||
Twitter {{< shields/twitter MtFwikiJapan >}}
|
||||
|
||||
GitHub [![GitHub issues][badge-github]](https://github.com/mtf-wiki/MtF-wiki/issues/new/choose)
|
||||
GitHub {{< shields/github-issue "mtf-wiki/MtF-wiki" >}}
|
||||
|
||||
邮件 <hi@mtf.wiki>
|
||||
|
||||
[badge-discord]: https://img.shields.io/discord/883004164760801320?style=flat-square
|
||||
[badge-github]: https://img.shields.io/github/issues/mtf-wiki/MtF-wiki?style=flat-square
|
||||
|
||||
## ~~办公地点~~
|
||||
|
||||
{{< expand "谨慎展开">}}
|
||||
|
|
|
@ -4,13 +4,10 @@ title: 贡献者指南
|
|||
|
||||
贡献方式:
|
||||
|
||||
1. 会 GitHub 操作,直接 <abbr title="Pull Request">PR</abbr> 或 通过 [![GitHub issues][badge-github]][new-issue] (该方法的过程将是公开的,请注意处理隐私数据,如果不会处理隐私数据,请通过邮件方式贡献内容)
|
||||
1. 会 GitHub 操作,直接 <abbr title="Pull Request">PR</abbr> 或 通过 {{< shields/github-issue "mtf-wiki/MtF-wiki" >}}(该方法的过程将是公开的,请注意处理隐私数据,如果不会处理隐私数据,请通过邮件方式贡献内容)
|
||||
1. 发送邮件到 <hi@mtf.wiki>
|
||||
1. 在 [TransLand](https://chat.transland.lgbt) 发布主题
|
||||
|
||||
[badge-github]: https://img.shields.io/github/issues/mtf-wiki/MtF-wiki?style=flat-square
|
||||
[new-issue]: https://github.com/mtf-wiki/MtF-wiki/issues/new/choose
|
||||
|
||||
{{< notice info "友情提醒" >}}
|
||||
绝对不要做出任何道德绑架的行为!!!
|
||||
{{< /notice >}}
|
||||
|
|
|
@ -24,7 +24,7 @@ QQ,跨儿音游组,[{{< shields/qq 717099350 >}}](https://jq.qq.com/?_wv=1027&k=
|
|||
Telegram,Backlight.Town 逆光小镇,联系 {{< shields/telegram rikablossom >}} 加入
|
||||
Telegram,跨儿音游组,{{< shields/telegram otoge_trans >}}
|
||||
Matrix,Arch 木桶饭,{{< shields/matrix arch-mtf matrix.malacology.net >}}
|
||||
Discord,MtF.wiki,https://233.plus/discord
|
||||
Discord,MtF.wiki Official,https://233.plus/discord
|
||||
```
|
||||
|
||||
## SRS 手术交流群
|
||||
|
|
|
@ -42,17 +42,14 @@ weight: 0
|
|||
|
||||
## 社群聯絡
|
||||
|
||||
Discord [![Discord][shields/discord]](https://233.plus/discord)
|
||||
Discord {{< shields/discord 883004164760801320 "MtF.wiki Official" "https://233.plus/discord" >}}
|
||||
|
||||
Twitter {{< shields/twitter mtfwiki >}}
|
||||
Twitter {{< shields/twitter MtFwikiJapan >}}
|
||||
|
||||
GitHub [![GitHub issues][shields/github]](https://github.com/mtf-wiki/MtF-wiki/issues/new/choose)
|
||||
GitHub {{< shields/github-issue "mtf-wiki/MtF-wiki" >}}
|
||||
|
||||
電郵 <hi@mtf.wiki>
|
||||
|
||||
[shields/discord]: https://img.shields.io/discord/883004164760801320?style=flat-square
|
||||
[shields/github]: https://img.shields.io/github/issues/mtf-wiki/MtF-wiki?style=flat-square
|
||||
|
||||
## 致謝
|
||||
|
||||
本網站目前使用 [Hugo][hugo-url] 部署於 [GitHub Pages][pages-url],並使用 [zdoc][zdoc-url] 主題,在此表示感謝!
|
||||
|
|
|
@ -9,12 +9,9 @@ title: 貢獻者指南
|
|||
|
||||
貢獻方式:
|
||||
|
||||
1. 會 GitHub 操作,直接 PR 或者 透過 [![GitHub issues][badge-github]][new-issue]
|
||||
1. 會 GitHub 操作,直接 PR 或者 透過 {{< shields/github-issue "mtf-wiki/MtF-wiki" >}}
|
||||
1. 傳送郵件到 <hi@mtf.wiki>
|
||||
|
||||
[badge-github]: https://img.shields.io/github/issues/mtf-wiki/MtF-wiki?style=flat-square
|
||||
[new-issue]: https://github.com/mtf-wiki/MtF-wiki/issues/new/choose
|
||||
|
||||
{{< notice info "友情提醒" >}}
|
||||
絕對不要做出任何道德綁架的行為!!!
|
||||
{{< /notice >}}
|
||||
|
|
|
@ -22,7 +22,7 @@ QQ,跨兒音遊組,[{{< shields/qq 717099350 >}}](https://jq.qq.com/?_wv=1027&k=
|
|||
Telegram,Backlight.Town 逆光小鎮,聯絡 {{< shields/telegram rikablossom >}} 加入
|
||||
Telegram,跨兒音遊組,{{< shields/telegram otoge_trans >}}
|
||||
Matrix,Arch 木桶飯,{{< shields/matrix arch-mtf matrix.malacology.net >}}
|
||||
Discord,MtF.wiki,https://233.plus/discord
|
||||
Discord,MtF.wiki Official,https://233.plus/discord
|
||||
```
|
||||
|
||||
## SRS 手術交流群
|
||||
|
|
|
@ -1,5 +1 @@
|
|||
{{- if hasPrefix .Destination "https://img.shields.io" -}}
|
||||
<img class="shields-icon" src="{{ .Destination }}" loading="lazy" alt="{{ .Text }}" />
|
||||
{{- else -}}
|
||||
<p class="md__image"><img src="{{ .Destination }}" loading="lazy" alt="{{ .Text }}" {{ with .Title}} title="{{ . }}"{{ end }} /></p>
|
||||
{{- end -}}
|
||||
<p class="md__image"><img src="{{ .Destination }}" loading="lazy" alt="{{ .Text }}" {{ with .Title}} title="{{ . }}"{{ end }} /></p>
|
|
@ -1,7 +1,7 @@
|
|||
{{- if hasPrefix .Destination "mailto:" -}}
|
||||
{{- $text := replace (replace .Text "-" "--") "_" "__" -}}
|
||||
<a data-email="{{ .Destination | base64Encode }}">
|
||||
<img class="shields-icon" src="https://img.shields.io/badge/email-{{ $text }}-blue.svg?style=flat-square" />
|
||||
<a class="shields" data-email="{{ .Destination | base64Encode }}">
|
||||
<img src="https://img.shields.io/badge/email-{{ $text }}-blue.svg?style=flat-square" />
|
||||
</a>
|
||||
{{- else -}}
|
||||
<a href="{{ .Destination }}"{{ with .Title}} title="{{ . }}"{{ end }}>
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
{{- $message := .Get 1 -}}
|
||||
{{- $link := .Get 2 -}}
|
||||
{{- $qs := querify "label" $type "logo" $type "message" $message "color" "blue" "style" "flat-square" -}}
|
||||
<a href="{{ $link }}"><img class="shields-icon" alt="{{ $type }} {{ $message }}" src="https://img.shields.io/static/v1?{{ $qs | safeURL }}" /></a>
|
||||
<a class="shields" href="{{ $link }}"><img alt="{{ $type }} {{ $message }}" src="https://img.shields.io/static/v1?{{ $qs | safeURL }}" /></a>
|
|
@ -0,0 +1,10 @@
|
|||
{{- $id := .Get 0 -}}
|
||||
{{- $message := .Get 1 -}}
|
||||
{{- $href := .Get 2 -}}
|
||||
{{- $qs := querify "style" "flat-square" -}}
|
||||
<a class="shields" href="{{ $href }}">
|
||||
<img
|
||||
alt="Discord {{ $message }}"
|
||||
src="https://img.shields.io/discord/{{ $id }}?{{ $qs | safeURL }}"
|
||||
/>
|
||||
</a>
|
|
@ -0,0 +1,8 @@
|
|||
{{- $repo := .Get 0 -}}
|
||||
{{- $qs := querify "style" "flat-square" -}}
|
||||
<a class="shields" href="https://github.com/{{ $repo }}/issues/new/choose">
|
||||
<img
|
||||
alt="{{ $repo }} issues"
|
||||
src="https://img.shields.io/github/issues/{{ $repo }}?{{ $qs | safeURL }}"
|
||||
/>
|
||||
</a>
|
|
@ -1,3 +1,3 @@
|
|||
{{- $message := .Get 0 -}}
|
||||
{{- $qs := querify "label" "LINE" "logo" "LINE" "message" $message "color" "00C300" "style" "flat-square" -}}
|
||||
<img class="shields-icon" alt="LINE {{ $message }}" src="https://img.shields.io/static/v1?{{ $qs | safeURL }}" />
|
||||
<a class="shields"><img alt="LINE {{ $message }}" src="https://img.shields.io/static/v1?{{ $qs | safeURL }}" /></a>
|
|
@ -1,4 +1,9 @@
|
|||
{{- $name := .Get 0 -}}
|
||||
{{- $fqdn := .Get 1 -}}
|
||||
{{- $qs := querify "server_fqdn" $fqdn "style" "flat-square" "label" "matrix" -}}
|
||||
<a href="https://matrix.to/#/#{{ $name }}:{{ $fqdn }}"><img class="shields-icon" alt="Matrix #{{ $name }}:{{ $fqdn }}" src="https://img.shields.io/matrix/{{ $name | safeURL }}?{{ $qs | safeURL }}" /></a>
|
||||
<a class="shields" href="https://matrix.to/#/#{{ $name }}:{{ $fqdn }}">
|
||||
<img
|
||||
alt="Matrix #{{ $name }}:{{ $fqdn }}"
|
||||
src="https://img.shields.io/matrix/{{ $name | safeURL }}?{{ $qs | safeURL }}"
|
||||
>
|
||||
</a>
|
|
@ -1,3 +1,8 @@
|
|||
{{- $message := .Get 0 -}}
|
||||
{{- $qs := querify "label" "QQ" "logo" "Tencent QQ" "message" $message "color" "blue" "style" "flat-square" -}}
|
||||
<a href="https://twitter.com//{{ $message }}"></a><img class="shields-icon" alt="QQ {{ $message }}" src="https://img.shields.io/static/v1?{{ $qs | safeURL }}" />
|
||||
<a class="shields" href="https://twitter.com//{{ $message }}">
|
||||
<img
|
||||
alt="QQ {{ $message }}"
|
||||
src="https://img.shields.io/static/v1?{{ $qs | safeURL }}"
|
||||
>
|
||||
</a>
|
|
@ -1,3 +1,8 @@
|
|||
{{- $message := .Get 0 -}}
|
||||
{{- $qs := querify "label" "Telegram" "logo" "Telegram" "message" $message "color" "26A5E4" "style" "flat-square" -}}
|
||||
<a href="https://t.me/{{ $message }}"><img class="shields-icon" alt="Telegram {{ $message }}" src="https://img.shields.io/static/v1?{{ $qs | safeURL }}" /></a>
|
||||
<a class="shields" href="https://t.me/{{ $message }}">
|
||||
<img
|
||||
alt="Telegram {{ $message }}"
|
||||
src="https://img.shields.io/static/v1?{{ $qs | safeURL }}"
|
||||
>
|
||||
</a>
|
|
@ -1,3 +1,8 @@
|
|||
{{- $message := .Get 0 -}}
|
||||
{{- $qs := querify "label" "Twitter" "logo" "Twitter" "message" $message "color" "blue" "style" "flat-square" -}}
|
||||
<a href="https://twitter.com/{{ $message }}"><img class="shields-icon" alt="Twitter {{ $message }}" src="https://img.shields.io/static/v1?{{ $qs | safeURL }}" /></a>
|
||||
<a class="shields" href="https://twitter.com/{{ $message }}">
|
||||
<img
|
||||
alt="Twitter {{ $message }}"
|
||||
src="https://img.shields.io/static/v1?{{ $qs | safeURL }}"
|
||||
>
|
||||
</a>
|
|
@ -1,8 +1,9 @@
|
|||
{{- $message := .Get 0 -}}
|
||||
{{ if eq $.Site.Language.Lang "zh-cn" }}
|
||||
{{- $qs := querify "label" "微信" "logo" "WeChat" "message" $message "color" "07C160" "style" "flat-square" -}}
|
||||
<img class="shields-icon" alt="微信 {{ $message }}" src="https://img.shields.io/static/v1?{{ $qs | safeURL }}" />
|
||||
{{ else }}
|
||||
{{- $qs := querify "label" "WeChat" "logo" "WeChat" "message" $message "color" "07C160" "style" "flat-square" -}}
|
||||
<img class="shields-icon" alt="WeChat {{ $message }}" src="https://img.shields.io/static/v1?{{ $qs | safeURL }}" />
|
||||
{{ end }}
|
||||
{{ $label := cond (eq $.Site.Language.Lang "zh-cn") "微信" "WeChat" }}
|
||||
{{- $qs := querify "label" $label "logo" "WeChat" "message" $message "color" "07C160" "style" "flat-square" -}}
|
||||
<a class="shields">
|
||||
<img
|
||||
alt="{{ $label }} {{ $message }}"
|
||||
src="https://img.shields.io/static/v1?{{ $qs | safeURL }}"
|
||||
>
|
||||
</a>
|
Loading…
Reference in New Issue