2020-05-20 14:35:05 +00:00
|
|
|
<#--
|
|
|
|
|
|
|
|
Bolo - A stable and beautiful blogging system based in Solo.
|
|
|
|
Copyright (c) 2020, https://github.com/adlered
|
|
|
|
|
|
|
|
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/>.
|
|
|
|
|
|
|
|
-->
|
|
|
|
<div
|
|
|
|
class="column is-4-tablet is-4-desktop is-3-widescreen has-order-1 column-left <%= sticky_class(position) %>">
|
|
|
|
<div class="card widget profile">
|
|
|
|
<div class="card-content">
|
|
|
|
<nav class="level">
|
|
|
|
<div class="level-item has-text-centered" style="flex-shrink: 1">
|
|
|
|
<div class="level">
|
2022-07-02 06:00:13 +00:00
|
|
|
<!-- <figure class="image is-64x64 has-mb-6 level-left" style="margin: 0 auto">
|
2020-10-06 14:05:43 +00:00
|
|
|
<img class="is-rounded" src="${faviconURL}" alt="${blogTitle!}" height="48" width="48"
|
|
|
|
style="padding: 2px; box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1);">
|
2022-07-02 06:00:13 +00:00
|
|
|
</figure> -->
|
2020-10-08 07:09:24 +00:00
|
|
|
<div class="level-right">
|
|
|
|
<div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<nav class="level is-mobile" style="margin-bottom:0px ;">
|
|
|
|
<div class="level-item has-text-centered" style="flex-shrink: 1">
|
|
|
|
<div class="level">
|
2020-05-20 14:35:05 +00:00
|
|
|
<div class="level-right">
|
|
|
|
<div>
|
|
|
|
<p class="title is-4" style="text-align: center">
|
|
|
|
${blogTitle!}
|
|
|
|
</p>
|
|
|
|
<p class="is-size-6 is-block" style="text-align: center">
|
|
|
|
${blogSubtitle!}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<nav class="level is-mobile">
|
|
|
|
<div class="level-item has-text-centered is-marginless">
|
|
|
|
<div>
|
|
|
|
<p class="heading">
|
|
|
|
文章
|
|
|
|
</p>
|
|
|
|
<p class="title has-text-weight-normal">
|
|
|
|
${statistic.statisticPublishedBlogArticleCount}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="level-item has-text-centered is-marginless">
|
|
|
|
<div>
|
|
|
|
<p class="heading">
|
|
|
|
评论
|
|
|
|
</p>
|
|
|
|
<p class="title has-text-weight-normal">
|
|
|
|
${statistic.statisticPublishedBlogCommentCount}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="level-item has-text-centered is-marginless">
|
|
|
|
<div>
|
|
|
|
<p class="heading">
|
|
|
|
浏览
|
|
|
|
</p>
|
|
|
|
<p class="title has-text-weight-normal">
|
2020-10-06 05:27:29 +00:00
|
|
|
<#if statistic.statisticBlogViewCount?length gt 5>
|
|
|
|
<#assign viewCount=statistic.statisticBlogViewCount?number/>
|
|
|
|
<#assign viewCountWan=viewCount/10000 />
|
2020-10-28 16:28:08 +00:00
|
|
|
${viewCountWan?string('#.##')}w
|
2020-10-06 05:27:29 +00:00
|
|
|
<#else>
|
|
|
|
${statistic.statisticBlogViewCount}
|
|
|
|
</#if>
|
2020-05-20 14:35:05 +00:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<div class="level is-mobile">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card widget">
|
|
|
|
<div class="card-content">
|
|
|
|
<div class="menu">
|
2020-09-29 16:49:32 +00:00
|
|
|
<div class="menu-label">
|
2020-10-31 14:36:56 +00:00
|
|
|
${blogTitle!}-${categoryLabel}
|
2020-09-29 16:49:32 +00:00
|
|
|
</div>
|
2020-05-20 14:35:05 +00:00
|
|
|
<ul class="menu-list">
|
|
|
|
<#list mostUsedCategories as category>
|
|
|
|
<li>
|
2020-09-29 16:49:32 +00:00
|
|
|
<a class="level is-marginless" href="/category/${category.categoryURI}">
|
2020-05-20 14:35:05 +00:00
|
|
|
<span class="level-start">
|
|
|
|
<span class="level-item">${category.categoryTitle}</span>
|
|
|
|
</span>
|
|
|
|
<span class="level-end">
|
|
|
|
<span class="level-item tag">${category.categoryPublishedArticleCount}</span>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</#list>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-08-30 11:38:43 +00:00
|
|
|
<div class="card widget">
|
|
|
|
<div class="card-content">
|
2020-09-29 16:49:32 +00:00
|
|
|
<div class="menu-label">
|
2020-10-31 14:36:56 +00:00
|
|
|
${blogTitle!}-${recentCommentsLabel}
|
2020-09-29 16:49:32 +00:00
|
|
|
</div>
|
2020-08-30 11:38:43 +00:00
|
|
|
<#list recentComments as comment>
|
2020-11-03 15:00:25 +00:00
|
|
|
<article class="media media-comment">
|
2022-07-02 06:00:13 +00:00
|
|
|
<div class="media-content" style="padding-left:20px;">
|
2020-09-20 06:20:59 +00:00
|
|
|
<div style="padding-top: 10px;padding-right:10px;">
|
2020-08-31 15:02:49 +00:00
|
|
|
<div class="has-text-grey is-size-7 is-uppercase">
|
|
|
|
<a href="${comment.commentURL}" rel="nofollow" target="_black">
|
|
|
|
${comment.commentName}</a>
|
2020-11-04 10:42:51 +00:00
|
|
|
at
|
2020-08-31 15:02:49 +00:00
|
|
|
${comment.commentDate2?string("yyyy-MM-dd")}
|
|
|
|
</div>
|
2020-08-30 11:38:43 +00:00
|
|
|
</div>
|
2020-09-29 16:49:32 +00:00
|
|
|
<a href="${comment.commentSharpURL}"
|
2020-08-30 11:38:43 +00:00
|
|
|
class="title has-link-black-ter is-size-6
|
2020-10-22 15:51:28 +00:00
|
|
|
has-text-weight-normal" style="background-color:#f7f7f7 !important;"> ${comment.commentContent}</a>
|
2020-08-30 11:38:43 +00:00
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
</#list>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-20 14:35:05 +00:00
|
|
|
<div class="column-right-shadow is-hidden-widescreen is-6-fullhd">
|
2020-06-14 04:39:12 +00:00
|
|
|
<div class="card widget">
|
|
|
|
<div class="card-content" style="width:100%">
|
|
|
|
<div class="menu">
|
2020-09-29 16:49:32 +00:00
|
|
|
<div class="menu-label">
|
2020-10-31 14:36:56 +00:00
|
|
|
${blogTitle!}-${noticeBoardLabel}
|
2020-09-29 16:49:32 +00:00
|
|
|
</div>
|
2020-06-14 04:39:12 +00:00
|
|
|
<ul class="menu-list">
|
|
|
|
${noticeBoard}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-08-31 15:02:49 +00:00
|
|
|
<div class="card widget">
|
2021-11-13 01:41:30 +00:00
|
|
|
<div class="card-content" style="width:100%;min-width:300px">
|
2020-08-31 15:02:49 +00:00
|
|
|
<div class="menu">
|
|
|
|
<input type="text" required="required" value="" name="s" id="search-m"
|
|
|
|
onkeydown="enterSearch(event)">
|
|
|
|
<input type="submit" id="searchsubmit" class="button" value="搜索" onclick="search_m()">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-20 14:35:05 +00:00
|
|
|
<div class="card widget">
|
|
|
|
<div class="card-content">
|
2020-09-29 16:49:32 +00:00
|
|
|
<div class="menu-label">
|
2020-05-20 14:35:05 +00:00
|
|
|
${mostViewCountArticlesLabel}
|
2020-09-29 16:49:32 +00:00
|
|
|
</div>
|
2020-05-20 14:35:05 +00:00
|
|
|
<#list mostViewCountArticles as article>
|
|
|
|
<article class="media">
|
|
|
|
<div class="media-content">
|
|
|
|
<div class="content">
|
|
|
|
<div style="padding-top: 10px;">
|
|
|
|
|
2021-11-06 14:25:07 +00:00
|
|
|
<div class="has-text-grey is-size-7 is-uppercase">
|
|
|
|
<#assign viewCountStr=article.articleViewCount?string('#.###')/>
|
|
|
|
<#if viewCountStr?length gt 3>
|
|
|
|
<#assign viewCount=viewCountStr?number/>
|
|
|
|
<#assign viewCountK=viewCount/1000 />
|
|
|
|
${viewCountK?string('#.##')}K 浏览
|
|
|
|
<#else>
|
|
|
|
${article.articleViewCount}浏览
|
|
|
|
</#if>
|
2020-05-20 14:35:05 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-29 16:49:32 +00:00
|
|
|
<a href="${article.articlePermalink}"
|
2020-05-20 14:35:05 +00:00
|
|
|
class="title has-link-black-ter is-size-6 has-text-weight-normal">${article.articleTitle!}</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
</#list>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-08-31 15:02:49 +00:00
|
|
|
<div class="card widget">
|
|
|
|
<div class="card-content">
|
|
|
|
<div class="menu">
|
2020-09-29 16:49:32 +00:00
|
|
|
<div class="menu-label">
|
2020-10-31 14:36:56 +00:00
|
|
|
${blogTitle!}-${tagLabel}
|
2020-09-29 16:49:32 +00:00
|
|
|
</div>
|
2020-08-31 15:02:49 +00:00
|
|
|
<div class="field is-grouped is-grouped-multiline">
|
|
|
|
<#list mostUsedTags as tag>
|
|
|
|
<div class="control">
|
2020-09-29 16:49:32 +00:00
|
|
|
<a class="tags has-addons" href="/tags/${tag.tagTitle?url('UTF-8')}">
|
2020-08-31 15:02:49 +00:00
|
|
|
<span class="tag">${tag.tagTitle}</span>
|
|
|
|
<span class="tag is-grey">${tag.tagPublishedRefCount!}</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</#list>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-20 14:35:05 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|