How to Set a Fallback OpenGraph Image in Hugo-PaperMod

The prioritization of settings in the official documentation is not clearly outlined, so this guide organizes the process. Environment Hugo: v0.137 PaperMod: v8.0 $ hugo version hugo v0.137.0-59c115813595cba1b1c0e70b867e734992648d1b+extended windows/amd64 BuildDate=2024-11-04T16:04:06Z VendorInfo=gohugoio $ git submodule foreach 'git log -1 --oneline' Entering 'themes/PaperMod' 3e53621 (HEAD -> master, origin/master, origin/HEAD) Update PaperMod version to v8+ in license.css and license.js Conclusion Configure a fallback image placed in the static/images directory1 by specifying it in the params.images section of hugo.yaml: ...

2024-12-21

How to Add a Bluesky (bsky.app) Share Link to Hugo (PaperMod)

Bluesky is a decentralized social network based on the AT Protocol that has recently gained attention as an alternative to the former Twitter (now X). Due to its decentralized nature, user servers vary, making it technically challenging to create a universal sharing link. For this reason, Bluesky share links are not natively implemented in PaperMod1. However, Bluesky’s web client, bsky.app, provides a mechanism via its Web API to dynamically select the appropriate server based on the login state of the user clicking the share link (e.g., the official server bsky.social). By leveraging this mechanism, articles can be shared without encountering the challenges posed by decentralization. ...

2024-12-12

How to Deploy a Hugo (PaperMod) Site to Cloudflare Pages

Hugo is a static site generator built with Go. By using GitHub as a repository and Cloudflare Pages as a static file hosting service, it is possible to publish a site easily and at no cost. This guide outlines the steps required for deployment. For simplicity, it is assumed that readers have basic knowledge of Git and related tools. The blog-oriented theme “PaperMod” will be used as an example, and the commands are intended to be executed in a shell environment. ...

2024-12-10