瀏覽代碼

Improve formatting of custom widget title

George Cushen 8 年之前
父節點
當前提交
6519dafb91
共有 1 個文件被更改,包括 1 次插入1 次删除
  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">