change theme again :D

This commit is contained in:
naoufal zerai
2022-08-18 15:20:15 -04:00
parent dee5809c1a
commit 5dba10766d
287 changed files with 28330 additions and 1506 deletions

View File

@@ -0,0 +1,17 @@
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="{{- .Title -}}" />
{{- $imgurl := "" -}}
{{- if .Params.cover -}}
{{- $imgurl = .Params.cover -}}
{{- else if .Params.imgs -}}
{{- $imgurl = index .Params.imgs 0 -}}
{{- end -}}
{{- if gt (len $imgurl) 0 -}}
{{- $imgurl = lower $imgurl -}}
{{- if and (not (hasPrefix $imgurl "http://")) (not (hasPrefix $imgurl "https://")) -}}
{{- $imgurl = print .Permalink $imgurl -}}
{{- end -}}
<meta name="twitter:image" content="{{- $imgurl -}}" />
{{- end -}}