diff --git a/config.yaml b/config.yaml index fafd340..a2febe5 100644 --- a/config.yaml +++ b/config.yaml @@ -115,6 +115,9 @@ params: page: [] opengraph: + # If true,'og:title' will set 'Title - SiteName' else will be just 'Title'. + # If this params not set, default will be 'false'. + title_include_site_name: false twitter: # Your Twitter username site: diff --git a/layouts/partials/head/opengraph/provider/base.html b/layouts/partials/head/opengraph/provider/base.html index 3e51d37..909a4b1 100644 --- a/layouts/partials/head/opengraph/provider/base.html +++ b/layouts/partials/head/opengraph/provider/base.html @@ -1,7 +1,13 @@ {{- $title := partialCached "data/title" . .RelPermalink -}} {{- $description := partialCached "data/description" . .RelPermalink -}} - +