浏览代码

Fixed absLangURL issue with sections in footer (#442)

* Add Blogtrottr as newsletter provider

* Fixed absLangURL issue with sections in footer

Co-authored-by: Pablo Marcos <codebergflamingo@staplehorse.anonaddy.com>
Pablo Marcos 3 年之前
父节点
当前提交
ad149f4d80
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      layouts/partials/footer.html

+ 1 - 1
layouts/partials/footer.html

@@ -73,7 +73,7 @@
                   {{ $sectionID = .section.id }}
                   {{ $sectionID = .section.id }}
                 {{ end }}
                 {{ end }}
                 <li class="nav-item">
                 <li class="nav-item">
-                  <a class="smooth-scroll" href="/#{{ $sectionID }}">{{ .section.name }}</a>
+                  <a class="smooth-scroll" href="{{ "" | absLangURL }}#{{ $sectionID }}">{{ .section.name }}</a>
                 </li>
                 </li>
               {{ end }}
               {{ end }}
             {{- end }}
             {{- end }}