Remove raw markdown output

I don't think it's ever been that useful. It was originally implemented
as kind of a test of what Hugo output formats were capable of. It waited
for the `ugly` option to get added in `outputFormats` and the novelty of
a new Hugo feature was part of the fun of it.

As mentioned in 7a65f92f53:

    I believe I originally added it because I thought it was somewhat
    hard to get from the "View history" commit list to the actual page
    but I feel like people who care enough to go looking for the source
    code will be willing to use GitHub to find the actual source file.
This commit is contained in:
2025-10-09 01:35:38 -05:00
parent 7a65f92f53
commit 7368e82cf8
5 changed files with 0 additions and 29 deletions

View File

@@ -21,11 +21,6 @@ taxonomies:
outputs: outputs:
page: page:
- html - html
- markdown
outputFormats:
markdown:
ugly: true
privacy: privacy:
googleAnalytics: googleAnalytics:

View File

@@ -32,9 +32,6 @@ readingtime:
edit_history: edit_history:
other: "Edit history" other: "Edit history"
view_markdown:
other: "View raw"
# Post count # Post count
no_posts: no_posts:
@@ -74,9 +71,6 @@ aria_rss_link:
aria_post_meta_edit_history: aria_post_meta_edit_history:
other: "link to page edit history" other: "link to page edit history"
aria_post_meta_view_markdown:
other: "link to view raw markdown code of page"
aria_post_meta_categories: aria_post_meta_categories:
other: "categories" other: "categories"

View File

@@ -1,8 +0,0 @@
{{ with .OutputFormats.Get "markdown" }}
<span class="page-metadata-item post-meta-view-markdown" aria-label="{{ i18n "aria_post_meta_view_markdown" }}">
{{ partial "icon.html" "code" }}
<a href="{{ .Permalink }}" target="_blank">
{{- i18n "view_markdown" -}}
</a>
</span>
{{ end }}

View File

@@ -20,7 +20,6 @@
{{ partial "page-metadata/item/authors.html" . }} {{ partial "page-metadata/item/authors.html" . }}
{{ partial "page-metadata/item/readingtime.html" . }} {{ partial "page-metadata/item/readingtime.html" . }}
{{ partial "page-metadata/item/edithistory.html" . }} {{ partial "page-metadata/item/edithistory.html" . }}
{{ partial "page-metadata/item/viewraw.html" . }}
{{ partial "page-metadata/item/comments-counter.html" . }} {{ partial "page-metadata/item/comments-counter.html" . }}
{{ partial "page-metadata/item/categories.html" . }} {{ partial "page-metadata/item/categories.html" . }}

View File

@@ -1,9 +0,0 @@
{{ with .File -}}
{{ with (.Path | readFile) -}}
{{ . -}}
{{ else -}}
{{ errorf "file not found: %s" .Path -}}
{{ end -}}
{{ else -}}
{{ errorf "no file available for markdown template?" -}}
{{ end -}}