Skip to content

Commit

Permalink
RelPermalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyoz committed Aug 15, 2024
1 parent c28d754 commit 704e4c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />

<meta property="og:title" content="{{ if ne RelPermalink "/" }} {{ .Title }} &middot; {{ end }} {{ .Site.Title }}" />
<meta property="og:title" content="{{ if ne .RelPermalink "/" }} {{ .Title }} &middot; {{ end }} {{ .Site.Title }}" />
<meta property="og:site_name" content="{{ .Site.Title }}" />
<meta property="og:url" content="{{ .Permalink }}" />

Expand All @@ -23,7 +23,7 @@
{{ end }}

<title>
{{ if ne RelPermalink "/" }} {{ .Title }} &middot; {{ end }} {{ .Site.Title }}
{{ if ne .RelPermalink "/" }} {{ .Title }} &middot; {{ end }} {{ .Site.Title }}
</title>

<meta name="description" content="{{ .Site.Params.description }}" />
Expand Down Expand Up @@ -57,11 +57,11 @@
{{ if .Site.Params.RSSLink}}
<link href="{{.Site.Params.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{else}}
{{ if ne RelPermalink "/" }}
{{ if ne .RelPermalink "/" }}
<link href="{{ .Site.BaseUrl }}index.xml" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
{{if .IsNode}}
<link href="{{.RSSLink}}" rel="alternate" type="application/rss+xml" title="{{ if ne RelPermalink "/" }}{{ .Title }} &middot; {{ end }}{{ .Site.Title }}" />
<link href="{{.RSSLink}}" rel="alternate" type="application/rss+xml" title="{{ if ne .RelPermalink "/" }}{{ .Title }} &middot; {{ end }}{{ .Site.Title }}" />
{{end}}
{{end}}
{{.Hugo.Generator}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h3 class="nav-title">Menu</h3>
<ul>
{{ range .Site.Menus.main }}
<li class="nav-opened " role="presentation">
<a href="{{RelPermalink}}">{{.Name}}</a>
<a href="{{ .RelPermalink}}">{{.Name}}</a>
</li>
{{end}}
</ul>
Expand Down

0 comments on commit 704e4c4

Please sign in to comment.