feat(article): add partialCached to article/components/details
Avoid rendering twice (in post list and article page)
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user