Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

Commit

Permalink
fix: 移动端icon点击事件
Browse files Browse the repository at this point in the history
  • Loading branch information
zjhch123 committed Aug 7, 2018
0 parents commit 4eab437
Show file tree
Hide file tree
Showing 28 changed files with 17,628 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
53 changes: 53 additions & 0 deletions archive-articles.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<#--
Solo - A beautiful, simple, stable, fast Java blogging system.
Copyright (c) 2010-2018, 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">
<!DOCTYPE html>
<html>
<head>
<@head title="${archiveDate.archiveDateMonth} ${archiveDate.archiveDateYear} (${archiveDate.archiveDatePublishedArticleCount}) - ${blogTitle}">
<meta name="keywords" content="${metaKeywords},${archiveDate.archiveDateYear}${archiveDate.archiveDateMonth}"/>
<meta name="description" content="<#list articles as article>${article.articleTitle}<#if article_has_next>,</#if></#list>"/>
</@head>
</head>
<body>
<#include "header.ftl">
<div class="am-g am-g-fixed blog-fixed">
<div class="am-u-lg-8 am-u-sm-12">
<main class="archives-articles">
<div class="title">
<h2 class="tip">
<i class="icon-inbox"></i>
&nbsp;
<#if "en" == localeString?substring(0, 2)>
${archiveDate.archiveDateMonth} ${archiveDate.archiveDateYear}
<#else>
${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel}
</#if>
- ${archiveDate.archiveDatePublishedArticleCount} ${articleLabel}
</h2>
</div>
<#include "article-list.ftl">
</main>
</div>
<#include "side.ftl">
</div>
<#include "footer.ftl">
</body>
</html>
61 changes: 61 additions & 0 deletions archives.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<#--
Solo - A beautiful, simple, stable, fast Java blogging system.
Copyright (c) 2010-2018, 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">
<!DOCTYPE html>
<html>
<head>
<@head title="${blogTitle}">
<meta name="keywords" content="${metaKeywords},${archiveLabel}"/>
<meta name="description" content="${metaDescription},${archiveLabel}"/>
</@head>
</head>
<body>
<#include "header.ftl">
<div class="am-g am-g-fixed blog-fixed">
<div class="am-u-lg-8 am-u-sm-12">
<main class="archives-articles">
<span class="title">
<h3><i class="icon-inbox"></i>
&nbsp;${statistic.statisticPublishedBlogArticleCount} ${articleLabel}</h3>
</span>
<#if 0 != archiveDates?size>
<ul class="list">
<#list archiveDates as archiveDate>
<li>
<#if "en" == localeString?substring(0, 2)>
<a class="post-title" href="${servePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}">
${archiveDate.monthName} ${archiveDate.archiveDateYear}(${archiveDate.archiveDatePublishedArticleCount})
</a>
<#else>
<a class="post-title" href="${servePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}">
${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel}(${archiveDate.archiveDatePublishedArticleCount})
</a>
</#if>
</li>
</#list>
</ul>
</#if>
</main>
</div>
<#include "side.ftl">
</div>
<#include "footer.ftl">
</body>
</html>
70 changes: 70 additions & 0 deletions article-list.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<#--
Solo - A beautiful, simple, stable, fast Java blogging system.
Copyright (c) 2010-2018, 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/>.
-->
<div>
<#list articles as article>
<article class="am-g blog-entry-article">
<div class="am-u-lg-6 am-u-lg-12 am-u-sm-12 blog-entry-text post-preview">
<div class="topic-header">
<div class="pull-left">
<div class="blog-flex-center">
<div class="blog-flex0">
<img src="${article.authorThumbnailURL}" alt="" class="link avatar avatar-image">
</div>
<div class="author-lockup blog-flex1">
<a class="link" href="javascript:;">${article.authorName}</a>
<span class="in">in</span>
<#list article.articleTags?split(",") as articleTag>
<span class="category-name">
<a class="category-name" rel="tag" href="${servePath}/tags/${articleTag?url('UTF-8')}">
${articleTag}</a>
</span>
</#list>
</div>
</div>
</div>
<span class="pull-right time pc_time">${article.articleCreateDate?string("yyyy-MM-dd")}</span>
</div>
<h1 class="post-index-title"><a itemtype="url" href="${servePath}${article.articlePermalink}">${article.articleTitle}</a></h1>
<div class="post-content-preview article-body">
${article.articleAbstract}
</div>
<#-- 响应式
<div class="clearfix topic-footer">
<span class="pull-left time mobile_time"><?php $this->date('F j, Y'); ?></span>
</div> -->
</article>
</#list>


<#if 0 != paginationPageCount>
<ul class="am-pagination">
<#if 1 < paginationCurrentPageNum>
<li class="am-pagination-prev">
<a class="prev" href="${servePath}${path}/${paginationPreviousPageNum}">&laquo; Prev</a>
</li>
</#if>
<#if paginationCurrentPageNum < paginationPageCount>
<li class="am-pagination-next">
<a class="next" href="${servePath}${path}/${paginationNextPageNum}">Next &raquo;</a>
</li>
</#if>
</ul>
</#if>
</div>
183 changes: 183 additions & 0 deletions article.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
<#--
Solo - A beautiful, simple, stable, fast Java blogging system.
Copyright (c) 2010-2018, 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">
<!DOCTYPE html>
<html>
<head>
<@head title="${article.articleTitle} - ${blogTitle}">
<meta name="keywords" content="${article.articleTags}" />
<meta name="description" content="${article.articleAbstract?html}" />
</@head>
<#if previousArticlePermalink??>
<link rel="prev" title="${previousArticleTitle}" href="${servePath}${previousArticlePermalink}">
</#if>
<#if nextArticlePermalink??>
<link rel="next" title="${nextArticleTitle}" href="${servePath}${nextArticlePermalink}">
</#if>
<!-- Open Graph -->
<meta property="og:locale" content="zh_CN"/>
<meta property="og:type" content="article"/>
<meta property="og:title" content="${article.articleTitle}"/>
<meta property="og:description" content="${article.articleAbstract?html}"/>
<meta property="og:image" content="${article.authorThumbnailURL}"/>
<meta property="og:url" content="${servePath}${article.articlePermalink}"/>
<meta property="og:site_name" content="Solo"/>
<!-- Twitter Card -->
<meta name="twitter:card" content="summary"/>
<meta name="twitter:description" content="${article.articleAbstract?html}"/>
<meta name="twitter:title" content="${article.articleTitle}"/>
<meta name="twitter:image" content="${article.authorThumbnailURL}"/>
<meta name="twitter:url" content="${servePath}${article.articlePermalink}"/>
<meta name="twitter:site" content="@DL88250"/>
<meta name="twitter:creator" content="@DL88250"/>
</head>
<body>
<nav class="navbar navbar-default navbar-custom navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle">
<span class="sr-only"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">
${blogTitle}
</a>
<#-- <?php if($this->options->searchPage): ?>
<a class="navbar-mobile-search" href="<?php $this->options->searchPage(); ?>">
<span class="am-icon-search"></span>
</a>
<?php endif;?> -->
</div>

<!-- Collect the nav links, forms, and other content for toggling -->
<div id="huxblog_navbar">
<div class="navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="${servePath}">
<i class="icon-home"></i>
</a>
</li>
<#list pageNavigations as page>
<li>
<a href="${page.pagePermalink}" target="${page.pageOpenTarget}" rel="section">
${page.pageTitle}
</a>
</li>
</#list>
<li>
<a href="${servePath}/tags.html" rel="section">
${allTagsLabel}
</a>
</li>
<li>
<a href="${servePath}/archives.html">
${archiveLabel}
</a>
</li>
<#if isLoggedIn>
<li>
<a href="${servePath}/admin-index.do#main" title="${adminLabel}">
${adminLabel}
</a>
</li>
<li>
<a href="${logoutURL}">
${logoutLabel}
</a>
</li>
<#else>
<li>
<a href="${loginURL}">
${loginLabel}
</a>
</li>
<li>
<a href="${servePath}/register">
${registerLabel}
</a>
</li>
</#if>
</ul>
</div>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<header class="intro-header" style="background-image: url('/skins/${skinDirName}/images/header.jpg')">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="post-heading">
<h1>${article.articleTitle}</h1>
<span class="meta">@${article.authorName} &nbsp;${article.articleCreateDate?string("yyyy-MM-dd")}</span>
<div class="tags post-tags">
<#list article.articleTags?split(",") as articleTag>
<a class="tag" rel="tag" href="${servePath}/tags/${articleTag?url('UTF-8')}">
${articleTag}</a>&nbsp;
</#list>
</div>
</div>
</div>
</div>
</header>
<div class="container">
<div class="am-g am-g-fixed blog-fixed">
<div class="am-u-lg-12 am-u-sm-12">
<article class="am-article blog-article-p article-trigger">
<div id="post-content" class="am-article-bd article-body">
${article.articleContent}
<#if "" != article.articleSign.signHTML?trim>
<div>
${article.articleSign.signHTML}
</div>
</#if>
</div>
</article>
<hr>
</div>
</div>
</div>
<div class="comment-container">
<div class="comments-container-inner">
<@comments commentList=articleComments article=article></@comments>
</div>
</div>
<#include "footer.ftl">
<@comment_script oId=article.oId>
page.tips.externalRelevantArticlesDisplayCount = "${externalRelevantArticlesDisplayCount}";
<#if 0 != randomArticlesDisplayCount>
page.loadRandomArticles();
</#if>
<#if 0 != externalRelevantArticlesDisplayCount>
page.loadExternalRelevantArticles("<#list article.articleTags?split(",") as articleTag>${articleTag}<#if articleTag_has_next>,</#if></#list>"
, "<header class='title'><h2>${externalRelevantArticlesLabel}</h2></header>");
</#if>
<#if 0 != relevantArticlesDisplayCount>
page.loadRelevantArticles('${article.oId}', '<h4>${relevantArticlesLabel}</h4>');
</#if>
</@comment_script>
</body>
</html>
Loading

0 comments on commit 4eab437

Please sign in to comment.