Skip to content

Commit

Permalink
Updated theme
Browse files Browse the repository at this point in the history
  • Loading branch information
cmahnke committed Feb 13, 2024
1 parent 20c5df5 commit 172c278
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/fix-section-links.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- $content := .content -}}
{{- $nav := .nav -}}
{{- $prefix := .prefix -}}
{{- if strings.Contains $content `"./` -}}
{{- $content = replace $content `"./` (printf `"./%s/` $nav) -}}
{{- $content = replace $content `"./` (printf `"./%s/` $prefix) -}}
{{- end -}}
{{- return $content -}}
2 changes: 1 addition & 1 deletion layouts/partials/themes/orange.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h1 class="section-content-title">
{{- .Title -}}
</h1>

{{- $content := partial "partials/fix-section-links.html" (dict "content" .Content "nav" $nav) -}}
{{- $content := partial "partials/fix-section-links.html" (dict "content" .Content "prefix" $nav) -}}

<div class="section-content-body">
{{- $content | safeHTML -}}
Expand Down

0 comments on commit 172c278

Please sign in to comment.