You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,12 @@ external_links:
30
30
31
31
# HAM 🥩
32
32
33
+
> [!IMPORTANT]
34
+
>
33
35
> **BREAKING CHANGE:** HAM is currently being upgraded to Halfmoon 2.0, which introduce visual breaking changes. See <https://github.com/reinhart1010/HAM/issues/6>.
34
36
37
+
{% youtube 0FKaIiRhUME %}
38
+
35
39
HAM is a Jekyll-based boilerplate template for generating better, static wiki-style websites. HAM can be instantly used to build static wiki pages. But the best of all, the default theme of HAM can be easily customized to create more personalized wiki pages, unlike those from MediaWiki, for example.
36
40
37
41
This project is built to replace the current, MediaWiki installation at <hackapedia.reinhart1010.id> after I found out difficult to create custom styles for it, while other, Git-based alternatives such as GitHub Wiki sucks (no, really) and may not support self-hosting on shared hosting providers.
@@ -128,6 +132,31 @@ ham:
128
132
129
133
Note: You can also override the whole favicon settings (either to entirely remove, or adding mobile or browser-specific icon formats) by overriding `_includes/favicon.html`.
130
134
135
+
### Navigation
136
+
HAM currently provides two navigation areas: the **navigation bar** and the **index** (as on the sidebar).
137
+
138
+
#### Navigation Bar
139
+
You can freely add items in the navigation bar by modifying `_includes/navbar.html`, including placing additional nested menus, dialogs/modals, and other HTML tags.
140
+
141
+
#### Sidebar
142
+
Just like the "On This Page" section, you can add custom sections into the sidebar. Note that the configuration is stored **outside** the `ham` section of `_config.yml` (see below example).
143
+
144
+
```yaml
145
+
ham:
146
+
# Other HAM configuration here
147
+
data:
148
+
index:
149
+
- name: "Customise Me"
150
+
id: "customize-me"
151
+
children:
152
+
- name: "Sample Menu 1"
153
+
url: "#"
154
+
- name: "Sample Menu 2"
155
+
url: "#"
156
+
- name: "Sample Menu 3"
157
+
url: "#"
158
+
```
159
+
131
160
### Comments
132
161
HAM provides built-in support for Facebook, Giscus, Telegram, and Utteranc.es widgets plugins. However, you can also add your own widgets or links by following these instructions.
<p><strongclass="text-warning-emphasis">This page contains an embedded video from YouTube.</strong> You can watch the video directly here, on YouTube, or on alternative viewers including <atarget="_blank" href="https://invidious.io">Invidious</a> and <aatarget="_blank" href="https://piped.kavin.rocks">Piped</a>.</p>
22
+
<selectid="yt-embed-choice" name="yt-embed-choice" class="form-select mb-1" aria-label="Choose how would you like to view this content." onchange="updateInstanceField()">
23
+
<optionvalue="yt-embed" selected>Watch video here (YouTube)</option>
24
+
<optionvalue="iv-embed">Watch video here (Invidious)</option>
0 commit comments