소스 검색

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">