feat(article): add partialCached to article/components/details

Avoid rendering twice (in post list and article page)
This commit is contained in:
Jimmy Cai 2020-09-17 23:13:50 +02:00
parent e20d401007
commit c74cc3e4b3
No known key found for this signature in database
GPG Key ID: 3EA408E527F37B18
2 changed files with 2 additions and 2 deletions

View File

@ -18,5 +18,5 @@
</div>
{{ end }}
{{ partial "article/components/details" . }}
{{ partialCached "article/components/details" . .RelPermalink }}
</article>

View File

@ -16,5 +16,5 @@
</div>
{{ end }}
{{ partial "article/components/details" . }}
{{ partialCached "article/components/details" . .RelPermalink }}
</header>