Skip to content

Commit

Permalink
归档实心方块列表, 添加linkedin图标, archives 年份fade-up, 修改cdn为jsdelivr
Browse files Browse the repository at this point in the history
  • Loading branch information
whzecomjm committed Jan 9, 2020
1 parent d072a1a commit 2c8d3c3
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 11 deletions.
3 changes: 3 additions & 0 deletions assets/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,9 @@ a {
}
.post {
padding-bottom: 16px;
display: list-item;
list-style-type: square;
margin-left: 1em;
.post-title {
font-size: 18px;
transition: all 0.3s;
Expand Down
8 changes: 8 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@
"type": "input",
"note": "链接地址"
},
{
"name": "linkedin",
"label": "Linkedin",
"group": "社交",
"value": "",
"type": "input",
"note": "链接地址"
},
{
"name": "customCss",
"label": "自定义CSS",
Expand Down
8 changes: 4 additions & 4 deletions templates/_blocks/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css">
<link rel="shortcut icon" href="<%= themeConfig.domain %>/favicon.ico?v=<%= site.utils.now %>">
<link rel="stylesheet" href="<%= themeConfig.domain %>/styles/main.css">

<% if (typeof commentSetting !== 'undefined' && commentSetting.showComment) { %>
<% if (commentSetting.commentPlatform === 'gitalk') { %>
<link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1.5.0/dist/gitalk.min.css" />
<% } %>
<% if (commentSetting.commentPlatform === 'disqus') { %>
<link rel="stylesheet" href="https://unpkg.com/disqusjs@1.1/dist/disqusjs.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/disqusjs@1.2.6/dist/disqusjs.css" />
<% } %>
<% } %>

<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aos@2.3.4/dist/aos.css" />
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

<% if (site.customConfig.ga) { %>
Expand Down
8 changes: 4 additions & 4 deletions templates/_blocks/scripts.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/aos@2.3.4/dist/aos.min.js"></script>
<script type="application/javascript">
AOS.init();
Expand All @@ -13,7 +13,7 @@ var app = new Vue({
</script>

<% if (site.customConfig.renderCode) { %>
<script src="https://cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/highlight.js@9.17.1/lib/highlight.js"></script>
<script>
hljs.initHighlightingOnLoad()
</script>
Expand All @@ -22,7 +22,7 @@ var app = new Vue({
<% if (typeof commentSetting !== 'undefined' && commentSetting.showComment) { %>
<% if (commentSetting.commentPlatform === 'gitalk') { %>
<script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/gitalk@1.5.0/dist/gitalk.min.js"></script>
<script>
var gitalk = new Gitalk({
Expand All @@ -41,7 +41,7 @@ var app = new Vue({
<% } %>
<% if (commentSetting.commentPlatform === 'disqus') { %>
<script src="https://unpkg.com/disqusjs@1.1/dist/disqus.js"></script>
<script src="https://cdn.jsdelivr.net/npm/disqusjs@1.2.6/dist/disqus.min.js"></script>
<script>
var options = {
Expand Down
2 changes: 1 addition & 1 deletion templates/_blocks/sidebar.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</div>
<div class="bottom-container" data-aos="flip-up" data-aos-offset="0">
<div class="social-container">
<% ['github', 'twitter', 'weibo', 'zhihu', 'facebook'].forEach((item) => { %>
<% ['github', 'twitter', 'weibo', 'zhihu', 'facebook', 'linkedin'].forEach((item) => { %>
<% if (site.customConfig[item]) { %>
<a class="social-link" href="<%= site.customConfig[item] %>" target="_blank">
<i class="fab fa-<%= item %>"></i>
Expand Down
2 changes: 1 addition & 1 deletion templates/archives.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<h2 class="archives-title">文章归档</h2>
<div class="archives-container">
<% years.forEach(function(year) { %>
<h2 class="year" data-aos="fade-in" data-aos-delay="500"><%- year %></h2>
<h2 class="year" data-aos="fade-up"><%- year %></h2>
<% posts.forEach(function(post) { %>
<%if (post.date.indexOf(year) !== -1) { %>
<article class="post">
Expand Down
2 changes: 1 addition & 1 deletion templates/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<%- include('./_blocks/head', { siteTitle: themeConfig.siteName }) %>
<meta name="description" content="<%= themeConfig.siteDescription %>">
<% if (site.customConfig.renderKaTeX) { %>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.11.1/katex.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css">
<% } %>
</head>
<body>
Expand Down

0 comments on commit 2c8d3c3

Please sign in to comment.