mirror of https://github.com/lxndrblz/anatole.git

Eslam Hindawy
28.18.2021 c2e7f313b3d976f8bcf5012f2bcb350279e13fc5
Add open graph tags (#140)

Added Open Graph support
2 files modified
7 ■■■■■ changed files
README.md 4 ●●●● patch | view | raw | blame | history
layouts/partials/head.html 3 ●●●●● patch | view | raw | blame | history
README.md
@@ -24,6 +24,7 @@
- Katex support (optional)
- Formspree Contact Form (optional)
- Twitter Cards support
- Open Graph support
- MIT License
- Fontawesome 5.15.1 icons
- Custom CSS (optional)
@@ -286,6 +287,9 @@
```toml
images = ["post-cover.png"]
```
### Open Graph Support
The [internal template for Open Graph protocol](https://gohugo.io/templates/internal/#open-graph) uses a mix of configuration variables; settings in `config.toml` and frontmatter of  the page.
### Post Thumbnails
Thumbnails can be enabled easily by setting the `thumbnail` parameter in the frontmatter of a post to an image such as `"images/landscape.jpg"`.
layouts/partials/head.html
@@ -94,4 +94,7 @@
    <!-- Twitter Cards -->
    {{ template "_internal/twitter_cards.html" . }}
    <!-- Open Graph -->
    {{ template "_internal/opengraph.html" . }}
</head>