Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/workeffortwaste/netlify-on-demand-social-images
Dynamic social share images created using Netlify On-demand Builders.
https://github.com/workeffortwaste/netlify-on-demand-social-images
netlify netlify-functions
Last synced: 16 days ago
JSON representation
Dynamic social share images created using Netlify On-demand Builders.
- Host: GitHub
- URL: https://github.com/workeffortwaste/netlify-on-demand-social-images
- Owner: workeffortwaste
- Created: 2021-04-27T11:03:20.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-28T08:09:52.000Z (almost 4 years ago)
- Last Synced: 2024-11-18T21:19:08.062Z (3 months ago)
- Topics: netlify, netlify-functions
- Language: HTML
- Homepage:
- Size: 15.6 KB
- Stars: 18
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Netlify On-demand Social Images
Create dynamic social share images using Netlify On-demand Builders.
**Like this project? Help support my projects and buy me a coffee via [ko-fi](https://ko-fi.com/defaced)**.
## Getting Started
### Usage
Add the `/netlify/functions/social-image` directory to your own project and in your social card image tags link to the function's exposed URL adding the text you would like displayed.
`https://your-project.netlify.app/.netlify/functions/social-image/title/`
Make sure to also add the required dependencies from `package.json` to your project.
### Template
The image template can be easily modified and is generated from the `template.html` file found in the `/netlify/functions/social-image` directory.
The h1 tag is automatically modified by the function to include the specified title text.
## Author
Chris Johnson - [defaced.dev](https://defaced.dev) - [@defaced](http://twitter.co.uk/defaced/)