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

allow to download page source #379

Open
vincent-peugnet opened this issue Jan 8, 2024 · 1 comment
Open

allow to download page source #379

vincent-peugnet opened this issue Jan 8, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@vincent-peugnet
Copy link
Owner

vincent-peugnet commented Jan 8, 2024

For user that can edit a page, allow them to download the main content of the page.

The same way that it's possible to download the full JSON by adding /download after the ID of the page.
This could be by adding .md after the page ID or /source, or /content.
Maybe keeping the usage of the / logic is clearer and technically easier.

Later, this could be an option to allow visitor to access this source or not.

One usage I see is to add a button in page template that lonk to this source download.

<a href"%ID%/content">download markdown source</a>
@vincent-peugnet vincent-peugnet added the enhancement New feature or request label Jan 8, 2024
@vincent-peugnet
Copy link
Owner Author

One possible strategy could be to share source only if the page contain a link to it. 🤪

For example, a page that have:

<a href="%ID%.md"></a>

an attribute will be triggered during render.

It's interesting as it does not need any new button, but it's kind of strange.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant