cecil/theme-podcast

Cecil 组件主题:播客

资助包维护!
ArnaudLigny
Open Collective

安装: 824

依赖: 1

建议者: 0

安全: 0

星级: 0

关注者: 2

分支: 0

开放问题: 0

语言:Twig

类型:cecil-theme

2.0.1 2024-03-12 10:55 UTC

README

Cecil 提供播客组件主题,以便在网页上发布音频节目

  1. episodes 部分提供 RSS 输出(包含样式表)
  2. 提供具有恢复功能的 HTML 音频播放器,并支持 Media Session API

安装

composer require cecil/theme-podcast

或者 下载最新存档,并在 themes/podcast 中解压缩其内容。

使用

config.ymltheme 部分添加 podcast

theme:
  - podcast

config.yml 中添加播客配置详细信息

podcast:
  owner:
    name: Cecil
    email: contact@cecil.app
  image: cover.png
  author: Cecil  # optional
  categories:    # https://podcasters.apple.com/support/1691-apple-podcasts-categories
    - Technology
  type: episodic # optional, "episodic" (default) or "serial"
  explicit: no   # optional
  block: no      # optional
  newfeedurl: "" # optional, the URL of the new feed in case of hosting changement

episodes 部分添加包含数据(在 front matter)和描述的 Markdown 文件

1.md:

---
title: "Episode X"
date: YYYY-MM-DD
episode:
  file: episode-X.mp3
  season: 0    # optional
  number: X    # optional
  type: full   # optional, "full", "trailer" or "bonus"
  explicit: no # optional
  block: no    # optional
---
Description and notes of the episode.

将 HTML 播放器添加到您的节目模板中

{% include 'partials/audioplayer.html.twig' %}