Internal templates can now be called with standrad partial function.
This commit is contained in:
parent
d41d8cfbdf
commit
f5408a6355
2 changed files with 2 additions and 2 deletions
|
|
@ -22,5 +22,5 @@
|
|||
{{ if site.Config.Services.GoogleAnalytics.ID -}}
|
||||
{{ $script := resources.Get "js/tracking.js" | js.Build $opts | fingerprint -}}
|
||||
<script src="{{ $script.RelPermalink }}"></script>
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
{{ partial "google_analytics.html" . }}
|
||||
{{ end -}}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{{ if $.Param "internalpagination" -}}
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
{{ partial "pagination.html" . }}
|
||||
{{ else -}}
|
||||
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) -}}
|
||||
<nav class="pager">
|
||||
|
|
|
|||
Loading…
Reference in a new issue