Commit 8decda73 authored by Kaushal Modi's avatar Kaushal Modi

Use .html extension explicitly in partial calls

This is the recommended way for Hugo v0.20 and newer version. In the older
versions, it was OK to not mention the ".html" extension because it was always
that.

https://discuss.gohugo.io/t/use-of-baseof-and-error-calling-partial/6028
parent ab7fa26a
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
{{ partial "head" . }}
{{ partial "head.html" . }}
<body onload="prettyPrint()" class={{ (print "theme-base-0" .Site.Params.themecolorbase) }} lang="en">
......@@ -10,7 +10,7 @@
<div class="wrapper">
{{ partial "navbar" . }}
{{ partial "navbar.html" . }}
<div class="masthead">
<div class="container">
......@@ -46,7 +46,7 @@
{{ "<!-- Google Analytics -->" | safeHTML }}
<!-- {{ template "_internal/google_analytics_async.html" . }} -->
{{ partial "googleanalytics" . }}
{{ partial "googleanalytics.html" . }}
<script>
// Init responsive-nav.js
......
......@@ -12,11 +12,11 @@
</span>
<span class="left post-date">
{{ partial "publishdate-maybe" . }}
{{ partial "publishdate-maybe.html" . }}
</span>
<span class="right">
{{ partial "post_categories" . }}
{{ partial "post_categories.html" . }}
</span>
<div class="clear-float"></div>
......
......@@ -2,7 +2,7 @@
<div class="post">
<h1 class="post-title">{{ .Title }}</h1>
<span class="post-date">{{ partial "publishdate-maybe" . }}</span>
<span class="post-date">{{ partial "publishdate-maybe.html" . }}</span>
{{ if not .Params.notoc }}
{{ with .TableOfContents }}
......@@ -11,7 +11,7 @@
<a href="#top" class="back-to-top">Back to top</a>
</div>
{{ end }}
{{ partial "toc_on_side" . }}
{{ partial "toc_on_side.html" . }}
{{ end }}
<div class="content">
......@@ -20,7 +20,7 @@
</div>
<div class="post-catlist right">
{{ partial "post_categories" . }}
{{ partial "post_categories.html" . }}
</div>
{{ end }}
......@@ -28,7 +28,7 @@
{{ define "after_main" }}
<div class="prev-next-navigator clear-float no-color-links">
{{ partial "prev_next" . }}
{{ partial "prev_next.html" . }}
</div>
{{/* printf "%#v" $.Site */}}
......@@ -37,7 +37,7 @@
{{ with .Site.Params.isso }}
<div class="comments clear-float">
<h1>Comments</h1>
{{ partial "isso" . }}
{{ partial "isso.html" . }}
</div>
{{/* else if not (eq .Site.DisqusShortname "") */}}
<!-- Below works the same way as the above empty-string equality check -->
......@@ -46,7 +46,7 @@
<div class="comments clear-float">
<h1>Comments</h1>
{{/* template "_internal/disqus.html" . */}}
{{ partial "disqus" . }}
{{ partial "disqus.html" . }}
</div>
{{ end }}
{{ end }}
......
......@@ -13,7 +13,7 @@
<article class="summary">
<header>
<h1 class="post-title"><a href='{{ .Permalink }}'> {{ .Title }}</a> </h1>
<div class="post-date">{{ partial "publishdate-maybe" . }} - {{ .FuzzyWordCount }} Words</div>
<div class="post-date">{{ partial "publishdate-maybe.html" . }} - {{ .FuzzyWordCount }} Words</div>
</header>
<div class="post" >
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment