https://github.com/patrick330602/hexo-generator-opengraph-image
Generate OpenGraph Images for your every post
https://github.com/patrick330602/hexo-generator-opengraph-image
Last synced: over 1 year ago
JSON representation
Generate OpenGraph Images for your every post
- Host: GitHub
- URL: https://github.com/patrick330602/hexo-generator-opengraph-image
- Owner: patrick330602
- License: mit
- Created: 2022-04-07T06:32:45.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-08T15:39:40.000Z (about 4 years ago)
- Last Synced: 2025-01-20T12:45:17.549Z (over 1 year ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hexo-generator-opengraph-image
Generate OpenGraph Images for your every post in Hexo.
## Usage
1. Install package by running `npm install --save hexo-generator-opengraph-image`;
2. include the `opengraph_image()` in the header section of your theme file (for example, in ejs you should input `<%- opengraph_image() %>`).
Default Configuration in `_config.yml`:
```yml
opengraph_image:
enable: true
main_color: '#fff'
secondary_color: "#000"
font_color: "#000"
title_font: "Bold 70pt Arial"
date_font: "Regular 30pt Arial"
date_style: "YYYY/MM/DD"
```