mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 10:21:46 +01: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
|
@ -18,5 +18,5 @@
|
|||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "article/components/details" . }}
|
||||
{{ partialCached "article/components/details" . .RelPermalink }}
|
||||
</article>
|
|
@ -16,5 +16,5 @@
|
|||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "article/components/details" . }}
|
||||
{{ partialCached "article/components/details" . .RelPermalink }}
|
||||
</header>
|
Loading…
Reference in a new issue