mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-09 17:42:19 +00:00
open 'notes' header link in a new tab since it goes to an external site
This commit is contained in:
parent
2f42341117
commit
0c57742e19
2 changed files with 23 additions and 1 deletions
|
@ -9,33 +9,45 @@
|
||||||
name = "self-hosting"
|
name = "self-hosting"
|
||||||
url = "/categories/self-hosting/"
|
url = "/categories/self-hosting/"
|
||||||
weight = 1
|
weight = 1
|
||||||
|
[[main.params]]
|
||||||
|
target = "_self"
|
||||||
|
|
||||||
[[main]]
|
[[main]]
|
||||||
identifier = "tips"
|
identifier = "tips"
|
||||||
name = "tips"
|
name = "tips"
|
||||||
url = "/categories/tips/"
|
url = "/categories/tips/"
|
||||||
weight = 1
|
weight = 1
|
||||||
|
[[main.params]]
|
||||||
|
target = "_self"
|
||||||
|
|
||||||
[[main]]
|
[[main]]
|
||||||
identifier = "code"
|
identifier = "code"
|
||||||
name = "code"
|
name = "code"
|
||||||
url = "/categories/code/"
|
url = "/categories/code/"
|
||||||
weight = 1
|
weight = 1
|
||||||
|
[[main.params]]
|
||||||
|
target = "_self"
|
||||||
|
|
||||||
[[main]]
|
[[main]]
|
||||||
identifier = "backstage"
|
identifier = "backstage"
|
||||||
name = "backstage"
|
name = "backstage"
|
||||||
url = "/categories/backstage/"
|
url = "/categories/backstage/"
|
||||||
weight = 1
|
weight = 1
|
||||||
|
[[main.params]]
|
||||||
|
target = "_self"
|
||||||
|
|
||||||
[[main]]
|
[[main]]
|
||||||
identifier = "slashes"
|
identifier = "slashes"
|
||||||
name = "slashes"
|
name = "slashes"
|
||||||
url = "/categories/slashes/"
|
url = "/slashes/"
|
||||||
weight = 10
|
weight = 10
|
||||||
|
[[main.params]]
|
||||||
|
target = "_self"
|
||||||
|
|
||||||
[[main]]
|
[[main]]
|
||||||
identifier = "notes"
|
identifier = "notes"
|
||||||
name = "notes"
|
name = "notes"
|
||||||
url = "https://notes.runtimeterror.dev"
|
url = "https://notes.runtimeterror.dev"
|
||||||
weight = 100
|
weight = 100
|
||||||
|
[[main.params]]
|
||||||
|
target = "_blank"
|
||||||
|
|
10
layouts/partials/header.html
Normal file
10
layouts/partials/header.html
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<nav class="page__nav main-nav">
|
||||||
|
<ul>
|
||||||
|
<h1 class="page__logo"><a href="{{ .Site.BaseURL }}" class="page__logo-inner">{{ .Site.Title }}</a></h1>
|
||||||
|
{{ $currentPage := . }}
|
||||||
|
{{ range .Site.Menus.main }}
|
||||||
|
<li class="main-nav__item"><a class="nav-main-item{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) (eq ($currentPage.Permalink) (.URL | absLangURL)) }} active{{end}}" href="{{ .URL | absLangURL }}" title="{{ .Title }}" target="{{ .Params.target }}">{{ .Name }}</a></li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
Loading…
Reference in a new issue