Hi there,
I am failing at the seemingly trivial task to link a html page in my hugo blog (I use the hugo-book theme ). I’d like to use the relref shortcode, which hopefully solves the problem, but I can find it either… Please enlighten me. See details under GitHub - openscopeproject/InteractiveHtmlBom: Interactive HTML BOM generation plugin for KiCad, EasyEDA, Eagle, Fusion360 and Allegro PCB designer
your link points to the generation part…
maybe a working example of a generated “HTML” page will enlighten us.
the easiest way I guess would be to copy all that stuff to a folder in /static… just guessing
I prefer page bundles, I’ve tried also the static folder but didnt work yet…
i would say. give us something to play with…
Sure,
it looks something like that: Interactive BOM for KiCAD
With this content structure:
content/
├── p1/
│ ├── foo.html
│ └── index.md
└── _index.md
And this content/p1/index.md
file:
+++
title = 'p1'
date = 2025-07-02T10:52:27-07:00
+++
[foo](foo.html)
You need to do this in your site config:
[contentTypes.'text/markdown']
A pretty nasty work-around, copying the ibom to the correct folder did the work, but as said its pretty nasty and I would liike to have a better approach, linking other files like ltspice’s asc are not a problem, zip and tar.gz files either…
Maybe a js-script could solve this issue (?)
I don’t understand. Are you saying that my previous response is a nasty workaround?
Oh no, no. Definitly not!
I meant my approach of copying the file into the public folder is nasty. Maybe Ineed to adjust the static direcory so that it workd
Ok not sure what was wrong before, but with that step in between I could sove it by moving it into /static - many thanks!
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.