mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-12-24 03: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"
|
||||
url = "/categories/self-hosting/"
|
||||
weight = 1
|
||||
[[main.params]]
|
||||
target = "_self"
|
||||
|
||||
[[main]]
|
||||
identifier = "tips"
|
||||
name = "tips"
|
||||
url = "/categories/tips/"
|
||||
weight = 1
|
||||
[[main.params]]
|
||||
target = "_self"
|
||||
|
||||
[[main]]
|
||||
identifier = "code"
|
||||
name = "code"
|
||||
url = "/categories/code/"
|
||||
weight = 1
|
||||
[[main.params]]
|
||||
target = "_self"
|
||||
|
||||
[[main]]
|
||||
identifier = "backstage"
|
||||
name = "backstage"
|
||||
url = "/categories/backstage/"
|
||||
weight = 1
|
||||
[[main.params]]
|
||||
target = "_self"
|
||||
|
||||
[[main]]
|
||||
identifier = "slashes"
|
||||
name = "slashes"
|
||||
url = "/categories/slashes/"
|
||||
url = "/slashes/"
|
||||
weight = 10
|
||||
[[main.params]]
|
||||
target = "_self"
|
||||
|
||||
[[main]]
|
||||
identifier = "notes"
|
||||
name = "notes"
|
||||
url = "https://notes.runtimeterror.dev"
|
||||
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