From 06218a07b600edd052743bf3279ff71014a02b86 Mon Sep 17 00:00:00 2001 From: jiacai2050 Date: Sat, 6 Jan 2024 22:18:43 +0800 Subject: [PATCH] Update mp3 link --- .github/workflows/gh-pages.yml | 2 +- config.toml | 1 + content/podcast/009.org | 3 +- layouts/podcast/rss.xml | 34 +++++----- layouts/podcast/single.html | 109 ++++++++++++++++++--------------- 5 files changed, 81 insertions(+), 68 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index d0904d7..74adfe6 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -35,7 +35,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: '0.111.3' + hugo-version: 'latest' extended: true - name: Setup Pages id: pages diff --git a/config.toml b/config.toml index 52fd1e5..a9d60b2 100644 --- a/config.toml +++ b/config.toml @@ -41,6 +41,7 @@ enableGitInfo = true [params] logo = true mainSections = ["post", "podcast"] + mp3Root = "https://liujiacai.net/cdn-mp3/" git_repo = "https://github.com/RustTalk/rusttalk.github.io" fadian = """ #### 欢迎听众[打赏支持](https://liujiacai.net/donate/),您的支持是我不断创作的动力🍻 diff --git a/content/podcast/009.org b/content/podcast/009.org index f32d624..7cc4a92 100644 --- a/content/podcast/009.org +++ b/content/podcast/009.org @@ -1,12 +1,11 @@ #+TITLE: 009. 卡比卡比的开源贡献之旅 #+DATE: 2023-12-16T21:14:03+0800 -#+LASTMOD: 2023-12-17T09:20:39+0800 +#+LASTMOD: 2024-01-06T22:16:48+0800 #+OPTIONS: toc:nil num:nil #+STARTUP: content #+PODCAST_DURATION: 01:17:56 #+PODCAST_LENGTH: 33023067 #+PODCAST_IMAGE_SRC: guests/kabikabi.jpg -#+PODCAST_MP3: https://en.liujiacai.net/podcast/RustTalk/009.mp3 本期嘉宾是卡比卡比,虽然他毕业不到三年,但已经成多个开源项目的重度参与者,而且已经是 Apache Arrow 的 PMC,他是怎么做得到?他的开源经历,对我们能有什么启发?这些问题都可以在本期节目中找到答案。 diff --git a/layouts/podcast/rss.xml b/layouts/podcast/rss.xml index 84d0236..2be8629 100644 --- a/layouts/podcast/rss.xml +++ b/layouts/podcast/rss.xml @@ -28,8 +28,8 @@ {{ end -}} {{ with .Site.Params.Podcast.Owner -}} - {{ with .name }}{{ . }}{{ end }} - {{ with .email }}{{ . }}{{ end }} + {{ with .name }}{{ . }}{{ end }} + {{ with .email }}{{ . }}{{ end }} {{ end -}} {{ with .Site.Params.Podcast.Description }}{{ . }}{{ end }} @@ -85,16 +85,22 @@ {{ if .Params.podcast_mp3}} {{ else }} - - {{end}} - {{ with .Params.podcast_duration}}{{ . }}{{end}} - {{ with .Params.podcast_image_src }}{{ $image := resources.Get . }}{{ end }} - {{ with .Params.podcast.episode }}{{ . }}{{ end }} - {{ with .Params.podcast.episodeType }}{{ . }}{{ end }} - {{ with .Params.podcast.season }}{{ . }}{{ end }} - {{ with .Params.podcast.block }}{{ . }}{{ end }} - {{ if .Params.podcast.explicit }}true{{ else }}false{{ end }} - - {{ end }} - + + +{{end}} +{{ with .Params.podcast_duration}}{{ . }}{{end}} +{{ with .Params.podcast_image_src }}{{ $image := resources.Get . }}{{ end }} +{{ with .Params.podcast.episode }}{{ . }}{{ end }} +{{ with .Params.podcast.episodeType }}{{ . }}{{ end }} +{{ with .Params.podcast.season }}{{ . }}{{ end }} +{{ with .Params.podcast.block }}{{ . }}{{ end }} +{{ if .Params.podcast.explicit }}true{{ else }}false{{ end }} + +{{ end }} + diff --git a/layouts/podcast/single.html b/layouts/podcast/single.html index 1f8c010..d3a1567 100644 --- a/layouts/podcast/single.html +++ b/layouts/podcast/single.html @@ -1,63 +1,70 @@ {{ define "main" -}}
-
-
-

{{ .Title }}

-{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . }}{{ end -}} -{{ if .Params.tags }}{{ partial "tags.html" . }}{{ end -}} -
+
+
+

{{ .Title }}

+ {{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . }}{{ end -}} + {{ if .Params.tags }}{{ partial "tags.html" . }}{{ end -}} +
-{{if .Params.podcast_iframe -}} - -{{ else -}} - {{ $src := ($.Param "podcast_mp3" | absURL) -}} -
- -
+ {{if .Params.podcast_iframe -}} + + {{ else -}} + {{ $src := ($.Param "podcast_mp3" | absURL) -}} +
+ +
+ {{if .Params.podcast_image_src -}} + {{ $resource := resources.Get .Params.podcast_image_src}} +
{{ .Params.podcast_image_alt }}
+ {{ end -}} + {{ end -}} -
-{{ with .Site.Params.fadian }} +
-
- {{ . | markdownify}} -
+ {{ with .Site.Params.fadian }} -{{ end }} +
+ {{ . | markdownify}} +
+ + {{ end }} -{{ .Content }} + {{ .Content }} -

- 收听方式 -

- - +

+ 收听方式 +

+ + -

- 反馈 -

- -
-
+

+ 反馈 +

+ + +