mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
First pass at new site template
This commit is contained in:
committed by
Chris Cummer
parent
215c7e571f
commit
d872a28cf7
14
_site/themes/docdock/layouts/shortcodes/excerpt-include.html
Normal file
14
_site/themes/docdock/layouts/shortcodes/excerpt-include.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{{ $excerpt := findRE "(?ms){{%\\s*excerpt[^%]*%}}(.|\n)*?{{%\\s*/excerpt\\s*%}}" ( readFile (printf "./content/%s" (.Get "filename")) ) }}
|
||||
{{ range $excerpt }}
|
||||
{{if ($.Get "panel")}}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">{{$.Get "panel"}}</div>
|
||||
<div class="panel-body">
|
||||
{{ (replaceRE "(?ms){{%\\s*excerpt[^%]*%}}(.*){{%\\s*/excerpt\\s*%}}" "$1" .) | safeHTML | markdownify }}
|
||||
</div>
|
||||
</div>
|
||||
{{else}}
|
||||
{{ (replaceRE "(?ms){{%\\s*excerpt[^%]*%}}(.*){{%\\s*/excerpt\\s*%}}" "$1" .) | safeHTML | markdownify }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{.Inner}}
|
||||
Reference in New Issue
Block a user