refactor: remove some usages of default in template

No longer needed thanks to Hugo's configuration merge
This commit is contained in:
Jimmy Cai
2022-06-12 13:51:46 +00:00
committed by GitHub
parent de22945155
commit 751d7d1753
8 changed files with 10 additions and 10 deletions
@@ -11,6 +11,6 @@
{{- $image := partialCached "helper/image" (dict "Context" . "Type" "opengraph") .RelPermalink "opengraph" -}}
{{- if $image.exists -}}
<meta name="twitter:card" content="{{ default `summary_large_image` .Site.Params.opengraph.twitter.card }}">
<meta name="twitter:card" content="{{ .Site.Params.opengraph.twitter.card }}">
<meta name="twitter:image" content='{{ absURL $image.permalink }}' />
{{- end -}}