diff --git a/.github/ISSUE_TEMPLATE/any-question.md b/.github/ISSUE_TEMPLATE/any-question.md
index 8c0bc01..80b940b 100644
--- a/.github/ISSUE_TEMPLATE/any-question.md
+++ b/.github/ISSUE_TEMPLATE/any-question.md
@@ -1,5 +1,5 @@
---
-name: Any Question
+name: Any Question【问题反馈】
about: 主题使用方面任何问题或建议
title: ''
labels: ''
diff --git a/.github/ISSUE_TEMPLATE/article-share.md b/.github/ISSUE_TEMPLATE/article-share.md
index 7aadcd0..94d9150 100644
--- a/.github/ISSUE_TEMPLATE/article-share.md
+++ b/.github/ISSUE_TEMPLATE/article-share.md
@@ -1,5 +1,5 @@
---
-name: Article Share
+name: Article Share【文章分享】
about: 与Stellar相关的文章分享
title: '[分享] '
labels: '教程'
diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs
index 7a650f5..352fb35 100755
--- a/layout/_partial/head.ejs
+++ b/layout/_partial/head.ejs
@@ -45,6 +45,7 @@ function og_args() {
%>
<%- meta_generator() %>
+ ';
const items = links[args.group] || [];
- console.log('links', links);
- console.log('group', args.group);
- console.log('items', items);
items.forEach((item, i) => {
el += cell(item);
});
diff --git a/scripts/tags/timeline.js b/scripts/tags/timeline.js
index 58b7505..dccd70f 100644
--- a/scripts/tags/timeline.js
+++ b/scripts/tags/timeline.js
@@ -36,14 +36,14 @@ function layoutNodeContent(content) {
function postTimeline(args, content) {
- args = hexo.args.map(args, ['api', 'user', 'type', 'limit']);
+ args = hexo.args.map(args, ['api', 'user', 'type', 'limit', 'hide']);
var el = '';
if (!args.type) {
args.type = 'timeline';
}
if (args.api && args.api.length > 0) {
el += '
';
} else {
el += '
';
diff --git a/source/js/main.js b/source/js/main.js
index 2895a2b..78c6742 100644
--- a/source/js/main.js
+++ b/source/js/main.js
@@ -1,4 +1,4 @@
-console.log('hexo-theme-stellar:\n' + stellar.github);
+console.log('\n' + '%c Stellar v' + stellar.version + ' %c\n' + stellar.github + '\n', 'color:#e8fafe;background:#03c7fa;padding:8px;border-radius:4px', 'margin-top:8px');
// utils
const util = {
diff --git a/source/js/plugins/timeline.js b/source/js/plugins/timeline.js
index 736b36d..41d9088 100644
--- a/source/js/plugins/timeline.js
+++ b/source/js/plugins/timeline.js
@@ -57,12 +57,18 @@ const StellarTimeline = {
$(el).append('
');
StellarTimeline.requestAPI(cfg.api, function(data) {
$(el).find('.loading-wrap').remove();
+ const query = new URL(cfg.api).search;
const arr = data.content || data;
var users = [];
const filter = el.getAttribute('user');
if (filter && filter.length > 0) {
users = filter.split(",");
}
+ var hide = [];
+ const hideStr = el.getAttribute('hide');
+ if (hideStr && hideStr.length > 0) {
+ hide = hideStr.split(",");
+ }
arr.forEach((item, i) => {
if (item.user && item.user.login && users.length > 0) {
if (!users.includes(item.user.login)) {
@@ -81,46 +87,53 @@ const StellarTimeline = {
cell += '
' + date.toString().replace(/\sGMT([^.]*)/i, "") + '
';
cell += '
';
cell += '
';
- cell += '
';
- cell += '';
- cell += item.title || item.name || item.tag_name;
- cell += '';
- cell += '
';
+ if (!hide.includes('title')) {
+ cell += '
';
+ cell += '';
+ cell += item.title || item.name || item.tag_name;
+ cell += '';
+ cell += '
';
+ }
cell += marked.parse(item.body);
- cell += '';
cell += '
';
cell += '
';
$(el).append(cell);