Skip to content

Commit

Permalink
nuke og images
Browse files Browse the repository at this point in the history
  • Loading branch information
aviskase committed Mar 13, 2024
1 parent d12511a commit 57bee5d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions layouts/partials/opengraph.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,6 @@
{{ end }}


{{- $images := $.Resources.ByType "image" -}}
{{- $featured := $images.GetMatch "*feature*" -}}
{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}}
{{- with $featured -}}
<meta property="og:image" content="{{ $featured.Permalink }}"/>
<meta property="og:image:height" content="630" />
<meta property="og:image:width" content="1200" />
<meta name="twitter:image" content="{{ $featured.Permalink }}" />
{{ else -}}
{{- with $.Site.Params.images -}}
<meta property="og:image" content="{{ index . 0 | absURL }}"/>
<meta property="og:image:height" content="200" />
<meta property="og:image:width" content="200" />
<meta name="twitter:image" content="{{ index . 0 | absURL }}" />
{{ end }}{{ end }}

{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}
{{- if $isArticle }}
{{- if not .PublishDate.IsZero }}<meta property="article:published_time" {{ .PublishDate.Format $iso8601 | printf "content=%q" | safeHTMLAttr }} />
Expand Down
Binary file removed static/logo.png
Binary file not shown.
Binary file removed static/site-feature.png
Binary file not shown.

0 comments on commit 57bee5d

Please sign in to comment.