Skip to content

Commit 1cb9809

Browse files
committed
reintroduce edit-page link
1 parent 8da9a3f commit 1cb9809

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

assets/scss/layout.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ nav.sidebar {
144144

145145
&:hover {
146146
color: inherit;
147-
background: #f6f6f6;
147+
background: var(--background-1); // #f6f6f6;
148148
}
149149

150150
&.current-page {

layouts/partials/toc.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
<aside class="toc">
55
<h6>Auf dieser Seite</h6>
66
{{ . }}
7+
8+
{{ if $.File }}
9+
{{ $pathFormatted := replace $.File.Path "\\" "/" }}
10+
{{ $gh_repo := ($.Param "github_repo") }}
11+
{{ $gh_branch := ($.Param "github_branch") }}
12+
{{ $gh_repo_path := printf "%s/content/%s" $gh_branch $pathFormatted }}
13+
{{ $editURL := printf "%s/edit/%s" $gh_repo $gh_repo_path }}
14+
<a href="{{ $editURL }}" target="_blank" rel="noreferrer noopener">Diese Seite in GitHub bearbeiten</a>
15+
{{ end }}
716
</aside>
817
{{ end -}}
918
{{ end -}}

0 commit comments

Comments
 (0)