diff --git a/README.md b/README.md index f2afdb0..f3efd53 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,10 @@ To enable it, add the `googleAnalytics` tag to your `config.toml`. It will be ad googleAnalytics = "UA-133700000-0" ``` +### OpenGraph + +Tale integrates Hugo's embedded OpenGraph template, enabling rich social previews for your page when it's shared as a link. To see how to configure it, consult the [Hugo OpenGraph template documentation](https://gohugo.io/templates/embedded/#configure-open-graph). + ### Custom summaries Tale allows for writing the summary of your posts manually by setting the `summary` variable in the page frontmatter. If this variable is not set, the summary that Hugo automatically generates will be used. diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 66d0e29..b6f5a38 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,6 +1,9 @@
{{ template "_internal/google_analytics_async.html" . }} + + {{ template "_internal/opengraph.html" . }} + {{- if .IsHome }}