Merge upstream (#2)

* replaces possible backslash for win environments

like in hugo docs explained:  `.File.Path` returns paths joined by backslashes instead of slashes.

* Updating the README!

* Updating the README!

* Updating the README!

* Updating the README!

* Updating the README!

* Updating the README!

* Updating the README!

* Updating the README!

* Updating the README!

* Updating the README!

* Updating the README!

* fix mixture of permanent and relative links

* Updating the README!

* Updating the README!

* Replace highlightBlock with highlightElement

* Updating the README!

* Updating the README!

* deps: bump versions to latest

* Updating the README!

* Updating the README!

Co-authored-by: Henk Verlinde <henk@henkverlinde.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Mike Pianka <47948499+mikepianka@users.noreply.github.com>
Co-authored-by: umatare5 <umatare5@gmail.com>
Co-authored-by: Henk Verlinde <henk@ventizo.com>
This commit is contained in:
Marco Blessing
2021-04-19 19:19:03 +02:00
committed by GitHub
parent 6ce969bdcd
commit 13434c9788
5 changed files with 285 additions and 303 deletions

View File

@ -1 +1 @@
<p class="edit-page"><a href="{{ .Site.Params.docsRepo }}/blob/master/content/{{ .File.Path }}"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-edit-2"><path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path></svg>Edit this page on GitHub</a></p>
<p class="edit-page"><a href="{{ .Site.Params.docsRepo }}/blob/master/content/{{replace .File.Path "\\" "/" }}"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-edit-2"><path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path></svg>Edit this page on GitHub</a></p>

View File

@ -10,7 +10,7 @@
{{ end -}}
{{ range $widths -}}
{{ $srcUrl := (printf "%dx" . | $image.Resize).RelPermalink -}}
{{ $srcUrl := (printf "%dx" . | $image.Resize).Permalink -}}
{{ if eq $imgSrc "" -}}{{ $imgSrc = $srcUrl -}}{{ end -}}
{{ $imgSrcSet = $imgSrcSet | append (printf "%s %dw" $srcUrl .) -}}
{{ end -}}