-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Suggestion: Use permalink instead of slug in Front Matter #2
Comments
That's maybe something to consider. It would make it easier to figure out the final URL if the formatter takes care of generating it, but would also make it hard to change permalink formats later on. I think I'm currently more inclined to instead make the expected permalink format configurable, rather than be the hard-coded node-format-microformat/index.js Line 307 in 8040c42
(To go a bit over the top: It would be neat if the top Micropub project that glues all three modules together would actually download the Jekyll config and use the data in there to configure the permalink 😄) |
I wasn't even thinking about that scenario. I don't use |
I see, you use just Won't you run quite a high risk of duplicates then? Three possible solutions that I'm thinking of:
Number 1 would be absolutely easiest and would enable you to deactivate the prefix for your blog (when also made configurable through the micropub glue) |
A closer look reveals that there's even more parts that may need to be configurable to adapt for both yours and my permalink formats. Will try to give it a look asap when I get some time. Luckily enough a bad result currently just gives a bad UX, no data corruption 👍 |
Yes, I did realize the issue was with permalinks. I'm just not a fan of date based URLs, but there is a possibility of duplicates. I think right now I can check if post.permalink is empty & use slug. Configurations would be nice, but no rush on my account. |
Poking around at this some more, for the short term I can set Obviously long term will be configuration. I might also manually change slug to permalink in my front matter generation for my own uses. |
Permalink formats are now configurable. While it doesn't solve this issue, it's still one step in the right direction. Related issue: voxpelli/webpage-micropub-to-github#3 |
Just a suggestion for default Front Matter, permalink is a predefined variable.
The text was updated successfully, but these errors were encountered: