Skip to content

Commit d5bedef

Browse files
committed
Add self-link to each documentation topic.
Frustratingly is-small has no effect when inside a title/subtitle element. I wanted to put it immediately after the title, but then it was distractingly huge.
1 parent 3ed5ce8 commit d5bedef

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

layouts/docs/summary.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11

2-
<h2 class="title is-h2" id="{{ .Title | urlize }}">{{ .Title }}</h2>
2+
<h2 class="title is-2" id="{{ .Title | urlize }}">
3+
{{ .Title }}
4+
</h2>
5+
<p class="subtitle">
6+
<a href="#{{ .Title | urlize }}">
7+
<span class="icon is-small">
8+
<i class="fas fa-link"></i>
9+
</span>
10+
</a>
11+
</p>
312
<div class="content">
413
{{ .Content }}
514
</div>

0 commit comments

Comments
 (0)