Skip to content

dolce: footer download link for --zip Markdown archives - #1

Open
peterkaminski wants to merge 1 commit into
mainfrom
zip-download-link
Open

dolce: footer download link for --zip Markdown archives#1
peterkaminski wants to merge 1 commit into
mainfrom
zip-download-link

Conversation

@peterkaminski

Copy link
Copy Markdown
Member

Companion to markpub/markpub#34 (and its PR: markpub/markpub#35).

When a site is built with the new markpub build --zip option, the build exposes zip_sitepath (site-absolute path to the dated zip archive of the site's Markdown pages) and zip_filename to 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant