diff options
author | Ian Lewis <ianmlewis@gmail.com> | 2019-04-17 14:43:35 -0400 |
---|---|---|
committer | Ian Lewis <ianlewis@google.com> | 2019-04-23 11:51:39 +0900 |
commit | c010346c76457ed89b658e6030dd597cc5d6dcca (patch) | |
tree | c59c4a5b010b95eae46625e0127f4554d48631a5 /themes/docsy/layouts/partials | |
parent | 45028bdd82ca3f54d8bb0e99330b1bab6e64cb78 (diff) |
Updated docsy to HEAD
- Docsy has support for the _styles_project.scss file now so we don't need
to override main.scss anymore.
- Docsy doc edit links now work for non-multilingual sites so we don't
need to override page-meta-links.html anymore.
Diffstat (limited to 'themes/docsy/layouts/partials')
-rw-r--r-- | themes/docsy/layouts/partials/page-meta-links.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/themes/docsy/layouts/partials/page-meta-links.html b/themes/docsy/layouts/partials/page-meta-links.html index b8e0925b5..0f18b1e37 100644 --- a/themes/docsy/layouts/partials/page-meta-links.html +++ b/themes/docsy/layouts/partials/page-meta-links.html @@ -2,7 +2,10 @@ {{ $gh_repo := ($.Param "github_repo") }} {{ if $gh_repo }} <div class="td-page-meta ml-2 pb-1 pt-2 mb-0"> -{{ $editURL := printf "%s/edit/master/content/%s/%s" $gh_repo ($.Site.Language.Lang) .Path }} +{{ $editURL := printf "%s/edit/master/content/%s" $gh_repo .Path }} +{{ if .Site.IsMultiLingual }} +{{ $editURL = printf "%s/edit/master/content/%s/%s" $gh_repo ($.Site.Language.Lang) .Path }} +{{ end }} {{ $issuesURL := printf "%s/issues/new?title=%s" $gh_repo (htmlEscape $.Title )}} <a href="{{ $editURL }}" target="_blank"><i class="fa fa-edit fa-fw"></i> {{ T "post_edit_this" }}</a> <a href="{{ $issuesURL }}" target="_blank"><i class="fab fa-github fa-fw"></i> {{ T "post_create_issue" }}</a> |