mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 01:22:29 +00:00
Switch themes to minimo
This commit is contained in:
26
themes/minimo/layouts/shortcodes/convo.html
Normal file
26
themes/minimo/layouts/shortcodes/convo.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<div class='convo'>
|
||||
<ol>
|
||||
{{ range ( split .Inner "\n" ) }}
|
||||
{{ with . }}
|
||||
<li>
|
||||
{{ range $i, $chunk := ( split . "::" ) }}
|
||||
{{ if or $chunk "s" }}
|
||||
{{ if eq $i 0 }}
|
||||
<div class='person'>
|
||||
{{- $chunk | markdownify -}}
|
||||
</div>
|
||||
{{ else }}
|
||||
<div class='sep'>
|
||||
{{- print " " ( $.Get "sep" | default ":" ) " " -}}
|
||||
</div>
|
||||
<div class='text'>
|
||||
{{- $chunk | markdownify -}}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ol>
|
||||
</div>
|
Reference in New Issue
Block a user