Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ post_byline_by: By
post_created: Created
post_last_mod: Last modified
post_edit_this: Edit this page
post_view_markdown: View Markdown
post_view_this: View page source
post_create_child_page: Create child page
post_create_issue: Create documentation issue
Expand Down
8 changes: 7 additions & 1 deletion layouts/_partials/page-meta-links.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
{{ $gh_project_repo := $.Param "github_project_repo" -}}
{{ $gh_branch := $.Param "github_branch" | default "main" -}}
<div class="td-page-meta ms-2 pb-1 pt-2 mb-0">
{{ with .AlternativeOutputFormats.Get "markdown" -}}
<a href="{{ .RelPermalink }}" class="td-page-meta__markdown"> {{/**/ -}}
<i class="fa-brands fa-markdown fa-fw"></i> {{ T "post_view_markdown" -}}
</a>
{{ end -}}

{{ if $gh_url -}}
{{ warnf "Warning: use of `github_url` is deprecated. For details, see https://www.docsy.dev/docs/content/repository-links/#github_url-optional" -}}
<a href="{{ $gh_url }}" target="_blank"><i class="fa-solid fa-pen-to-square fa-fw"></i> {{ T "post_edit_this" }}</a>
Expand Down Expand Up @@ -46,7 +52,7 @@

{{ end -}}
{{ with .CurrentSection.AlternativeOutputFormats.Get "print" -}}
<a id="print" href="{{ .RelPermalink | safeURL }}"><i class="fa-solid fa-print fa-fw"></i> {{ T "print_entire_section" }}</a>
<a id="print" href="{{ .RelPermalink }}"><i class="fa-solid fa-print fa-fw"></i> {{ T "print_entire_section" }}</a>
{{ end }}
</div>
{{ end -}}
Loading