mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-21 05:29:31 -07:00
refactor(baseof.html): update language attribute to use site.LanguageCode variable for better localization support
refactor(baseof.html): update page title to use site.Title variable for consistency and easier maintenance refactor(nav.html): update anchor tags to use relURL instead of relLangURL for correct URL generation refactor(nav.html): update link text to use .Title instead of .Identifier for better readability
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="{{- site.LanguageCode -}}">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>{{ .Site.Params.title }}</title>
|
<title>{{ site.Title }}</title>
|
||||||
{{- partial "head/link.html" -}}
|
{{- partial "head/link.html" -}}
|
||||||
{{- partial "head/meta.html" -}}
|
{{- partial "head/meta.html" -}}
|
||||||
{{- partial "head/seo.html" -}}
|
{{- partial "head/seo.html" -}}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body lang="{{- site.LanguageCode -}}">
|
||||||
<div id="main">
|
<div id="main">
|
||||||
{{- block "main" . -}}
|
{{- block "main" . -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
<nav>
|
<nav>
|
||||||
<div class="navArtist">
|
<div class="navArtist">
|
||||||
<a href="/">{{ .Site.Params.title }}</a>
|
<a href="/">{{ site.Title }}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="links">
|
<div class="links">
|
||||||
{{- $index := 0 -}}
|
{{- $index := 0 -}}
|
||||||
{{- $menus := .Site.Menus.main -}}
|
{{- $menus := .Site.Menus.main -}}
|
||||||
{{- $len := len $menus }}
|
{{- $len := len $menus }}
|
||||||
{{- range $menus -}}
|
{{- range $menus -}}
|
||||||
{{- $url := .URL | relLangURL -}}
|
{{- $url := .URL | relURL -}}
|
||||||
{{- if eq (add $index 1) $len -}}
|
{{- if eq (add $index 1) $len -}}
|
||||||
<a href="{{- .URL | relLangURL -}}" class="link">{{- .Identifier -}}</a>
|
<a href="{{- .URL | relURL -}}" class="link">{{- .Title -}}</a>
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<a href="{{- .URL | relLangURL -}}" class="link">{{- .Identifier -}}</a>, 
|
<a href="{{- .URL | relURL -}}" class="link">{{- .Title -}}</a>, 
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $index = add $index 1 -}}
|
{{- $index = add $index 1 -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user