Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
John
breen-blog
Commits
e8216ef6
Commit
e8216ef6
authored
Aug 17, 2020
by
John Breen
Browse files
Clean up meta tags in header
parent
5001291d
Changes
2
Hide whitespace changes
Inline
Side-by-side
site/config.toml
View file @
e8216ef6
baseurl
=
"
/
"
baseurl
=
"
https://breen.tech
"
languageCode
=
"en-us"
languageLang
=
"en"
title
=
"breen.tech"
...
...
site/layouts/partials/head.html
View file @
e8216ef6
<head>
<title>
{{ .Title }} | {{ $.Site.Title }}
</title>
{{ $stylesheet := .Site.Data.webpack.main }}
{{ with $stylesheet.css }}
<link
href=
"{{ relURL . }}"
rel=
"stylesheet"
>
{{ end }}
{{ with $stylesheet.css }}
<link
href=
"{{ relURL . }}"
rel=
"stylesheet"
>
{{ end }}
<!-- Only add post CSS if the current page is a post -->
{{if eq .Type "post"}}
{{ $post := .Site.Data.webpack.post }}
{{ with $post.css }}
<link
href=
"{{ relURL . }}"
rel=
"stylesheet"
>
<link
href=
"{{ relURL . }}"
rel=
"stylesheet"
>
{{ end }}
{{end}}
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"x-ua-compatible"
content=
"ie=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, viewport-fit=cover"
>
...
...
@@ -30,6 +25,7 @@
<!-- Open Graph -->
<meta
property=
"og:type"
content=
"business.business"
>
<meta
property=
"og:title"
content=
"John Breen | Developer"
>
<meta
property=
"og:url"
content=
"/"
>
<meta
property=
"og:title"
content=
"{{ .Title }} | {{ $.Site.Title }}"
>
<meta
property=
"og:description"
content=
"{{$description}}"
>
<meta
property=
"og:url"
content=
"{{ .Permalink | absURL }}"
>
</head>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment