Skip to content

Commit

Permalink
Add meta param to make meta tags from the parameters section
Browse files Browse the repository at this point in the history
Longestboi committed Jul 19, 2024

Verified

This commit was signed with the committer’s verified signature.
rockerBOO Dave Lage
1 parent 4216fd5 commit ac3784b
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion content/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
title: "Home Page"
description: "The home page for my website."
description: "Game Programming & Personal Site"
type: page
meta:
google-site-verification:
content: "BV3w5dRQWBlXkZnC-LlLVDgTvNOY9XN4RjAq1oclktc"
# bannerImage: "/games/brick-breaker/brick-breaker.webp"
---
4 changes: 3 additions & 1 deletion themes/customTheme/layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -2,7 +2,9 @@

<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{{ .Params.description }}">
<meta name="google-site-verification" content="BV3w5dRQWBlXkZnC-LlLVDgTvNOY9XN4RjAq1oclktc">
{{ range $key, $value := $.Params.meta }}
<meta name="{{ $key }}" {{ range $k, $v := $value }}{{ printf "%s=\"%s\"" $k $v | safeHTMLAttr }}{{ end }}>
{{ end }}
<title>{{ .Page.Title }} - {{ .Site.Data._author.name }}</title>
<link rel="icon" type="image/x-icon" href="/img/favicon.png">

0 comments on commit ac3784b

Please sign in to comment.