diff options
Diffstat (limited to 'themes/cranky/layouts')
-rw-r--r-- | themes/cranky/layouts/projects/list.html | 5 | ||||
-rw-r--r-- | themes/cranky/layouts/shortcodes/prj.html | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/themes/cranky/layouts/projects/list.html b/themes/cranky/layouts/projects/list.html index 9dc5286..0767875 100644 --- a/themes/cranky/layouts/projects/list.html +++ b/themes/cranky/layouts/projects/list.html @@ -81,9 +81,8 @@ time { {{- range.Pages }} <div class="project-box"> <a class="project-title" href="{{ .RelPermalink }}">{{ .Title }}</a> - {{- if .Param "datesinlist" }}<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006 Jan 02" }}</time> {{ end -}} - {{ $summary := index (split .Content "</p>") 0 }} - <p>{{ $summary | plainify }} </p> + {{- if .Param "datesinlist" }}<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format " 2006 Jan 02" }}</time> {{ end -}} + <p>{{ .Summary | truncate 220 "..." }}</p> {{- if .Param "authorsinlist" }} {{ with .Params.authors }} by diff --git a/themes/cranky/layouts/shortcodes/prj.html b/themes/cranky/layouts/shortcodes/prj.html index 2d7df98..0db4abe 100644 --- a/themes/cranky/layouts/shortcodes/prj.html +++ b/themes/cranky/layouts/shortcodes/prj.html @@ -8,7 +8,8 @@ <div class="filledbar"></div> </div> <p class="summary"> - {{ .Summary | truncate 220 "..." }} + {{ $summary := index (split .Content "</p>") 0 }} + {{ $summary | plainify }} </p> </a> <!-- End the loop --> |