ogp2hugolinkcard
v1.0.2
Published
A CLI tool to fetch OGP info from a URL and generate a Hugo link card shortcode, copying it to the clipboard.
Downloads
10
Maintainers
Readme
ogp2hugolinkcard
A CLI tool that fetches OGP information from a given URL and generates a Hugo-compatible link card shortcode. The result is automatically copied to your clipboard for easy use.
If you prefer a browser-based tool, check out the Web version:
👉 ogp2hugolinkcard-web
Requirements
- Node.js 18 or higher
Features
- Extracts OGP information (title / description / image) from the specified URL
- Generates a
linkCardshortcode for Hugo - Automatically copies the generated shortcode to your clipboard
Installation
npm install -g ogp2hugolinkcardUsage
ogp2hugolinkcard https://example.comAfter execution, the shortcode will be copied to your clipboard.
Example Output
{{< linkCard
url="https://example.com"
title="Example Title"
description="This is an example description."
image="https://example.com/image.jpg"
>}}Dependencies
License
This project is licensed under the Apache License 2.0.
