Skip to content

Commit

Permalink
Documentation fix (#6492)
Browse files Browse the repository at this point in the history
* Fix a bug where google_news.html not found due to its deprecated.

Signed-off-by: PureRaidenCloud <1017407329@qq.com>

* Change .URL to .Permalink

Signed-off-by: PureRaidenCloud <1017407329@qq.com>

* Fix #6488

Signed-off-by: PureRaidenCloud <1017407329@qq.com>

---------

Signed-off-by: PureRaidenCloud <1017407329@qq.com>
  • Loading branch information
PureRaidenCloud committed Jul 20, 2023
1 parent 1403d71 commit f3b3ecd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Follow the steps in the [installation guide][install-guide] to learn how to inst
## Additional Prerequisites

- [git][git_tool]
- [go][go_tool] version 1.18
- [go][go_tool] version 1.19
- [docker][docker_tool] version 17.03+.
- [kubectl][kubectl_tool] and access to a Kubernetes cluster of a [compatible version][k8s-version-compat].

Expand Down
1 change: 0 additions & 1 deletion website/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
{{ partialCached "favicons.html" . }}
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/google_news.html" . -}}
{{- template "_internal/schema.html" . -}}
{{- template "_internal/twitter_cards.html" . -}}
{{ if eq (getenv "HUGO_ENV") "production" }}
Expand Down
2 changes: 1 addition & 1 deletion website/layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</a>
<nav class="of-nav-main nav-collapse">
<ul class="of-nav-main__items menu-items">
<li class="of-nav-main__item"><a class="of-link-list__a {{ if eq .URL "/" }} of-m-active {{end}}" href="/">Home</a></li>
<li class="of-nav-main__item"><a class="of-link-list__a {{ if eq .Permalink "/" }} of-m-active {{end}}" href="/">Home</a></li>
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
<li class="of-nav-main__item"><a class="of-link-list__a{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} of-m-active{{end}}" href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a></li>
Expand Down

0 comments on commit f3b3ecd

Please sign in to comment.