Convert docdock theme from submodule to native files and fix Hugo compatibility
This commit is contained in:
5
themes/docdock/layouts/shortcodes/image.html
Normal file
5
themes/docdock/layouts/shortcodes/image.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<a href="{{.Site.BaseURL}}{{.Page.Params.id}}/{{.Get "filename"}}" sdata-lightbox="{{.Get "filename"}}">
|
||||
<img src="{{.Site.BaseURL}}{{.Page.Params.id}}/{{.Get "filename"}}" style="border:0px" {{ with .Get "width"}} width="{{.}}"{{ end }} {{ with .Get "align"}} align="{{.}}"{{ end }}/>
|
||||
</a>
|
||||
{{.Inner}}
|
||||
|
||||
Reference in New Issue
Block a user