Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f60263 commit 819f19dCopy full SHA for 819f19d
template/articles/detail.html
@@ -187,6 +187,8 @@ <h1 id="title" data-id="{{.article.Id}}">
187
$('code[class*="language-"]').parent('pre').addClass('line-numbers');
188
</script>
189
<script type="text/javascript" src="/static/js/prism.js"></script>
190
+{{end}}
191
+{{if .article.Markdown}}
192
<script type="text/javascript" src="/static/js/articles.js"></script>
193
{{end}}
194
<script type="text/javascript">
@@ -200,8 +202,10 @@ <h1 id="title" data-id="{{.article.Id}}">
200
202
];
201
203
204
$(function(){
205
+ {{if .article.Markdown}}
206
new SG.Articles().parseContent($('.page .content'));
-
207
+ {{end}}
208
+
209
// 文本框自动伸缩
210
$('.need-autogrow').autoGrow();
211
0 commit comments