Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amy-keibler/blog-opengraph-image
https://github.com/amy-keibler/blog-opengraph-image
Last synced: about 19 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/amy-keibler/blog-opengraph-image
- Owner: amy-keibler
- Created: 2020-08-16T21:48:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-30T00:27:23.000Z (5 months ago)
- Last Synced: 2024-06-30T10:38:59.508Z (5 months ago)
- Language: Rust
- Size: 529 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blog Image
A companion tool for generating [OpenGraph](https://ogp.me/) compatible images for [Zola](https://www.getzola.org/) static websites.
Given a filepath to a markdown document that is formatted for use in `zola`, the tool generates a `.png` file with the same name in the same folder.
The `title` and `tags` fields from the header section (the section surrounded with `+++`) are used, but the tool will be customized in the future to include the ability to overwrite the `title` and pull in additional fields.
The `tags` are used to see if any custom backgrounds should be used, with a fallback of a default random bubbles background. Right now, `rust` fills the background with Ferris images.
Currently, this is heavily customized to [my blog](https://blog.amy-k.net/)'s use-case.