Commit b1512991 authored by Van's avatar Van

article 40%

parent e442a441
......@@ -22,7 +22,7 @@
<section class="abstract">
${article.articleAbstract}
</section>
<footer>
<footer class="tags">
<span class="icon-tag"></span> &nbsp;
<#list article.articleTags?split(",") as articleTag>
<a class="tag" rel="tag" href="${servePath}/tags/${articleTag?url('UTF-8')}">
......
......@@ -8,66 +8,59 @@
<meta name="description" content="${article.articleAbstract?html}" />
</@head>
</head>
<body class="nav-closed">
<div class="nav">
<body>
<#include "side.ftl">
</div>
<div class="site-wrapper">
<#include "header.ftl">
<main>
<article class="post fn-wrap">
<article class="post">
<header>
<h1 class="post-title">
<h2>
<a rel="bookmark" href="${servePath}${article.articlePermalink}">
${article.articleTitle}
</a>
<#if article.hasUpdated>
<sup class="post-tip">
${updatedLabel}
</sup>
</#if>
<#if article.articlePutTop>
<sup class="post-tip">
<sup>
${topArticleLabel}
</sup>
</#if>
</h1>
<section class="post-meta">
<#if article.hasUpdated>
<sup>
${updatedLabel}
</sup>
</#if>
</h2>
<time><span class="icon-date"></span> ${article.articleCreateDate?string("yyyy-MM-dd")}</time>
<section class="tags">
<span class="icon-tag"></span> &nbsp;
<#list article.articleTags?split(",") as articleTag>
<span>
<a rel="tag" href="${servePath}/tags/${articleTag?url('UTF-8')}">
${articleTag}</a><#if articleTag_has_next>,</#if>
</span>
<a class="tag" rel="tag" href="${servePath}/tags/${articleTag?url('UTF-8')}">
${articleTag}</a>
</#list>
<time>${article.articleCreateDate?string("yyyy-MM-dd")}</time>
<a rel="nofollow" href="${servePath}/authors/${article.authorId}">
<img class="avatar" title="${article.authorName}" alt="${article.authorName}" src="${article.authorThumbnailURL}"/>
</a>
</section>
</header>
<section class="post-content article-body">
<section class="abstract">
${article.articleContent}
<#if "" != article.articleSign.signHTML?trim>
<div class="marginTop12">
<div>
${article.articleSign.signHTML}
</div>
</#if>
</section>
<footer>
<figure class="post-author">
<a href="${servePath}/authors/${article.authorId}"
title="${article.authorName}" alt="${article.authorName}"
style="background-image: url('${article.authorThumbnailURL}')">
<span class="fn-none">${article.authorName}</span>
</a>
</figure>
<div class="share fn-right">
<span class="icon icon-tencent" data-type="tencent"></span>
<footer class="fn-clear share">
<div class="fn-right">
<span class="icon icon-t-weibo" data-type="tencent"></span>
<span class="icon icon-weibo" data-type="weibo"></span>
<span class="icon icon-twitter" data-type="twitter"></span>
<span class="icon icon-google" data-type="google"></span>
<span class="icon icon-gplus" data-type="google"></span>
</div>
</footer>
</article>
<@comments commentList=articleComments article=article></@comments>
</main>
<#if nextArticlePermalink?? || previousArticlePermalink??>
<aside class="read-next">
<#if nextArticlePermalink??>
......@@ -95,6 +88,6 @@
<@comment_script oId=article.oId>
page.tips.externalRelevantArticlesDisplayCount = "${externalRelevantArticlesDisplayCount}";
</@comment_script>
</div>
</main>
</body>
</html>
......@@ -440,7 +440,7 @@ article.show {
article header {
border-left: 5px solid;
padding: 15px 135px 15px 25px;
padding: 15px 30px 15px 25px;
}
article header:hover {
......@@ -450,6 +450,7 @@ article header:hover {
article header h2 {
margin: 0;
font-size: 26px;
padding-right: 110px;
}
article header a {
......@@ -489,12 +490,20 @@ article footer {
border-top: 1px solid #ddd;
}
article footer .tag:hover,
.post section.tags {
margin: 0;
}
.post header {
padding-bottom: 0;
}
.tags .tag:hover,
article .abstract a:hover{
opacity: 0.7;
}
article footer .avatar {
.tags .avatar {
width: 20px;
border-radius: 10px;
right: 30px;
......@@ -503,11 +512,23 @@ article footer .avatar {
transition: all 0.2s ease-out 0s;
}
article footer .avatar:hover {
.post .tags .avatar {
bottom: inherit;
margin-top: 4px;
}
.share span {
transition: all 0.2s ease-out 0s;
cursor: pointer;
}
.tags .avatar:hover,
.share span:hover {
transform: rotate(360deg);
color: #333;
}
article footer .tag {
.tags .tag {
color: #fff;
font-size: 10px;
height: 18px;
......@@ -521,7 +542,7 @@ article footer .tag {
font-family: Menlo, Monaco, "Andale Mono", "lucida console", "Courier New", monospace;
}
article footer .tag:before {
.tags .tag:before {
content: " ";
width: 0px;
height: 0px;
......@@ -532,7 +553,7 @@ article footer .tag:before {
border-right-color: #7b5d5f;
}
article footer .tag:after {
.tags .tag:after {
content: " ";
width: 4px;
height: 4px;
......@@ -608,6 +629,10 @@ nav.pagination .extend:hover {
nav.pagination:hover .extend {
opacity: 1;
}
.post .share {
padding: 0;
}
/* end article */
/* start footer */
......
<header class="main-header"<#if !isIndex> style='height:30vh;'</#if>>
<div class="fn-clear">
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
</div>
<div class="fn-vertical">
<div class="main-header-content fn-wrap">
<h1 class="page-title">
<a href="${servePath}">${blogTitle}</a>
<#if "" != noticeBoard>
<small class="page-description"> &nbsp; ${blogSubtitle}</small>
</#if>
</h1>
<h2 class="page-description">
<#if "" != noticeBoard>
${noticeBoard}
<#else>
${blogSubtitle}
</#if>
</h2>
</div>
</div>
<#if isIndex><a class="scroll-down icon-arrow-left" href="#content" data-offset="-45"></a></#if>
</header>
\ No newline at end of file
......@@ -144,7 +144,7 @@
page.addReplyForm(id, commentFormHTML);
};
(function () {
Finding.share();
Yilia.share();
page.load();
// emotions
page.replaceCommentsEm("#comments .comment-content");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment