forked from voxpelli/node-format-microformat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
341db44
commit bf9ad7b
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains 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
bf9ad7b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@juandpinto Is there something I can help you out with here? 🙂
bf9ad7b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@voxpelli Yes please. I'm basically trying to figure out how to customize small parts of the front matter so that the posts match what I usually do for my Hugo website. Here I'm trying to find a way to use the beginning of the post's content for the slug. My microposts don't have a title and the filename follows the format
:year-:month-:day-:slug
, with:slug
being the first three words of a post (hello-my-friends
). Right now, a random number is assigned as the slug.Also, I haven't quite figured out how to get my micropub endpoint to use this version of format-microformat. Here's what I have now, but it's not working.
Thanks in advance, and thanks for making such a great tool!
bf9ad7b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be a nice addition – I currently don't have that myself either, see this post in my Jekyll site: https://github.com/voxpelli/voxpelli.github.com/blob/master/_posts/2018-12-16-40669.md (Here on my site: https://voxpelli.com/social/2018/12/40669/)
The best solution would be to alter the main project to expose the
contentSlug
option there: https://github.com/voxpelli/webpage-micropub-to-github/blob/59e3b686be793b5e156bef97fa3e07bc1252f970/lib/handler.js#L68-L76I'll add an issue for that 👍 Hopefully I can find time to add it very soon 🙂
bf9ad7b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added here: voxpelli/webpage-micropub-to-github#90
Feel free to ask whatever else you're wondering and/or feel should be changed – I'm always happy to receive feedback 🙂
bf9ad7b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonderful, thanks!