mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-03-31 13:45:57 +02:00
feat(article): add partialCached to article/components/details
Avoid rendering twice (in post list and article page)
This commit is contained in:
parent
e20d401007
commit
c74cc3e4b3
2 changed files with 2 additions and 2 deletions
layouts/partials
|
@ -18,5 +18,5 @@
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "article/components/details" . }}
|
{{ partialCached "article/components/details" . .RelPermalink }}
|
||||||
</article>
|
</article>
|
|
@ -16,5 +16,5 @@
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "article/components/details" . }}
|
{{ partialCached "article/components/details" . .RelPermalink }}
|
||||||
</header>
|
</header>
|
Loading…
Add table
Reference in a new issue