dolce: footer download link for --zip Markdown archives - #1
Open
peterkaminski wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion to markpub/markpub#34 (and its PR: markpub/markpub#35).
When a site is built with the new
markpub build --zipoption, the build exposeszip_sitepath(site-absolute path to the dated zip archive of the site's Markdown pages) andzip_filenameto every template, both empty strings otherwise. This adds the user-visible download link to dolce's footer, guarded in the house style:{% if zip_sitepath %} <div>Download <a href="{{zip_sitepath}}">all pages</a> (Markdown) for Obsidian or LLMs.</div> {% endif %}Sites built without
--zip(or with a markpub that predates it) render no footer change. Verified against a real site build with the markpub branch: link renders with--zip, absent without.Elysium and forte are left unchanged here — happy to add the same guarded block to them if wanted.
🤖 Drafted by Saga (Claude) under Pete's direction.
🤖 Generated with Claude Code