Skip to content

Commit 51c42c9

Browse files
committed
Support marking articles as featured
1 parent de39e68 commit 51c42c9

31 files changed

+95
-179
lines changed

_includes/index-posts-grid.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<!-- Jekyll生成的HTML列表默认隐藏,由React重新加载 -->
22
<hr class="index-li-divider" />
33
<section id="index-list-wrapper">
4-
<ul class="grid-index-ul">
4+
<ul class="grid-index-ul" style="display: none;">
55
{%- assign count = 0 -%}
66
{% for post in site.posts %}
77
{%- if count == 10 %}
88
{%- break %}
99
{% endif -%}
1010
{%- if post.categories contains index-category and post.hideFromIndex != true %}
11-
<li class="grid-index-li style="display: none;"">
11+
<li class="grid-index-li">
1212
<a class="index-a mdc-card grid-index-card grid-index-card__ripple" href="{{ post.url }}">
1313
<section>
1414
{%- if post.cover-for-index != null %}

_includes/index-posts.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<!-- Jekyll生成的HTML列表默认隐藏,由React重新加载 -->
22
<section id="index-list-wrapper">
3-
<ul class="index-ul">
3+
<ul class="index-ul" style="display: none;">
44
{% for post in site.posts %}
5-
{%- if post.categories contains index-category and post.hideFromIndex != true and post.pin == true %}
6-
<li class="index-li index-li--pin" style="display: none;">
5+
{%- if post.categories contains index-category and post.hideFromIndex != true and post.pinned == true %}
6+
<li class="index-li">
77
<a class="index-a mdc-card index-card" href="{{ post.url }}">
88
<section>
99
<h1 class="index-title">{{ post.title }}</h1>
1010
<span class="index-author">{% if post.moreDate != null %}{{ post.moreDate }}{% endif %} {{ post.author }}</span>
1111
<span class="index-date">{{ post.date | date: "%Y年%m月%d日" }}</span>
12-
<i class="material-symbols-rounded-light index-pin-icon">keep</i>
12+
<i class="material-symbols-rounded-light index-pinned-icon">keep</i>
1313
</section>
1414
</a>
1515
<hr class="index-li-divider" />
@@ -22,12 +22,15 @@ <h1 class="index-title">{{ post.title }}</h1>
2222
{%- break %}
2323
{% endif -%}
2424
{%- if post.categories contains index-category and post.hideFromIndex != true -%}
25-
<li class="index-li" style="display: none;">
25+
<li class="index-li">
2626
<a class="index-a mdc-card index-card" href="{{ post.url }}">
2727
<section>
2828
<h1 class="index-title">{{ post.title }}</h1>
2929
<span class="index-author">{% if post.moreDate != null %}{{ post.moreDate }}{% endif %} {{ post.author }}</span>
3030
<span class="index-date">{{ post.date | date: "%Y年%m月%d日" }}</span>
31+
{%- if post.featured == true %}
32+
<i class="material-symbols-rounded-light index-featured-icon">editor_choice</i>
33+
{%- endif %}
3134
</section>
3235
</a>
3336
<hr class="index-li-divider" />

_layouts/paginate-posts-json.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@
2626
"cover": "{{ post.cover }}",
2727
"index-cover": "{{ post.cover-for-index }}",
2828
"cover-alt": "{{ post.cover-alt-for-index }}",
29-
"hide": "{{ post.hideFromIndex }}",
3029
"tags": [
31-
{%- for tag in post.tags -%}
32-
"{{ tag }}"
33-
{%- unless forloop.last %}, {% endunless %}
34-
{%- endfor -%}
30+
{%- for tag in post.tags -%}
31+
"{{ tag }}"
32+
{%- unless forloop.last %}, {% endunless %}
33+
{%- endfor -%}
3534
],
3635
"categories": "{{ post.categories }}",
37-
"pin": "{{ post.pin }}"
36+
"pinned": "{{ post.pinned }}",
37+
"featured": "{{ post.featured }}",
38+
"hidden": "{{ post.hideFromIndex }}"
3839
}{% unless forloop.last %},{% endunless %}
3940
{%- endfor %}
4041
]

_posts/opera/2021-01-15-昆曲「浮生六记」五折.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ tags: 看剧 摄影 戏剧 上海 昆曲 省昆 昆昆 浮生六记 单雯 施
2323

2424
13 岁初见,一见倾心,17 岁成婚,23 年后芸娘消逝,最熟悉的眼前人有一天永远见不到了,沈复会是什么样的心情才会沉醉在著书的虚幻中。「闺房记乐」「闲情记趣」「坎坷记愁」是他前半生的“浮生若梦”。
2525

26-
关联文章[《旅行志 02:魔都与浮生六记》]({% link _posts/original/2021-01-17-旅行志02:魔都与浮生六记.md %}){: target="_blank" }。
26+
关联文章[《旅行志:魔都与浮生六记》]({% link _posts/original/2021-01-17-旅行志:魔都与浮生六记.md %}){: target="_blank" }。
2727

2828
## 演员表
2929

_posts/original/2019-05-18-槐安国内春生酒.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ date: 2019-05-18 +0800
99
description: 三年前,从昆曲《南柯梦》的「入梦」一折看到这句词,莫名亲切,又隐约有些伤感,由此记住了。汤显祖的《南柯记》原著长达四十四出,单独翻阅晦涩难懂,所以我真正了解“南柯一梦”是通过省昆在台北首演时发行的那张 DVD。上下两本五个小时,像歌剧一样,惊艳于刺绣戏服上尽是的花花草草,新生代昆曲名角们对舞和曲的演绎已然炉火纯青。
1010
cover: https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/original/20190518/kunqv_nankemeng_poster_thumb.jpg
1111
tags: 碎碎念 记忆 羁绊 戏剧 昆曲 省昆 南柯梦 牡丹亭 单雯 施夏明
12-
pin: true
12+
pinned: true
1313
---
1414

1515
> 槐安国内春生酒,花烛堂里夜合欢

_posts/original/2019-06-06-旅行志01:去南京看昆曲.md renamed to _posts/original/2019-06-06-旅行志:去南京看昆曲.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
categories: original
4-
title: "旅行志 01:去南京看昆曲"
4+
title: "旅行志:去南京看昆曲"
55
author: 立泉
66
actor: 单雯 施夏明
77
mention: 玉簪记 江南剧院 科举博物馆

_posts/original/2021-01-12-初见浙昆「代」字辈.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ date: 2021-01-12 +0800
99
description: 浙昆大概是新中国创建最早的昆剧团吧,但不可否认,我对浙昆其实十分陌生。在大陆 8 个昆团里,北昆的邵天帅让我认识昆曲,省昆的单雯和施夏明让我爱上昆曲,而浙昆,似乎只是偶尔听说过“一出戏拯救一个剧种”的《十五贯》传闻,哦对了,还有张志红。
1010
cover: https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/original/20210112/zhekun_duihua.jpg
1111
tags: 碎碎念 摄影 看剧 戏剧 杭州 昆曲 浙昆 施洋 焚香记 阳告 钱华仪 义侠记 游街 张唐逍 郑邵宇 长生殿 闻铃 王恒涛 杭州大剧院·可变剧场
12+
featured: true
1213
---
1314

1415
浙昆大概是新中国创建最早的昆剧团吧,但不可否认,我对浙昆其实十分陌生。

_posts/original/2021-01-17-旅行志02:魔都与浮生六记.md renamed to _posts/original/2021-01-17-旅行志:魔都与浮生六记.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
22
layout: post
33
categories: original
4-
title: "旅行志 02:魔都与浮生六记"
4+
title: "旅行志:魔都与浮生六记"
55
author: 立泉
66
actor: 单雯 施夏明 由腾腾
77
mention: 上海大剧院
88
date: 2021-01-17 +0800
99
description: 魔都上海,虽然和杭州很近,但三年来我真的没有去过,特意搭乘一列绿皮火车慢悠悠开 3 个小时才到。喜欢在列车上望向窗外的感觉,它在提醒我,这不是出差,是旅行,即使只有 200 公里。
1010
cover: https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/original/20210117/kunqv_fushengliuji_05_thumb.jpg
1111
tags: 碎碎念 旅行 摄影 看剧 戏剧 上海 昆曲 省昆 昆昆 浮生六记 单雯 施夏明 由腾腾 上海大剧院
12+
featured: true
1213
---
1314

1415
> 余生乾隆癸未冬十一月二十有二日,正值太平盛世,且在衣冠之家,居苏州沧浪亭畔,天之厚我,可谓至矣。东坡云:“事如春梦了无痕”,苟不记之笔墨,未免有辜彼苍之厚。因思《关雎》冠三百篇之首,故列夫妇于首卷,余以次递及焉。所愧少年失学,稍识之无,不过记其实情实事而已,若必考订其文法,是责明于垢鉴矣。

_posts/original/2021-06-10-旅行志03:兰苑狮吼.md renamed to _posts/original/2021-06-10-旅行志:兰苑狮吼.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
---
22
layout: post
33
categories: original
4-
title: "旅行志 03:兰苑狮吼"
4+
title: "旅行志:兰苑狮吼"
55
author: 立泉
66
actor: 单雯 施夏明
77
mention: 石善明 盗王坟 三岔口 南京
88
date: 2021-06-10 +0800
99
description: 时隔两年,再到金陵,依然是为单雯和施夏明而来,在兰苑看一折难得一见的《狮吼记·跪池》。记得两年前专程去江宁府学门前“朝圣”,知道省昆和兰苑就在这个小院子里,那时我只有江南剧院的演出票无缘进去。但正如我在后来游记中写过的,只是看到“江宁府学”四个字就已经不虚此行。
1010
cover: https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/original/20210610/DSC04880_thumb.jpg
1111
tags: 碎碎念 旅行 摄影 看剧 戏剧 南京 昆曲 省昆 狮吼记 跪池 单雯 施夏明 盗王坟 三岔口 石善明 李鸿良 兰苑
12+
featured: true
1213
---
1314

14-
时隔两年,再到金陵,依然是为单雯和施夏明而来,在兰苑看一折难得一见的《狮吼记·跪池》。记得[两年前]({% link _posts/original/2019-06-06-旅行志01:去南京看昆曲.md %}){: target="_blank" }专程去江宁府学门前“朝圣”,知道省昆和兰苑就在这个小院子里,那时我只有江南剧院的演出票无缘进去。但正如我在后来[游记]({% link _posts/original/2019-06-06-旅行志01:去南京看昆曲.md %}){: target="_blank" }中写过的,只是看到“江宁府学”四个字便已经不虚此行。
15+
时隔两年,再到金陵,依然是为单雯和施夏明而来,在兰苑看一折难得一见的《狮吼记·跪池》。记得两年前专程去江宁府学门前“朝圣”,知道省昆和兰苑就在这个小院子里,那时我只有江南剧院的演出票无缘进去。但正如我在后来[游记]({% link _posts/original/2019-06-06-旅行志:去南京看昆曲.md %}){: target="_blank" }中写过的,只是看到“江宁府学”四个字便已经不虚此行。
1516

1617
![](https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/original/20210610/IMG_6402_thumb.jpg){: loading="lazy" class="clickable clickShowOriginalImg" alt="江宁府学 省昆" }
1718

_posts/original/2022-01-17-趣算法01:小鼠试毒.md renamed to _posts/original/2022-01-17-趣算法:小鼠试毒.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
categories: original
4-
title: "趣算法 01:小鼠试毒"
4+
title: "趣算法:小鼠试毒"
55
author: 立泉
66
mention: 二进制 逻辑
77
date: 2022-01-17 +0800

0 commit comments

Comments
 (0)