Skip to content

Commit ec1ac7f

Browse files
committed
[add] 2 scaffolds for Hexo CLI
1 parent a690c2c commit ec1ac7f

File tree

6 files changed

+48
-4
lines changed

6 files changed

+48
-4
lines changed

ReadMe.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ npm install && npm start
3131
cd ~/Desktop/FCC-CDC/OWS/
3232

3333
hexo new "My Post title"
34+
#
35+
# hexo new activity "New activity title"
3436

3537
cd source/
3638

scaffolds/activity.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
title: {{ title }}
3+
date: {{ date }}
4+
categories:
5+
- Activity
6+
# 二级分类:Salon、Workshop 或 Conference
7+
tags:
8+
# online 或 offline
9+
# 与内容相关的更多标签
10+
toc: true
11+
12+
# Activity meta
13+
description: # 活动简介
14+
start: # 活动开始时间
15+
end: # 活动结束时间
16+
address: # 线下活动地址(市州、区县、路街、楼栋)
17+
links:
18+
报名: # https://jinshuju.net/f/xxxxxx
19+
mentors:
20+
# 讲师、教练们的 GitHub 账号
21+
workers:
22+
# 组织者、志愿者们的 GitHub 账号
23+
partners:
24+
# 合办方、场地方、赞助方
25+
26+
# Attachment meta
27+
photos:
28+
- # 第一张为活动封面图
29+
- # 第二张开始为活动结束后上传的现场照片
30+
files:
31+
- # 活动结束后上传的 PDF、PPT 等非纯文本文件
32+
---

scaffolds/post.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
---
22
title: {{ title }}
33
date: {{ date }}
4+
updated: # 修订日期
5+
categories:
6+
# 分类名应为一个首字母大写的英文单词
7+
# 每级分类对应一级目录,写在本文件的文件名前面
48
tags:
9+
# 与内容相关的更多标签
10+
11+
authors:
12+
# 原作者们的 GitHub 账号
13+
original: # 文章出处链接
14+
toc: true
15+
thumbnail: # 封面图片
516
---

themes/Icarus/layout/widget/files.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<% files.forEach(file => { %>
22
<li>
3-
<a target="_blank" href="<%= (path + encodeURI( file )) %>">
3+
<a target="_blank" href="<%= encodeURI( file ) %>">
44
55
<i class="fas fa-2x fa-file-<%= (file_type( file ) || 'alt') %>"></i>
66

themes/Icarus/layout/widget/post_media.ejs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ if ( original ) { %>
1212
}
1313
1414
if ( files ) { %>
15-
<hr>
1615
<h2>资料下载</h2>
1716
<ol>
1817
<%- partial('./files', {path, files}) %>
@@ -36,7 +35,7 @@ if ( authors ) { %>
3635
3736
if ( photos[0] ) { %>
3837
<div class="content">
39-
<h3>精彩瞬间</h3>
38+
<h2>精彩瞬间</h2>
4039
<%- partial('../widget/gallery', {posts: [post]}) %>
4140
</div><%
4241
}

0 commit comments

Comments
 (0)