mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -06:00
Merge branch 'markdown-output'
This commit is contained in:
commit
ddb57e0120
@ -15,6 +15,12 @@ taxonomies:
|
|||||||
markup: # this just keeps the bobatheme markup styling
|
markup: # this just keeps the bobatheme markup styling
|
||||||
_merge: deep
|
_merge: deep
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
_merge: deep
|
||||||
|
|
||||||
|
outputFormats:
|
||||||
|
_merge: deep
|
||||||
|
|
||||||
params:
|
params:
|
||||||
author:
|
author:
|
||||||
name: bbaovanc
|
name: bbaovanc
|
||||||
|
@ -12,6 +12,15 @@ taxonomies:
|
|||||||
author: authors
|
author: authors
|
||||||
series: series
|
series: series
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
page:
|
||||||
|
- html
|
||||||
|
- markdown
|
||||||
|
|
||||||
|
outputFormats:
|
||||||
|
markdown:
|
||||||
|
ugly: true
|
||||||
|
|
||||||
privacy:
|
privacy:
|
||||||
googleAnalytics:
|
googleAnalytics:
|
||||||
disable: true
|
disable: true
|
||||||
|
@ -30,6 +30,9 @@ readingtime:
|
|||||||
edit_history:
|
edit_history:
|
||||||
other: "Edit history"
|
other: "Edit history"
|
||||||
|
|
||||||
|
view_markdown:
|
||||||
|
other: "View raw"
|
||||||
|
|
||||||
|
|
||||||
# Post count
|
# Post count
|
||||||
no_posts:
|
no_posts:
|
||||||
@ -67,6 +70,9 @@ 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"
|
||||||
|
|
||||||
|
9
layouts/_default/single.markdown.md
Normal file
9
layouts/_default/single.markdown.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{{ with .File -}}
|
||||||
|
{{ with (.Path | readFile) -}}
|
||||||
|
{{ . -}}
|
||||||
|
{{ else -}}
|
||||||
|
{{ errorf "file not found: %s" .Path -}}
|
||||||
|
{{ end -}}
|
||||||
|
{{ else -}}
|
||||||
|
{{ errorf "no file available for markdown template?" -}}
|
||||||
|
{{ end -}}
|
8
layouts/partials/page-metadata/item/viewraw.html
Normal file
8
layouts/partials/page-metadata/item/viewraw.html
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{{ 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 }}
|
@ -20,7 +20,10 @@
|
|||||||
{{ 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/categories.html" . }}
|
{{ partial "page-metadata/item/categories.html" . }}
|
||||||
|
|
||||||
{{ partial "page-metadata/item/tags.html" . }}
|
{{ partial "page-metadata/item/tags.html" . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user