Skip to content

Commit a478ed2

Browse files
committed
2022-11-04/02
1 parent b41e045 commit a478ed2

11 files changed

Lines changed: 944 additions & 24 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,26 @@ jobs:
3535
with:
3636
name: html
3737
path: _site
38+
- name: Update Algolia index
39+
run: |
40+
bundle exec jekyll algolia push
41+
env:
42+
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
43+
if: env.ALGOLIA_API_KEY != ''
44+
continue-on-error: true
3845

3946
publish:
4047
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
4148
needs: build
4249
runs-on: ubuntu-latest
4350
steps:
44-
- uses: actions/checkout@v3
4551
- uses: actions/download-artifact@v3
4652
with:
4753
name: html
4854
path: _site
49-
- name: Update Algolia index
50-
run: |
51-
bundle exec jekyll algolia push
52-
env:
53-
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
54-
continue-on-error: true
5555
- name: Cache Ossutil
5656
id: cache-ossutil
57-
uses: actions/cache@v2
57+
uses: actions/cache@v3
5858
with:
5959
path: ossutil64
6060
key: ${{ runner.os }}-ossutil64-1.7.14

_data/interviewees.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,26 @@
1818
kana: えりかわ めい
1919
english: Mei Erikawa
2020
image: mei-erikawa.jpg
21+
林田宏一:
22+
japanese: 林田 宏一
23+
kana: はやしだ こういち
24+
english: Koichi Hayashida
25+
image: koichi-hayashida.jpg
26+
平竹晋也:
27+
japanese: 平竹 晋也
28+
kana: ひらたけ しんや
29+
english: Shinya Hiratake
30+
image: shinya-hiratake.jpg
2131
神山达哉:
2232
japanese: 神山 達哉
2333
kana: かみやま たつや
2434
english: Tatsuya Kamiyama
2535
image: tatsuya-kamiyama.jpg
36+
北原有加:
37+
japanese: 北原 有加
38+
kana: きたはら ゆうか
39+
english: Yuka Kitahara
40+
image: yuka-kitahara.jpg
2641
清武博二:
2742
japanese: 清武 博二
2843
kana: きよたけ ひろじ
@@ -48,6 +63,11 @@
4863
kana: みやうち あつし
4964
english: Atsushi Miyauchi
5065
image: atsushi-miyauchi.jpg
66+
村田翔:
67+
japanese: 村田 翔
68+
kana: むらた しょう
69+
english: Sho Murata
70+
image: sho-murata.jpg
5171
中山朋子:
5272
japanese: 中山 朋子
5373
kana: なかやま ともこ

_includes/figure.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
{{ include.blank }}<figure{% if include.class %} class="{{ include.class }}"{% endif %}>
1+
{{ include.blank }}<figure{% if include.class %} class="{{ include.class }}"{% endif %}>{% assign _srcs = include.src | split: "|" %}{% if _srcs.size > 1 %}{% assign _widths = include.width | split: "|" %}{% assign _heights = include.height | split: "|" %}{% assign _links = include.link | split: "|" %}
2+
{{ include.blank }} <div class="figure-row">{% for src in _srcs %}{% assign width = _widths[forloop.index0] | default: width %}{% assign height = _heights[forloop.index0] | default: height %}
3+
{{ include.blank }} {% include image.html class="figure-image" src=src alt=include.alt width=width height=height %}{% endfor %}
4+
{{ include.blank }} </div>{% unless include.no_link %}{% for src in _srcs %}{% assign link = _links[forloop.index0] | default: link %}
5+
{{ include.blank }} <a class="figure-link" target="_blank" href="{{ link | default: _src | default: src }}"></a>{% endfor %}{% endunless %}{% else %}
26
{{ include.blank }} {% include image.html class="figure-image" src=include.src alt=include.alt width=include.width height=include.height %}{% unless include.no_link %}
3-
{{ include.blank }} <a class="figure-link" target="_blank" href="{{ _src | default: include.src }}"></a>{% endunless %}{% if include.alt %}
4-
{{ include.blank }} <figcaption class="caption-figure" id="figure-{% assign src_array = include.src | split: "/" %}{{ src_array.last}}">{{ include.alt }}</figcaption>{% endif %}
7+
{{ include.blank }} <a class="figure-link" target="_blank" href="{{ include.link | default: _src | default: include.src }}"></a>{% endunless %}{% endif %}{% if include.alt %}
8+
{{ include.blank }} <figcaption class="caption-figure" id="figure-{% assign _src_array = include.src | split: "/" %}{{ _src_array.last}}">{{ include.alt }}</figcaption>{% endif %}
59
{{ include.blank }}</figure>

_includes/image.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<img{% if include.class %} class="{{ include.class }}"{% endif %} src="{% capture _src %}{% assign _splited_src = include.src | split: "/" %}{% if _splited_src.size == 1 %}{% assign _splited_url = page.url | split: "." %}{{ site.image_cdn }}{{ _splited_url[0] }}/{% endif %}{{ include.src }}{% endcapture %}{{ _src }}" width="{{ include.width | default: 640 }}" height="{{ include.height | default: 360 }}" style="aspect-ratio: {{ include.width | default: 640 }}/{{ include.height | default: 360 }};"{% if include.alt %} alt="{{ include.alt | strip_html | escape }}"{% endif %} decoding="async" loading="lazy" />
1+
<img{% if include.class %} class="{{ include.class }}"{% endif %} src="{% capture _src %}{% assign _splited_src = include.src | split: "/" %}{% if _splited_src.size == 1 %}{% assign _splited_url = page.url | split: "." %}{% assign _splited_url_size = _splited_url | size | minus: 1 %}{{ site.image_cdn }}{{ _splited_url | slice: 0, _splited_url_size | join: "." }}/{% endif %}{{ include.src }}{% endcapture %}{{ _src }}" width="{{ include.width | default: 640 }}" height="{{ include.height | default: 360 }}" style="aspect-ratio: {{ include.width | default: 640 }}/{{ include.height | default: 360 }};"{% if include.alt %} alt="{{ include.alt | strip_html | escape }}"{% endif %} decoding="async" loading="lazy" />

_includes/interviewee.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% assign _interviewee = site.data.interviewees[include.name] %}<div class="ni-interviewee">{% if _interviewee.image or include.image %}
22
<div class="ni-interviewee-image">{% capture _url %}{% if include.image %}{{ include.image }}{% else %}{{ site.image_cdn }}/interviewees/{{ _interviewee.image }}{% endif %}{% endcapture %}{% include image.html src=_url width="100" height="100" %}</div>{% endif %}
33
<div class="ni-interviewee-info">
4-
<div class="ni-interviewee-name{% if include.class %} {{ include.class }}{% endif %}"><span class="ni-interviewee-name-zh">{{ include.name }}</span>{% if _interviewee.japanese or include.japanese %}<span class="ni-interviewee-name-ja" lang="ja">{% if include.japanese %}{{ include.japanese }}{% else %}{% if _interviewee.kana %}<span lang="ja"><ruby>{{ _interviewee.japanese | split: " " | first }}<rt>{{ _interviewee.kana | split: " " | first }}</rt></ruby> <ruby>{{ _interviewee.japanese | split: " " | last }}<rt>{{ _interviewee.kana | split: " " | last }}</rt></ruby></span>{% else %}{{ _interviewee.japanese }}{% endif %}{% endif %}</span>{% endif %}</div>
5-
<p>{{ include.info }}</p>
4+
<div class="ni-interviewee-name{% if include.class %} {{ include.class }}{% endif %}"><span class="ni-interviewee-name-zh">{{ include.name }}</span>{% if _interviewee.japanese or include.japanese %}<span class="ni-interviewee-name-ja" lang="ja">{% if include.japanese %}{{ include.japanese }}{% else %}{% if _interviewee.kana %}<span lang="ja"><ruby>{{ _interviewee.japanese | split: " " | first }}<rt>{{ _interviewee.kana | split: " " | first }}</rt></ruby> <ruby>{{ _interviewee.japanese | split: " " | last }}<rt>{{ _interviewee.kana | split: " " | last }}</rt></ruby></span>{% else %}{{ _interviewee.japanese }}{% endif %}{% endif %}</span>{% endif %}</div>{% if include.info %}
5+
<p>{{ include.info }}</p>{% endif %}
66
</div>
77
</div>

_includes/music.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{{ include.blank }}<div class="music">{% if include._163 %}
2+
{{ include.blank }} <div class="_163-music"><iframe class="_163-music-iframe" src="https://music.163.com/outchain/player?type={{ include._i63_type | default: 2 }}&id={{ include._163 }}&auto=1&height=66" title="{{ include.title | default: "网易云音乐播放器" }}" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen loading="lazy" ></iframe></div>{% endif %}
3+
{{ include.blank }}</div>

assets/css/_content.less

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,30 @@ article::after {
7878
/* interviewee */
7979
.ni-interviewee {
8080
position: relative;
81-
padding: 10px;
8281
display: flex;
82+
padding: 10px;
83+
flex-wrap: wrap;
84+
justify-content: space-around;
8385

8486
& > div {
8587
margin: 10px;
8688
}
8789
}
8890

91+
.ni-interviewee-image {
92+
flex: 0 0 104px;
93+
}
94+
95+
.ni-interviewee-info {
96+
flex: 1 0 0%;
97+
}
98+
99+
@media screen and (max-width: @screen-sm-max) {
100+
.ni-interviewee-info {
101+
flex: 1 0 100%;
102+
}
103+
}
104+
89105
.ni-interviewee-name {
90106
width: fit-content;
91107
margin-bottom: 15px;
@@ -112,6 +128,7 @@ article::after {
112128
.ni-author-image, .ni-interviewee-image {
113129
& > img {
114130
object-fit: cover;
131+
object-position: top;
115132
box-sizing: content-box;
116133
border: 2px solid @gray-lighter;
117134
border-radius: 50%;

assets/css/_site.less

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ figure {
9595
text-align: center;
9696
font-size: 0.75em;
9797

98+
.figure-row {
99+
margin: 0 auto;
100+
}
101+
98102
img {
99103
display: block;
100104
margin-right: auto;
@@ -107,12 +111,28 @@ figure {
107111
float: right;
108112
margin-right: -12px;
109113

114+
& + a.figure-link {
115+
margin-right: -5px;
116+
}
117+
110118
article &::before {
111119
content: normal;
112120
}
113121
}
114122
}
115123

124+
.figure-row {
125+
display: flex;
126+
margin: 15px auto;
127+
align-items: center;
128+
justify-content: space-around;
129+
flex-wrap: wrap;
130+
131+
figure {
132+
margin: 0 auto;
133+
}
134+
}
135+
116136
.figure-table {
117137
margin-left: auto;
118138
margin-right: auto;
@@ -219,15 +239,21 @@ u {
219239
position: relative;
220240
}
221241

222-
/* 视频 */
242+
/* 视频、音乐 */
223243
.youtube-video, .bilibili-video {
224244
margin: 15px auto;
225245
width: 100%;
226246
height: auto;
227247
aspect-ratio: 16/9;
228248
}
229249

230-
.youtube-video-iframe, .bilibili-video-iframe {
250+
._163-music {
251+
margin: 15px auto;
252+
width: 100%;
253+
height: 86px;
254+
}
255+
256+
.youtube-video-iframe, .bilibili-video-iframe, ._163-music-iframe {
231257
display: block;
232258
margin: 0 auto;
233259
width: 100%;

assets/css/base.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pages/_other/mario.ndw.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ author: Xzonn
33
date: 2009-12-21
44
interviewees:
55
- 宫本茂
6-
last_modified_at: 2022-11-03 20:46
6+
last_modified_at: 2022-11-04 15:55
77
sources:
88
- - https://www.ndw.jp/mario-220913-2/
99
- 宮本茂さんに聞く“マリオたちの名前の由来”
@@ -82,9 +82,11 @@ title: 请教宫本茂先生“马力欧们名字的由来”
8282
栗宝宝也是在开发中叫的名字……那个,栗宝宝真的是蘑菇哟(笑)。但是,因为程序员看起来像栗子(<span lang="ja">栗/くり</span>),所以叫他栗宝宝(<span lang="ja">クリボー</span>)。我是画了蘑菇……它无论怎么看都是香菇吧。等我注意到的时候,周围的人也这么称呼它了,就只能保持这个名字(笑)。之后,根据系列的不同,也有些像栗子一样的画。
8383

8484
### 慢慢龟&飞行龟
85-
{% include figure.html src="https://www.mariowiki.com/images/thumb/5/5c/SuperMarioParty_KoopaTroopa.png/474px-SuperMarioParty_KoopaTroopa.png" alt="慢慢龟" width="237" height="300" %}
85+
<div class="figure-row">
86+
{% include figure.html src="https://www.mariowiki.com/images/thumb/5/5c/SuperMarioParty_KoopaTroopa.png/474px-SuperMarioParty_KoopaTroopa.png" alt="慢慢龟" width="237" height="300" blank=" " %}
8687

87-
{% include figure.html src="https://www.mariowiki.com/images/thumb/e/e4/Paratroopart.png/465px-Paratroopart.png" alt="飞行龟" width="232.5" height="299.5" %}
88+
{% include figure.html src="https://www.mariowiki.com/images/thumb/e/e4/Paratroopart.png/465px-Paratroopart.png" alt="飞行龟" width="232.5" height="299.5" blank=" " %}
89+
</div>
8890

8991
##### 宫本
9092
{: .border-red }
@@ -103,11 +105,13 @@ title: 请教宫本茂先生“马力欧们名字的由来”
103105
> {: #ref-4 }
104106
105107
### 泡泡鱼
106-
{% include figure.html src="https://www.mariowiki.com/images/thumb/6/63/CheepCheepNSMBU.png/613px-CheepCheepNSMBU.png" alt="泡泡鱼" width="306.5" height="300" %}
108+
<div class="figure-row">
109+
{% include figure.html src="https://www.mariowiki.com/images/thumb/6/63/CheepCheepNSMBU.png/613px-CheepCheepNSMBU.png" alt="泡泡鱼" width="306.5" height="300" blank=" " %}
107110

108-
{% include figure.html src="https://www.mariowiki.com/images/thumb/3/35/NSMBU_Buzzy_Beetle_Artwork.png/687px-NSMBU_Buzzy_Beetle_Artwork.png" alt="钢盔龟" width="343.5" height="299.5" %}
111+
{% include figure.html src="https://www.mariowiki.com/images/thumb/3/35/NSMBU_Buzzy_Beetle_Artwork.png/687px-NSMBU_Buzzy_Beetle_Artwork.png" alt="钢盔龟" width="343.5" height="299.5" blank=" " %}
109112

110-
{% include figure.html src="https://www.mariowiki.com/images/thumb/3/3e/Spiny_Artwork_-_New_Super_Mario_Bros._2.png/628px-Spiny_Artwork_-_New_Super_Mario_Bros._2.png" alt="刺刺龟" width="314" height="299.5" %}
113+
{% include figure.html src="https://www.mariowiki.com/images/thumb/3/3e/Spiny_Artwork_-_New_Super_Mario_Bros._2.png/628px-Spiny_Artwork_-_New_Super_Mario_Bros._2.png" alt="刺刺龟" width="314" height="299.5" blank=" " %}
114+
</div>
111115

112116
##### 宫本
113117
{: .border-red }

0 commit comments

Comments
 (0)