diff --git a/templates/MetaLab-2026/html/layout/nav.html b/templates/MetaLab-2026/html/layout/nav.html index fde401c..c7d9c4f 100644 --- a/templates/MetaLab-2026/html/layout/nav.html +++ b/templates/MetaLab-2026/html/layout/nav.html @@ -8,6 +8,10 @@
  • 首页
  • 帖子
  • {{if .IsLoggedIn}} +
  • + + 投稿 +
  • diff --git a/templates/MetaLab-2026/html/posts/index.html b/templates/MetaLab-2026/html/posts/index.html index abf438d..76a3c2a 100644 --- a/templates/MetaLab-2026/html/posts/index.html +++ b/templates/MetaLab-2026/html/posts/index.html @@ -6,9 +6,6 @@
    {{if .Error}} diff --git a/templates/MetaLab-2026/static/css/common.css b/templates/MetaLab-2026/static/css/common.css index 61fd4f4..6f981be 100644 --- a/templates/MetaLab-2026/static/css/common.css +++ b/templates/MetaLab-2026/static/css/common.css @@ -145,6 +145,27 @@ header { color: var(--color-secondary) !important; } +/* ---------- Nav Contribute ---------- */ +.nav-contribute { + display: inline-flex !important; + align-items: center; + vertical-align: middle; + line-height: 1; + color: var(--color-accent) !important; + font-weight: 600 !important; +} + +.nav-contribute .icon { + width: 16px; + height: 16px; + display: block; + margin-right: 4px; +} + +.nav-contribute:hover { + opacity: .8; +} + /* ---------- Nav Messages Bell ---------- */ .nav-messages { position: relative;