[opt] indent
This commit is contained in:
parent
c058219302
commit
7d08530af8
|
@ -18,7 +18,7 @@ function layoutNodeTitle(ctx, content) {
|
|||
var el = ''
|
||||
el += '<div class="header">'
|
||||
if (content && content.length > 0) {
|
||||
el += ctx.render.renderSync({text: content, engine: 'markdown'}).split('\n').join('')
|
||||
el += content
|
||||
}
|
||||
el += '</div>'
|
||||
return el
|
||||
|
|
|
@ -20,9 +20,12 @@
|
|||
overflow: hidden
|
||||
|
||||
.l_body[text-indent] .md-text.content
|
||||
>p
|
||||
// 应用缩进效果
|
||||
p:not([class])
|
||||
text-indent: 'calc(%s * 2)' % var(--fsp)
|
||||
text-align: justify
|
||||
a
|
||||
text-indent: 0
|
||||
ol,ul
|
||||
margin-left: 0.5em
|
||||
h1,h2,h3,h4,h5,h6
|
||||
|
@ -31,6 +34,11 @@
|
|||
display: none
|
||||
h2
|
||||
margin: 2em 0 1.5em
|
||||
// 取消缩进效果
|
||||
blockquote, .poetry, .okr, .timeline, li
|
||||
p:not([class])
|
||||
text-indent: 0
|
||||
text-align: convert(hexo-config('style.text-align'))
|
||||
|
||||
.md-text
|
||||
ul:not(:last-child),
|
||||
|
|
|
@ -59,7 +59,7 @@ const FCircle = {
|
|||
cell += '<img src="' + (item.avatar || cfg.avatar) + '" onerror="javascript:this.src=\'' + cfg.avatar + '\';">';
|
||||
cell += '<span>' + item.author + '</span>';
|
||||
cell += '</div>';
|
||||
cell += '<p>' + item.created + '</p>';
|
||||
cell += '<span>' + item.created + '</span>';
|
||||
cell += '</div>';
|
||||
cell += '<a class="body" href="' + item.link + '" target="_blank" rel="external nofollow noopener noreferrer">';
|
||||
cell += item.title;
|
||||
|
|
|
@ -77,7 +77,7 @@ const MemosJS = {
|
|||
cell += '<span>' + item.creatorName + '</span>';
|
||||
cell += '</div>';
|
||||
}
|
||||
cell += '<p>' + date.toLocaleString() + '</p>';
|
||||
cell += '<span>' + date.toLocaleString() + '</span>';
|
||||
cell += '</div>';
|
||||
cell += '<div class="body">';
|
||||
cell += marked.parse(item.content || '');
|
||||
|
|
|
@ -84,7 +84,7 @@ const StellarTimeline = {
|
|||
cell += '</a>';
|
||||
}
|
||||
let date = new Date(item.created_at);
|
||||
cell += '<p>' + date.toLocaleString() + '</p>';
|
||||
cell += '<span>' + date.toLocaleString() + '</span>';
|
||||
cell += '</div>';
|
||||
cell += '<div class="body">';
|
||||
if (!hide.includes('title')) {
|
||||
|
|
|
@ -59,7 +59,7 @@ const weibojs = {
|
|||
cell += '<img src="' + (data.user.avatar_hd || cfg.avatar) + '" onerror="javascript:this.src=\'' + cfg.avatar + '\';">';
|
||||
cell += '<span>' + data.user.nick_name + '</span>';
|
||||
cell += '</div>';
|
||||
cell += '<p>' + item.created_at + '</p>';
|
||||
cell += '<span>' + item.created_at + '</span>';
|
||||
cell += '</div>';
|
||||
cell += '<div class="body">';
|
||||
cell += '<a class="body" href="' + item.url + '" target="_blank" rel="external nofollow noopener noreferrer">';
|
||||
|
|
Loading…
Reference in New Issue