mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 11:38:28 -04:00
fix open graph meta tags
This commit is contained in:
parent
c79bba520b
commit
e016910825
@ -21,9 +21,12 @@ enableRobotsTXT = true
|
||||
email = "jake@jarv.is"
|
||||
twitter = "@jakejarvis"
|
||||
github = "jakejarvis"
|
||||
facebook = "jakejarvis"
|
||||
facebook_id = "1329090853"
|
||||
|
||||
[params]
|
||||
domain = "jarv.is"
|
||||
facebook_app_id = "3357248167622283"
|
||||
gitRepo = "https://github.com/jakejarvis/jarv.is"
|
||||
wayback = "https://web.archive.org/web/20010501000000*/jakejarvis.com"
|
||||
copyrightFirstYear = "2001"
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "🎉 Cranky Birthday Boy on VHS Tape 📼"
|
||||
date: 1996-02-06 00:01:01-0400
|
||||
date: 1996-02-04 00:01:01-0400
|
||||
url: "/birthday"
|
||||
image: "thumb.png"
|
||||
type: videos
|
||||
|
@ -2,8 +2,9 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
{{ hugo.Generator }}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Page Not Found</title>
|
||||
<title>Page Not Found – {{ .Site.Title }}</title>
|
||||
<style>
|
||||
body {
|
||||
background: #efefef;
|
||||
@ -13,12 +14,12 @@
|
||||
padding: 0;
|
||||
}
|
||||
div#message {
|
||||
background: #fff;
|
||||
background: #ffffff;
|
||||
max-width: 400px;
|
||||
margin: 100px auto 16px;
|
||||
padding: 16px 32px;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 1px 3px #e0e0e0, 0 1px 2px #888;
|
||||
box-shadow: 0 1px 3px #e0e0e0, 0 1px 2px #888888;
|
||||
}
|
||||
div#message h1 {
|
||||
margin: 16px 0;
|
||||
@ -31,14 +32,14 @@
|
||||
line-height: 140%;
|
||||
}
|
||||
div#message a {
|
||||
color: #0077a7;
|
||||
color: #0e6dc2;
|
||||
}
|
||||
div#message a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
body, div#message {
|
||||
background: #fff;
|
||||
background: #ffffff;
|
||||
margin-top: 16px;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
@ -3,5 +3,4 @@
|
||||
</html>
|
||||
|
||||
{{"<!--" | safeHTML}} {{ hugo.Environment }} {{"-->" | safeHTML}}
|
||||
{{"<!--" | safeHTML}} {{ time.Now.UTC.Format "2006-01-02T15:04:05" }} {{"-->" | safeHTML}}
|
||||
{{"<!--" | safeHTML}} {{ hugo.Version }} ({{ hugo.CommitHash }}) {{"-->" | safeHTML}}
|
||||
|
@ -15,8 +15,19 @@
|
||||
<meta property="og:url" content="{{ .Permalink }}">
|
||||
<meta property="og:description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.description }}{{ end }}">
|
||||
<meta property="og:image" content="{{ if .Params.image }}{{ .Permalink }}images/{{ .Params.image }}{{ else }}{{ "me.jpg" | absURL }}{{ end }}">
|
||||
<meta property="fb:admins" content="1329090853">
|
||||
<meta property="fb:app_id" content="3357248167622283">
|
||||
{{- if .IsPage }}
|
||||
{{- if not .PublishDate.IsZero }}
|
||||
<meta property="article:published_time" content="{{ .PublishDate.Format "2006-01-02T15:04:05-07:00" | safeHTMLAttr }}">
|
||||
{{- else if not .Date.IsZero }}
|
||||
<meta property="article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTMLAttr }}">
|
||||
{{- end }}
|
||||
{{- with .Site.Author.facebook }}
|
||||
<meta property="article:author" content="https://www.facebook.com/{{ . }}">{{ end }}
|
||||
{{- with .Params.tags }}{{ range . }}
|
||||
<meta property="article:tag" content="{{ . }}">{{ end }}{{ end }}
|
||||
{{- end }}
|
||||
<meta property="fb:admins" content="{{ .Site.Author.facebook_id }}">
|
||||
<meta property="fb:app_id" content="{{ .Site.Params.facebook_app_id }}">
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:domain" content="{{ .Site.Params.domain }}">
|
||||
<meta name="twitter:site" content="{{ .Site.Author.twitter }}">
|
||||
@ -25,7 +36,8 @@
|
||||
<meta name="twitter:widgets:csp" content="on">
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
<link rel="alternate" type="application/rss+xml" href="{{ "index.xml" | absURL }}" title="{{ .Site.Title }} (RSS)">
|
||||
{{ $style := resources.Get "sass/main.scss" | resources.ToCSS (dict "targetPath" "style.css" "outputStyle" "compact") }}<link rel="stylesheet" href="{{ $style.Permalink }}">
|
||||
{{- $style := resources.Get "sass/main.scss" | resources.ToCSS (dict "targetPath" "style.css" "outputStyle" "compact") }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
||||
<link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | absURL }}">
|
||||
<link rel="icon" href="{{ "favicon-192.png" | absURL }}" sizes="192x192">
|
||||
<link rel="icon" href="{{ "favicon-48.png" | absURL }}" sizes="48x48">
|
||||
|
@ -1,8 +1,8 @@
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<title>{{ .Site.Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
||||
<description>{{ .Title }}</description>
|
||||
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
||||
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
||||
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user