Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xaoxuu committed Feb 19, 2020
1 parent 13e4ccc commit 3639161
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
5 changes: 4 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,10 @@ widget:
class: text # 小部件类型,对应_widget文件夹中的文件名
icon: fas fa-file
title: 文本部件
body: '这是一段支持markdown的文本<br>![](https://img.vim-cn.com/4e/3c87a2fd28fd0b9c2f27ce3f83f1e9275d0488.png)'
content:
- '这是一段支持markdown的文本'
- '![](https://img.vim-cn.com/4e/3c87a2fd28fd0b9c2f27ce3f83f1e9275d0488.png)'
- haha
- id: dao_hang
class: grid
icon: fas fa-map-signs
Expand Down
4 changes: 2 additions & 2 deletions layout/_partial/meta.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
} else {
var isPostList = false;
}
var topMetas = (theme.meta && theme.meta.header) || [];
var topMetas;
if (isPostList) {
topMetas = theme.layout.on_list.meta || [];
} else {
Expand All @@ -16,7 +16,7 @@ if (post.meta && (post.meta.header !== undefined && post.meta.header !== null))
topMetas = [];
}
}
var bottomMetas = (theme.meta && theme.meta.footer) || [];
var bottomMetas;
if (isPostList) {
bottomMetas = [];
} else {
Expand Down
4 changes: 2 additions & 2 deletions layout/_partial/scripts.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
if (!ROOT.endsWith('/')) ROOT += '/';
</script>
<% } %>
<script src="//instant.page/1.2.2" type="module" integrity="sha384-2xV8M5griQmzyiY3CDqh1dn4z3llDVqZDqzjzcY+jCBCk/a5fXJmuZ/40JJAPeoU"></script>
<script async src="//instant.page/1.2.2" type="module" integrity="sha384-2xV8M5griQmzyiY3CDqh1dn4z3llDVqZDqzjzcY+jCBCk/a5fXJmuZ/40JJAPeoU"></script>
<% if (theme.aplayer == true) { %>
<script async src="https://cdn.jsdelivr.net/npm/[email protected]/dist/APlayer.min.js"></script>
<script async src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Meting.min.js"></script>
Expand Down Expand Up @@ -55,7 +55,7 @@
<% } %>
<% if (theme.fastclick == true) { %>
<!-- fastclick -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/fastclick.min.js"></script>
<script async src="https://cdn.jsdelivr.net/npm/[email protected]/lib/fastclick.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
FastClick.attach(document.body)
Expand Down
6 changes: 5 additions & 1 deletion layout/_widget/text.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<section class='widget <%- item.class?item.class:'text' %>'>
<%- partial('header', {item: item}) %>
<div class='content <%= theme.style %>'>
<%- markdown(item.body) %>
<% (item.content||[]).forEach(function(row){ %>
<p>
<%- markdown(row) %>
</p>
<% }) %>
</div>
</section>

0 comments on commit 3639161

Please sign in to comment.