-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.yml
62 lines (59 loc) · 1.69 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
channel:
title: Your Channel Name
link: http://link/to/your/channel
description: Description of your channel
copyright: Your copyright
url: http://link/to/your/channel
language: en-us
image:
url: http://address/to/an/image.jpg
items:
guid:
baseUrl: http://base/url/for/guid/
link:
baseUrl: http://base/url/for/link/
enclosure:
baseUrl: http://base/url/for/enclosure/
date: # optional, allows extracting date from title
from: title
format: dd.mm.yyyy # for supported formats, see process.go
filter: # optional, allows filtering files based on criteria
minimumSize: 102400 # 100 KB
# template when running in index mode
index:
dateFormat: dd.mm.yyyy hh:ii
template: |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ .Config.Channel.Title }}</title>
<link rel="stylesheet" href="podcast.css">
</head>
<body>
<table>
<thead>
<tr>
<th>Title</th>
<th>File</th>
<th>Date</th>
<th>Size</th>
<th>Last modified</th>
</tr>
</thead>
<tbody>
{{ range .Podcasts }}
<tr>
<td><a href="{{ $.Config.Items.Enclosure.BaseUrl }}{{ .Filename }}">{{ .Title }}</a></td>
<td><a href="{{ $.Config.Items.Enclosure.BaseUrl }}{{ .Filename }}">{{ .Filename }}</a></td>
<td>{{ .PublishDate | formatDate }}</td>
<td>{{ .Length }}</td>
<td>{{ .Timestamp | formatDate }}</td>
</tr>
{{ end }}
</tbody>
</table>
<!-- page content -->
</body>
</html>