How this works
NOTE: This is a really rough README
Create a post
-
Create a file under
_posts/
with the formatYYYY-MM-DD-title.[html|md]
, e.g.2023-07-18-hello-world.md
. -
Add frontmatter to the file, e.g.:
--- layout: post ---
-
After the frontmatter, write the post using either plain Markdown or HTML (or both).
-
To work with images, save them in the
images/
directory and link them with HTML:<div style="text-align: center;"> <img src="{{ site.url }}/images/<YOUR_IMAGE_NAME>.png" width="50%"/> </div> <br>
Host site locally
To serve this site locally run:
jekyll serve
To include the draft posts stored under _drafts
, run:
jekyll serve --draft
Both serve the site at http://localhost:4000
.
Host site on GithubPages
There is no need to build anything.
Simply add the posts to the _posts
directory and do a git add <...>
and git push
.
They should appear in https://daneelsan.github.io (it may take a few minutes to update after pushing the changes).