aboutsummaryrefslogtreecommitdiff
path: root/layouts/_markup/render-link.html
Commit message (Collapse)AuthorAge
* Drop scripting URL schemes from links and imagesNicholas Johnson19 hours
| | | | | | | | | | | | | | | | | Both render hooks passed the destination through safeURL, which bypasses the sanitising that html/template would otherwise apply, so a javascript: or data:text/html destination in Markdown became a live scripting URL in the page. That matters for any site built from content its author did not write. safeURL cannot simply be dropped: it is what allows gemini:// and other schemes html/template does not recognise to survive, which this theme depends on. Reject the scripting schemes explicitly instead, render the link text on its own, and warn during the build so the author can see what was dropped. data: is still allowed for images, where it is a legitimate way to inline one. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* Migrate fully to Hugo's new template systemNicholas Johnson2025-07-26
This was the only way I could get term pages to consistently render correctly.