-
Notifications
You must be signed in to change notification settings - Fork 0
Simple Guide with Hugo
Note
WIP notice! Not fully done.
This will be a simply guide on how to use this plugin with hugo and GitHub pages. Using other site generator should have a similar approach.
Please read the README to understand how this plugin works!
Follow Hugo's guide: Quick start | Hugo and Host on GitHub Pages | Hugo.
By doing this, you should now have
- A GitHub repo, whose
content/posts
directory containes some demo posts. - A website hosted on GitHub Pages.
Open Obsidian Community plugins list and install this plugin. Then enable it and go to it's settings.
Most settings should be easy to understand, besides these:
- Target Path: should be
content/posts
in this case - Post prefix: should be
posts
in this case - Published flag: I'll use
is_published
in this example, since hugo considers the defaultpublished
value as an alias ofpublishedDate
/
Add is_published: true
to those notes you want to upload. Also don't forget to add a slug property.
Click the Upload All button on the ribbon bar. If everything goes well, your notes should be pushed to the content/posts
dir in remote repo, and then deployed to the website!
Please consider giving a star to this project!