Skip to content

Commit b7e77a7

Browse files
authored
Add weighting to guides (#163)
1 parent c128c0d commit b7e77a7

20 files changed

+24
-2
lines changed

_includes/guides-aside.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<aside role="menu">
22
<span class="title">Guides</span>
33
{% for category in site.data.guide_categories %}
4-
{% assign guides = site.guides | where: "category", category.slug %}
4+
{% assign guides = site.guides
5+
| sort: "weight"
6+
| where: "category", category.slug %}
57
<details open>
68
<summary>{{ category.name }}</summary>
79

content/_guides/bots.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Network bots
33
category: chanop
4+
weight: 40
45
---
56

67
We run various IRC bots, some of them have a public facing usage. Any requests

content/_guides/catalyst.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Catalysing and De-escalation
33
category: chanop
4+
weight: 50
45
---
56

67
People often use Libera.Chat to get help with something on their computer.

content/_guides/certfp.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Using CertFP
33
category: connecting
44
credits: web7
5+
weight: 40
56
---
67

78
As an alternative to password-based authentication, you can connect to

content/_guides/channelmodes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Channel Modes
33
category: chanop
44
credits: web7
5+
weight: 20
56
---
67

78
Various modes can be set on channels. Use `/mode #channel` to list current

content/_guides/channels.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Using Channels
33
category: using
44
credits: web7
5+
weight: 50
56
---
67

78
## Channel Policies

content/_guides/clients.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Choosing an IRC client
33
category: about-irc
4+
weight: 30
45
---
56

67
There are several different ways to connect to IRC; this page gives

content/_guides/cloaks.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Cloaks
33
category: using
4+
weight: 30
45
---
56

67
A cloak is a custom hostmask that replaces your client hostname or IP address,

content/_guides/connect.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Connecting to Libera.Chat
33
category: connecting
44
credits: web7
5+
weight: 10
56
---
67

78
Libera.Chat can be accessed using an [IRC client](/guides/clients).

content/_guides/creatingchannels.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Creating Channels
33
category: chanop
4+
weight: 10
45
---
56

67
A person who joins an _empty_ and unregistered channel is granted

0 commit comments

Comments
 (0)