Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 1.53 KB

README.md

File metadata and controls

40 lines (23 loc) · 1.53 KB

🌎 Source of foosel.net

Requirements

  • Hugo
  • Optional: Task (to run the tasks below)

Tasks

task serve

Starts the Hugo server, draft, future and expired content included. The server will be available at http://localhost:1313.

On Termux, the server will also be run with --noBuildLock as that is needed in that environment.

task build

Creates a production build of the site. The result will be placed in the public folder.

On Termux, the build will also be run with --noBuildLock as that is needed in that environment.

task new-post -- <title>

Creates a new post with the given title. The title will be used to generate a slug. A page bundle will be created at content/blog/<date>-<slug>. An index.md file with the given title, today's date and draft status will be placed there.

task new-til -- <title>

Creates a new TIL post with the given title. The title will be used to generate a slug. A new page will be created at content/til/<slug>.md, with the given title, today's date, an empty tag list and draft status.

task to-single -- <path>

Converts the given page bundle to a single page. The page bundle's content/<slug>/index.md will be moved to content/<slug>.md and the folder will be deleted. Note that this will not work if the page bundle contains any other files than index.md.

task to-bundle -- <path>

Converts the given single page to a page bundle. The single page's content/<slug>.md will be moved to content/<slug>/index.md.