Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add QR code generation to image functions for offline permalinks #13205

Open
BartG95 opened this issue Dec 30, 2024 · 2 comments · May be fixed by #13212
Open

Add QR code generation to image functions for offline permalinks #13205

BartG95 opened this issue Dec 30, 2024 · 2 comments · May be fixed by #13212

Comments

@BartG95
Copy link

BartG95 commented Dec 30, 2024

This might sound a bit odd for a website, but the idea is to add a QR code of the permalink of a page to that page itself, possibly only displayed by a @media print css rule. Then when someone encounters the printed version, they can easily go to the up to date online version.

@bep
Copy link
Member

bep commented Dec 30, 2024

Yea, that would be useful.

This looks solid:

https://github.com/rsc/qr

I suggest we make it:

{{ images.QR "https://example.org" }}

Which would produce a image resource that could be used as an overlay.

@jmooring
Copy link
Member

Having gone through a similar exercise in a document management context, we will want to test this by printing a page at 600 dpi, then scanning with a phone.

jmooring added a commit to jmooring/hugo that referenced this issue Jan 2, 2025
jmooring added a commit to jmooring/hugo that referenced this issue Jan 2, 2025
jmooring added a commit to jmooring/hugo that referenced this issue Jan 2, 2025
@jmooring jmooring linked a pull request Jan 2, 2025 that will close this issue
jmooring added a commit to jmooring/hugo that referenced this issue Jan 2, 2025
jmooring added a commit to jmooring/hugo that referenced this issue Jan 2, 2025
jmooring added a commit to jmooring/hugo that referenced this issue Jan 3, 2025
jmooring added a commit to jmooring/hugo that referenced this issue Jan 3, 2025
jmooring added a commit to jmooring/hugo that referenced this issue Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants