]> njoseph.me Git - hyde.git/commitdiff
Use `partial` call to include partial templates
authorAnthony Fok <foka@debian.org>
Thu, 4 Sep 2014 00:47:06 +0000 (18:47 -0600)
committerspf13 <steve.francia@gmail.com>
Mon, 8 Sep 2014 16:13:10 +0000 (12:13 -0400)
Replace `template` call with the `partial` call (new in Hugo v0.12)
for including partial templates

layouts/_default/list.html
layouts/_default/single.html
layouts/index.html

index b911013a95b3a1d3b3a3db53d486021edfbff186..f19a26fc517fd63f822e36749436cf988b26c9c0 100644 (file)
@@ -1,7 +1,7 @@
-{{ template "theme/partials/head.html" . }}
+{{ partial "head.html" . }}
 <body>
 
-  {{ template "theme/partials/sidebar.html" . }}
+{{ partial "sidebar.html" . }}
 
   <div class="content container">
     <ul class="posts">
index e0b2f944601d9ebbea5e9799843c0b0f3185ea64..61d009db9a1b69bdb7e6d0a19ea30f29859e123c 100644 (file)
@@ -1,7 +1,7 @@
-{{ template "theme/partials/head.html" . }}
+{{ partial "head.html" . }}
 <body>
 
-{{ template "theme/partials/sidebar.html" . }}
+{{ partial "sidebar.html" . }}
 
     <div class="content container">
 <div class="post">
index b8c9d653265b3b32d76fd4e550f38e6fc087db84..b26cdf5c7c496783933d670c8e6acc2bfd368b28 100644 (file)
@@ -1,7 +1,7 @@
-{{ template "theme/partials/head.html" . }}
+{{ partial "head.html" . }}
 <body>
 
-{{ template "theme/partials/sidebar.html" . }}
+{{ partial "sidebar.html" . }}
 
     <div class="content container">
 <div class="posts">