浏览代码

Use | relLangURL for the base url in the site-navigation (#277)

* Use | relLangURL for the base urlº

This way, when you click on the header it maintains you in the same language you previously selected.

* Use .Site.Home.RelPermalink as proposed by @regisphilibert
tags/2.6.0
Juan Manuel Servera 4 年前
父节点
当前提交
981e7a2cb2
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      layouts/partials/site-navigation.html

+ 1
- 1
layouts/partials/site-navigation.html 查看文件

@@ -1,6 +1,6 @@
<nav class="pv3 ph3 ph4-ns" role="navigation">
<div class="flex-l justify-between items-center center">
<a href="{{ .Site.BaseURL }}" class="f3 fw2 hover-white no-underline white-90 dib">
<a href="{{ .Site.Home.RelPermalink }}" class="f3 fw2 hover-white no-underline white-90 dib">
{{ .Site.Title }}
</a>
<div class="flex-l items-center">

正在加载...
取消
保存