From 78156847ce10794ae5716330ea94e3d3b5039993 Mon Sep 17 00:00:00 2001 From: Librahang <245462755@qq.com> Date: Fri, 14 Feb 2020 23:41:20 +0800 Subject: [PATCH] change the news module to blog module in navigation bar .And when click the blog module ,the browser will open a new tab. --- config.toml | 14 +++++++------- themes/project/layouts/partials/nav.html | 4 ++++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/config.toml b/config.toml index 55e2817..fec7636 100644 --- a/config.toml +++ b/config.toml @@ -93,10 +93,10 @@ paginate = 10 weight = 10 [[menu.main]] - identifier="news" - name = "News" - url = "/en/news.html" - weight = 1 + identifier="blog" + name = "Blog" + url = "http://blog.openeuler.org/" + weight = 2 [[menu.main]] identifier = "docs" @@ -207,9 +207,9 @@ paginate = 10 [[languages.zh.menu.main]] - identifier="news" - name = "新闻" - url = "/zh/news.html" + identifier="blog" + name = "博客" + url = "http://blog.openeuler.org/" weight = 2 [[languages.zh.menu.main]] diff --git a/themes/project/layouts/partials/nav.html b/themes/project/layouts/partials/nav.html index a538be7..93bb83d 100644 --- a/themes/project/layouts/partials/nav.html +++ b/themes/project/layouts/partials/nav.html @@ -100,7 +100,11 @@ {{ end }} {{ else }} + {{ if eq .Identifier "blog"}} + {{ .Name }} + {{ else }} {{ .Name }} + {{ end }} {{ end }} {{ end }} -- Gitee