diff options
author | Mark Otto <markd.otto@gmail.com> | 2020-08-04 08:09:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-04 08:09:45 +0300 |
commit | 2d2b6759b6aa81ae6b750bb21c113860233eb130 (patch) | |
tree | 82f54d2a2c485ac3461980a9a396e47aa4b79c64 /site/layouts | |
parent | 5be7fe001e5f318a2e7dd9671f2d52e817974f76 (diff) |
Add view on GitHub links for easier content editing from the docs (#31339)
* Add view on GitHub links for easier content editing from the docs
* Update docs.html
* Move to .btn-bd-light
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Diffstat (limited to 'site/layouts')
-rw-r--r-- | site/layouts/_default/docs.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/site/layouts/_default/docs.html b/site/layouts/_default/docs.html index 2e5bac7fcf..e75a6a3f4e 100644 --- a/site/layouts/_default/docs.html +++ b/site/layouts/_default/docs.html @@ -15,7 +15,10 @@ </div> <div class="bd-intro pt-md-3 pl-lg-4"> - <h1 class="bd-title" id="content">{{ .Title | markdownify }}</h1> + <div class="d-md-flex flex-md-row-reverse align-items-center justify-content-between"> + <a class="btn btn-sm btn-bd-light mb-2 mb-md-0" href="{{ .Site.Params.repo }}/tree/main/site/content/{{ .Page.File.Path }}" title="View and edit this file on GitHub" target="_blank" rel="noopener">View on GitHub</a> + <h1 class="bd-title" id="content">{{ .Title | markdownify }}</h1> + </div> <p class="bd-lead">{{ .Page.Params.Description | markdownify }}</p> {{ partial "ads" . }} </div> |