Skip to content

Commit

Permalink
Add custom HTML title
Browse files Browse the repository at this point in the history
  • Loading branch information
clementbiron committed Jun 13, 2024
1 parent f273f82 commit ca96e7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion content/terms/reference.en.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Terms reference"
title: "Reference"
html_title: "Terms reference"
weight: 4
---

Expand Down
2 changes: 1 addition & 1 deletion themes/opentermsarchive/layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<head>
<meta charset="utf-8" />
<title>Open Terms Archive - {{ .Title}}</title>
<title>{{ with .Param "html_title" }}{{ . }}{{ else }}{{ .Title }}{{ end }}</title>
<meta name="description" content="{{ .Description }}" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
{{ $styles := resources.Get "css/loader.css" | toCSS | postCSS (dict "config" "./assets/css/postcss.config.js") }}
Expand Down

0 comments on commit ca96e7f

Please sign in to comment.