Fix build failure due to Hugo chaning _internal
template behavior (#1050)
* Fix build failure due to Hugo chaning `_internal` template behavior Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Update min Hugo version Signed-off-by: hossainemruz <hossainemruz@gmail.com> --------- Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
parent
b79aee97d6
commit
7223361464
14 changed files with 151 additions and 103 deletions
|
@ -4,8 +4,7 @@
|
|||
<title>{{ .Page.Title }}</title>
|
||||
<!------ ADD COMMON HEADERS -------->
|
||||
{{- partial "header.html" . -}}
|
||||
{{ template "_internal/opengraph.html" . }}
|
||||
{{ template "_internal/twitter_cards.html" . }}
|
||||
{{- partial "opengraph.html" . -}}
|
||||
<!------ ADD PAGE SPECIFIC HEADERS ------->
|
||||
{{ block "header" . }} {{ end }}
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
{{ end }}
|
||||
</div>
|
||||
<div class="paginator">
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
{{ partial "pagination.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
{{ end }}
|
||||
</div>
|
||||
<div class="paginator">
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
{{ partial "pagination.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
{{ end }}
|
||||
</div>
|
||||
<div class="paginator">
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
{{ partial "pagination.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
@ -80,5 +80,5 @@
|
|||
|
||||
<!-- Keep backwards compatibility and consistency with HUGO defaults -->
|
||||
{{ if .Site.Config.Services.GoogleAnalytics.ID }}
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
{{ partial "google_analytics.html" . }}
|
||||
{{ end }}
|
||||
|
|
|
@ -10,5 +10,3 @@
|
|||
<meta property="og:description" content="{{ $description }}"/>
|
||||
<meta property="og:image" content="{{ $image | relURL }}">
|
||||
<meta property="og:url" content="{{ $url }}">
|
||||
|
||||
{{ template "_internal/twitter_cards.html" . }}
|
||||
|
|
1
layouts/shortcodes/gist.html
Normal file
1
layouts/shortcodes/gist.html
Normal file
|
@ -0,0 +1 @@
|
|||
<script src="https://gist.github.com/{{ index .Params 0 }}/{{ index .Params 1 }}.js{{if len .Params | eq 3 }}?file={{ index .Params 2 }}{{end}}"></script>
|
|
@ -44,7 +44,7 @@
|
|||
{{ end }}
|
||||
</div>
|
||||
<div class="paginator">
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
{{ partial "pagination.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue