Skip to content

Commit ed9d888

Browse files
committed
Removes navigation links and updates guide entry point
Eliminates previous/next page navigation from guide footer to simplify user flow and reduce cognitive load. Changes guide entry point to use base path instead of latest version, providing more flexible access to content.
1 parent a523a2e commit ed9d888

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

module/layouts/_partials/components/guide/render-guide.html

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -243,19 +243,6 @@ <h4 class="h6 text-muted mb-3 flex-shrink-0 d-none d-md-block">{{ i18n "guide_ta
243243
{{- end }}
244244
</div>
245245
<footer class="content-footer mt-4">
246-
<nav class="content-navigation d-flex justify-content-between" aria-label="Previous and next page navigation">
247-
{{ with .PrevInSection }}
248-
<a href="{{ .Permalink }}" class="prev-content btn btn-outline-secondary">← {{ .Title }}</a>
249-
{{ else }}
250-
<span></span>
251-
{{ end }}
252-
{{ with .NextInSection }}
253-
<a href="{{ .Permalink }}" class="next-content btn btn-outline-secondary">{{ .Title }} →</a>
254-
{{ else }}
255-
<span></span>
256-
{{ end }}
257-
</nav>
258-
259246
<div class="back-to-home mt-3">
260247
<a href="/" class="text-decoration-none">{{ i18n "guide_back_to_home" }}</a>
261248
</div>

module/layouts/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h5 class="card-title mb-2 text-dark">{{ .Params.short_title | default .Title }}
2929
<!-- Action buttons with more inviting design -->
3030
<div class="d-flex flex-wrap gap-2 justify-content-center py-3">
3131
{{- $latestVersion := partial "functions/get-latest-version" . }}
32-
<a href="{{ partial "functions/safe-page-link.html" (path.Join .Path $latestVersion) }}" class="btn btn-primary btn-sm px-3">
32+
<a href="{{ partial "functions/safe-page-link.html" .Path }}" class="btn btn-primary btn-sm px-3">
3333
<i class="fa-solid fa-book-open me-2"></i>{{ i18n "read_online_button" }}
3434
</a>
3535
<a href="{{ partial "functions/safe-page-link.html" (path.Join .Path "translations") }}" class="btn btn-outline-secondary btn-sm px-3">

0 commit comments

Comments
 (0)