117 lines
4.8 KiB
Plaintext
117 lines
4.8 KiB
Plaintext
<#--
|
|
|
|
Solo - A small and beautiful blogging system written in Java.
|
|
Copyright (c) 2010-2019, b3log.org & hacpai.com
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Affero General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Affero General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
-->
|
|
<#include "macro-head.ftl">
|
|
<#include "macro-comments.ftl">
|
|
<#include "../../common-template/macro-comment_script.ftl">
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<@head title="${article.articleTitle} - ${blogTitle}">
|
|
<meta name="keywords" content="${article.articleTags}" />
|
|
<meta name="description" content="${article.articleAbstract?html}" />
|
|
</@head>
|
|
</head>
|
|
<body class="home page top-navbar">
|
|
<#include "header.ftl">
|
|
<div id="wrap" class="container" role="document">
|
|
<div id="content" class="row">
|
|
<div id="main" class="span8" role="main">
|
|
<div class="page-header page-header-m">
|
|
<h3>
|
|
${article.articleTitle}
|
|
</h3>
|
|
</div>
|
|
<div class="page-header-bottom">
|
|
<span>
|
|
<li class="icon-time"></li>
|
|
<#if article.hasUpdated>
|
|
${article.articleUpdateDate?string("yyyy-MM-dd HH:mm:ss")}
|
|
<#else>
|
|
${article.articleCreateDate?string("yyyy-MM-dd HH:mm:ss")}
|
|
</#if>
|
|
</span>
|
|
<span>
|
|
<li class="icon-user"></li>
|
|
<a href="/authors/${article.authorId}" title="${authorLabel}: ${article.authorName}">
|
|
${article.authorName}
|
|
</a>
|
|
</span>
|
|
<div class="pull-right">
|
|
<span>
|
|
<li class="icon-eye-open"></li>
|
|
<a href="${article.articlePermalink}">${article.articleViewCount} ${viewLabel}</a>
|
|
</span>
|
|
<span>
|
|
<li class="icon-comment"></li>
|
|
<a href="${article.articlePermalink}#comments">${article.articleCommentCount} ${commentLabel}</a>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
${article.articleContent}
|
|
<div class="article-tags">
|
|
<li class="icon-tags"></li>
|
|
${tag1Label}
|
|
<#list article.articleTags?split(",") as articleTag>
|
|
<span>
|
|
<a href="${servePath}/tags/${articleTag?url('UTF-8')}">
|
|
${articleTag}
|
|
</a>
|
|
<#if articleTag_has_next>,</#if>
|
|
</span>
|
|
</#list>
|
|
</div>
|
|
<div class="alert alert-info">
|
|
<#if nextArticlePermalink??>
|
|
<a href="${servePath}${nextArticlePermalink}" title="${nextArticleTitle}">
|
|
<li class="icon-step-backward"></li>${nextArticleTitle}
|
|
</a>
|
|
</#if>
|
|
|
|
<#if previousArticlePermalink??>
|
|
<div class="pull-right">
|
|
<a href="${servePath}${previousArticlePermalink}" title="${previousArticleTitle}">
|
|
${previousArticleTitle}<li class="icon-step-forward"></li>
|
|
</a>
|
|
</div>
|
|
</#if>
|
|
</div>
|
|
<@comments commentList=articleComments article=article></@comments>
|
|
</div>
|
|
<aside id="sidebar" class="span4" role="complementary">
|
|
<#include "side.ftl">
|
|
</aside>
|
|
</div>
|
|
</div>
|
|
<#include "footer.ftl">
|
|
<@comment_script oId=article.oId commentable=article.commentable>
|
|
page.tips.externalRelevantArticlesDisplayCount = "${externalRelevantArticlesDisplayCount}";
|
|
<#if 0 != randomArticlesDisplayCount>
|
|
page.loadRandomArticles('<h4 class="ft-gray">${randomArticlesLabel}</h4>');
|
|
</#if>
|
|
<#if 0 != relevantArticlesDisplayCount>
|
|
page.loadRelevantArticles('${article.oId}', '<h4 class="ft-gray">${relevantArticlesLabel}</h4>');
|
|
</#if>
|
|
<#if 0 != externalRelevantArticlesDisplayCount>
|
|
page.loadExternalRelevantArticles("<#list article.articleTags?split(",") as articleTag>${articleTag}<#if articleTag_has_next>,</#if></#list>");
|
|
</#if>
|
|
</@comment_script>
|
|
</body>
|
|
</html>
|