Explorar el Código

Improve formatting of custom widget title

George Cushen hace 8 años
padre
commit
6519dafb91
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      layouts/partials/widgets/custom.html

+ 1 - 1
layouts/partials/widgets/custom.html

@@ -3,7 +3,7 @@
 <!-- Custom widget -->
 <div class="row">
   <div class="col-xs-12 col-md-4 section-heading">
-    <h1>{{ title $page.Title }}</h1>
+    <h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
     {{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
   </div>
   <div class="col-xs-12 col-md-8">