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

Feature Request: Make it possible to re-use values from page.aliases for templating, e.g. for ID in ATOM feed #2447

Open
1peter10 opened this issue Mar 1, 2024 · 2 comments

Comments

@1peter10
Copy link

1peter10 commented Mar 1, 2024

First: Thank you for Zola! I love it - despite maybe using it for a thing it might not have been intended for with https://linuxphoneapps.org!

To find a quick way for persistent feed IDs (see #2404 another issue regarding that) I figured that I could just re-use just a value from aliases to be able to change file names. As far as I can tell, this is not currently possible.

My failed implementation can be found at https://framagit.org/linuxphoneapps/linuxphoneapps.frama.io/-/commit/5240a539792d88c4573ff5669dee800e371113f5.

Please tell me, if this is possible and I have made an obvious error, or otherwise, please consider this as a feature to add! :-)

@Keats
Copy link
Collaborator

Keats commented Mar 11, 2024

Using aliases for that seem like a hack? Do you need it for something other than an ID?

@1peter10
Copy link
Author

Admittedly, it's a total hack. But for those that care enough to put aliases, it could solve the ID problem in ATOM feeds at the same time without much extra effort once their feed template contains the if statement.

The only alternative to solving this easily I see right now would be adding another value an extra (e.g., extra.feed_id) that then is included in the feed if it exists, but that would be less elegant and an additional step to remember each time. 🙂

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

No branches or pull requests

2 participants