tutorials
Create your own digital garden on Github
|
modified
|
Sunday 9 August 2026 |
Edited: Sunday 9 August 2026

tutorial
Create a Repository ¶
Assuming your user name on github is user-name:
- Create a repository in your account called user-name.github.io : https://github.com/new
- Go to repository Settings (last tab on top of the repository)
- Go to Pages from the sidebar under Code and automation
- Under Build and deployment > Source choose Github Actions
Create A Home page ¶
- Go to your repository Code page (first tab at the top of the repository)
- Click Add file > Create new file
- Name your file: index.md
- Add any content to your file. for example: Hello world!
- Click Commit new file
- Go to your repository Code page
- Click Add file > Create new file
- Name your file .github/workflows/xlog.yml
- Add The following content to your file
1name: Xlog
2
3on:
4 push:
5 branches: [ "master" ]
6
7 # Allows you to run this workflow manually from the Actions tab
8 workflow_dispatch:
9
10permissions:
11 contents: read
12 pages: write
13 id-token: write
14
15concurrency:
16 group: "pages"
17 cancel-in-progress: true
18
19jobs:
20 build:
21 runs-on: ubuntu-latest
22 steps:
23 - uses: emad-elsaid/xlog/action@master
24 with:
25 version: v1.8.0
26 args: --build . --sitename "user-name"
27 remove-root-markdown: true
- if your main branch name is different than
master please change it in the previous file.
- Make sure you replace any occurrence of user-name with your user name.
- Click Commit new file
- Go to Actions tab. you should find a run in progress. After it completes move to the next step.
Visiting your digital garden ¶
- Now your digital garden should be available under user-name.github.io
- Visit the previous URL to make sure everything works
- If the page doesn’t appear with Hello world! content (or the content you wrote) then something is wrong with the previous steps.
Writing new pages ¶
- When you want to add a new page to your garden add the file in your repository and make sure it’s in .md (Markdown) format.
- After Github finishes building the page should be served as HTML with the same name without .md extension
- For example about.md will be served as /about
- keep your files names meaningful. as Xlog will autolink pages together by the file name.
- so in any page when you have the word about in the text, Xlog will convert it to a link to the about page.
Backlinks
See Also