文章页面增加编辑按钮
This commit is contained in:
parent
8dbbeecd46
commit
a697231050
|
@ -9422,6 +9422,12 @@ a.article-meta__category:hover {
|
|||
display: none;
|
||||
}
|
||||
|
||||
#post-meta .post-meta-date {
|
||||
opacity: .6;
|
||||
margin-right: .8rem
|
||||
}
|
||||
|
||||
|
||||
/* 文章目录 */
|
||||
#aside-content #card-toc .toc-content .toc-link.active {
|
||||
line-height: 1.2;
|
||||
|
@ -10631,6 +10637,7 @@ span.post-meta-position {
|
|||
opacity: 0.6;
|
||||
cursor: pointer;
|
||||
transition: 0.3s;
|
||||
margin-right: 0.8rem;
|
||||
}
|
||||
|
||||
.post-meta-commentcount:hover {
|
||||
|
|
|
@ -14,6 +14,13 @@
|
|||
<a id="to_comment" href="javascript:heo.scrollTo('post-comment')" title="直达评论" ><i class="haofont hao-icon-comments"></i></a>
|
||||
<a id="switch-commentBarrage" href="javascript:heo.switchCommentBarrage();" rel="external nofollow noreferrer" title="开关弹幕" draggable="false" data-pjax-state="external"><i class="haofont hao-icon-danmu"></i></a>
|
||||
<button id="go-up" type="button" title="回到顶部"><i class="haofont hao-icon-arrow-up"></i></button>
|
||||
<a th:if="${htmlType == 'post' || htmlType == 'page'}"
|
||||
th:with="editor = ${htmlType == 'post' ? 'posts/editor?name='+ post.metadata.name : htmlType == 'page' ? 'single-pages/editor?name='+ singlePage.metadata.name : '' }"
|
||||
sec:authorize="isAuthenticated()"
|
||||
th:href="|/console/${editor}&returnToView=true|"
|
||||
title="编辑文章" >
|
||||
<i class="haofont hao-icon-pencil"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<style th:if="${!theme.config.tool.rightside.rightsideEnable}">
|
||||
|
|
|
@ -73,6 +73,12 @@
|
|||
<a th:if="${#strings.equals(theme.config.comments.use, 'Twikoo')}" href="#post-comment">
|
||||
<span id="twikoo-count"></span></a>
|
||||
</span>
|
||||
<span class="post-meta-commentcount" sec:authorize="isAuthenticated()"
|
||||
data-flag-title="编辑文章"
|
||||
th:attr="onclick='javascript:window.open(\''+ '/console/posts/editor?name='+${post.metadata.name}+'&returnToView=true' +'\')'">
|
||||
<i style="margin-top: 2px;" class="haofont hao-icon-bianji post-meta-icon"></i>
|
||||
<span>编辑</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue