Convert docdock theme from submodule to native files and fix Hugo compatibility
This commit is contained in:
5
themes/docdock/layouts/shortcodes/attachmentlink.html
Normal file
5
themes/docdock/layouts/shortcodes/attachmentlink.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{{range $i, $att := .Page.Params.attachments }}
|
||||
{{if eq $att.filename ($.Get "filename")}}
|
||||
<a class="{{$att.iconclass}}" href="{{$.Site.BaseURL}}{{$.Page.Params.id}}/{{$att.filename}}" title="Dernière modification le {{$att.lastmodifieddate}}" >{{$.Inner}}</a> ({{$att.nicefilesize}})
|
||||
{{end}}
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user