Skip to content

Commit 88879b9

Browse files
Fix plaintext option
1 parent 95875c1 commit 88879b9

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
{{- $slug := .File.TranslationBaseName -}}
2-
{{- $outputPath := printf "%s.md" $slug -}}
3-
{{- .Page.Store.Set "RelativePermalink" (print "/" $outputPath) -}}
1+
{{ .Title }}
42

5-
{{ .RawContent }}
6-
7-
{{ .RenderShortcodes }}
3+
{{ .RawContent }}

layouts/partials/md-dropdown.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@
7272

7373
<script>
7474
function getCurrentPlaintextUrl() {
75-
const url = window.location.href.split("#")[0].replace(/\/$/, "");
76-
return `${url}.md`;
77-
}
75+
const url = window.location.href.split("#")[0].replace(/\/$/, "");
76+
return `${url}/index.md`;
77+
}
7878

7979
function copyMarkdown() {
8080
fetch(getCurrentPlaintextUrl())

0 commit comments

Comments
 (0)