Skip to content

Commit da709ad

Browse files
committed
fix short date/full post render bug. update collections styles to match photos styles.
1 parent 722f083 commit da709ad

2 files changed

Lines changed: 26 additions & 25 deletions

File tree

layouts/partials/post-content.html

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,31 @@ <h2 class="post-title"><a href="{{ $post.Permalink }}" class="u-url">{{ $post.Ti
66
{{- if $post.Site.Params.use_short_date }}{{ $post.Date | time.Format ":date_short" }}{{- else }}{{ $post.Date | time.Format ":date_full" }}{{- end }}{{- if $post.Site.Params.show_read_time }}&nbsp;<span class="sep">&bull;</span>&nbsp;{{ $post.ReadingTime }}&nbsp;{{ T "min read" }}{{- end }}
77
</time>
88
</p>
9-
{{- end }}
10-
11-
{{- if $post.Site.Params.show_full_post }}
9+
{{- if $post.Site.Params.show_full_post }}
10+
{{ $post.Content }}
11+
{{- else }}
12+
<p>{{ $post.Summary | safeHTML }}</p>
13+
<p><a href="{{ $post.Permalink }}" class="u-url">{{ T "Continue reading" }} →</a></p>
14+
{{- end }}
15+
{{- else if in $post.RawContent "<!--more-->"}}
16+
<p class="post-date btm-margin">
17+
<time class="dt-published" datetime="{{ $post.Date.Format "2006-01-02 15:04:05 -0700" }}">
18+
<a href="{{ $post.Permalink }}" class="u-url">{{- if $post.Site.Params.use_short_date }}{{ $post.Date | time.Format ":date_short" }}{{- else }}{{ $post.Date | time.Format ":date_full" }}{{- end }} →</a>
19+
</time>
20+
</p>
21+
{{- if $post.Site.Params.show_full_post }}
1222
{{ $post.Content }}
13-
{{- else }}
14-
{{- if $post.Title }}
15-
<p>{{ $post.Summary | safeHTML }}</p>
16-
<p><a href="{{ $post.Permalink }}" class="u-url">{{ T "Continue reading" }} →</a></p>
17-
{{- else if in $post.RawContent "<!--more-->" }}
18-
<p class="post-date btm-margin">
19-
<time class="dt-published" datetime="{{ $post.Date.Format "2006-01-02 15:04:05 -0700" }}">
20-
<a href="{{ $post.Permalink }}" class="u-url">{{- if $post.Site.Params.use_short_date }}{{ $post.Date | time.Format ":date_short" }}{{- else }}{{ $post.Date | time.Format ":date_full" }}{{- end }} →</a>
21-
</time>
22-
</p>
23-
<p>{{ $post.Summary | safeHTML }}</p>
24-
{{- if $post.Truncated }}
25-
<p><a href="{{ $post.Permalink }}" class="u-url">{{ T "Continue reading" }} →</a></p>
26-
{{- end }}
2723
{{- else }}
28-
<p class="post-date btm-margin">
29-
<time class="dt-published" datetime="{{ $post.Date.Format "2006-01-02 15:04:05 -0700" }}">
30-
<a href="{{ $post.Permalink }}" class="u-url">{{- if $post.Site.Params.use_short_date }}{{ $post.Date | time.Format ":date_short" }}{{- else }}{{ $post.Date | time.Format ":date_full" }}{{- end }} →</a>
31-
</time>
32-
</p>
33-
{{ $post.Content }}
24+
<p>{{ $post.Summary | safeHTML }}</p>
25+
{{- if $post.Truncated }}
26+
<p><a href="{{ $post.Permalink }}" class="u-url">{{ T "Continue reading" }} →</a></p>
3427
{{- end }}
35-
{{- end }}
28+
{{- end }}
29+
{{- else }}
30+
<p class="post-date btm-margin">
31+
<time class="dt-published" datetime="{{ $post.Date.Format "2006-01-02 15:04:05 -0700" }}">
32+
<a href="{{ $post.Permalink }}" class="u-url">{{- if $post.Site.Params.use_short_date }}{{ $post.Date | time.Format ":date_short" }}{{- else }}{{ $post.Date | time.Format ":date_full" }}{{- end }} →</a>
33+
</time>
34+
</p>
35+
{{ $post.Content }}
36+
{{- end }}

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "2.7.3",
2+
"version": "2.7.4",
33
"title": "mnml",
44
"description": "A minimal, simple and clean Micro.blog theme.",
55
"fields": [

0 commit comments

Comments
 (0)