Przeglądaj źródła

Improve formatting of custom widget title

George Cushen 8 lat temu
rodzic
commit
6519dafb91
1 zmienionych plików z 1 dodań i 1 usunięć
  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">