Skip to content

Commit

Permalink
.Site -> site, .Page -> page
Browse files Browse the repository at this point in the history
  • Loading branch information
yochem committed Sep 10, 2024
1 parent 0c82a27 commit ce52de5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html lang="{{ default "en" .Params.Language }}" dir="ltr">

<head>
<title>{{ if .Title }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
<title>{{ if .Title }}{{ .Title }} | {{ end }}{{ site.Title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<meta name="description" content="Yochem van Rosmalen personal website">
Expand All @@ -12,7 +12,7 @@
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@yoch3m" />
<meta name="twitter:creator" content="@yoch3m" />
<meta name="twitter:title" content="{{ .Site.Title }}" />
<meta name="twitter:title" content="{{ site.Title }}" />
<meta name="twitter:description" content="Dutch AI student" />
{{- if .Params.noindex -}}
<meta name="robots" content="noindex" />
Expand All @@ -38,7 +38,7 @@ <h1 aria-label="website title" lang="nl" translate="no">
<footer>
<hr>
<nav>
{{- $currentPageURL := .Page.RelPermalink -}}
{{- $currentPageURL := page.RelPermalink -}}
{{ range site.Menus.footer }}
<a {{ if (eq $currentPageURL .URL) -}}aria-current="page"{{- end }} aria-label="{{ .Name }} page" href="{{ .URL }}">
/{{ lower .Name }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ <h2>{{ title .Section }}</h2>
{{ .Content }}

<ul>
{{ range (where .Site.RegularPages "Section" .Section) }}
{{ range (where site.RegularPages "Section" .Section) }}
{{ if not .Params.Unlisted }}
<li style="line-height: 2">
<a href='{{ .RelPermalink }}'>
Expand Down

0 comments on commit ce52de5

Please sign in to comment.