diff --git a/assets/_custom.scss b/assets/_custom.scss index 4f1e3a8..77da785 100644 --- a/assets/_custom.scss +++ b/assets/_custom.scss @@ -2243,6 +2243,10 @@ body.sidebar-collapsed .book-brand-mark { color: rgba(27, 28, 26, 0.78); } +.page-lead-actions { + margin-top: 1.1rem; +} + .page-lead-meta { display: flex; flex-wrap: wrap; diff --git a/content/docs/interview/_index.md b/content/docs/interview/_index.md index f645e0d..8a278e3 100644 --- a/content/docs/interview/_index.md +++ b/content/docs/interview/_index.md @@ -2,6 +2,9 @@ title: "面试真题" weight: 1 bookCollapseSection: true +pageLeadAction: + label: "欢迎一键投稿" + url: "https://github.com/LeoninCS/GoClub/issues/new?template=interview-question.yml" aliases: - "/s/hnqt/" shortlink: "hnqt" diff --git a/layouts/docs/list.html b/layouts/docs/list.html index 4143f60..1d7965f 100644 --- a/layouts/docs/list.html +++ b/layouts/docs/list.html @@ -10,6 +10,11 @@ {{ with $summary }}
{{ . }}
{{ end }} + {{ with .Params.pageLeadAction }} +
+ {{ .label }} +
+ {{ end }}
{{ if $isContributors }} 共 {{ len $contributors }} 位贡献者