Skip to content

Commit

Permalink
moved to single.html
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgs committed Oct 18, 2024
1 parent 739499b commit 1008d92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
{{ template "_internal/twitter_cards.html" . }}
<!------ ADD PAGE SPECIFIC HEADERS ------->
{{ block "header" . }} {{ end }}
{{ with .Params.relcanonical }}
{{ partial "misc/canonical.html" . }}
{{ end }}

<!--================= add analytics if enabled =========================-->
{{- partial "analytics.html" . -}}
<script>
Expand Down
5 changes: 4 additions & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{{ define "header" }}
<meta name="description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Title }}{{ end }}" />
{{ with .Params.relcanonical }}
<link rel="canonical" href="{{ . | relLangURL }}" itemprop="url" />
{{ end }}
{{ end }}

{{ define "navbar" }}
Expand Down Expand Up @@ -45,7 +48,7 @@ <h5 class="author-name">{{ partial "helpers/get-author-name.html" . }}</h5>
{{ else }}
<div style="margin-bottom: 80px;"></div>
{{ end }}

<div class="title">
<h1>{{ .Page.Title }}</h1>
</div>
Expand Down
1 change: 0 additions & 1 deletion layouts/partials/misc/canoncial.html

This file was deleted.

0 comments on commit 1008d92

Please sign in to comment.