Skip to content

Commit

Permalink
twitter: add atmark-prefix to site and creator
Browse files Browse the repository at this point in the history
Signed-off-by: smallkirby <ssmallkirby@gmail.com>
  • Loading branch information
smallkirby committed Oct 2, 2023
1 parent b74893b commit 4770986
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/head/seo/twitter-cards.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{{ with .Site.Params.twitterSite }}
<meta name="twitter:site" content="{{ . }}">
<meta name="twitter:site" content="@{{ . }}">
{{ end }}
{{ with .Site.Params.twitterCreator }}
<meta name="twitter:creator" content="{{ . }}">
<meta name="twitter:creator" content="@{{ . }}">
{{ end }}
<meta name="twitter:title" content="{{- with .Params.seo_title -}}{{- . -}}{{ else }}{{- .Title -}}{{ end }}{{ if (or (and (ne .Type "posts") (not .IsHome)) (and (not .IsPage) (not .IsHome))) }} | {{ .Site.Title -}}{{ end -}}">
<meta name="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
Expand Down

0 comments on commit 4770986

Please sign in to comment.