2022-06-29 14:42:10 +00:00
|
|
|
# Configure the Perl DBI driver to allow the templates communicate
|
|
|
|
# with the database.
|
|
|
|
# dbi:<driver name [SQLite, CSV, ADO, mSQL, etc.]>:<database name>
|
2023-06-17 20:04:35 +00:00
|
|
|
# For more information on Perl Template Toolkit see:
|
|
|
|
# http://template-toolkit.org/docs/manual/index.html
|
2022-06-29 14:42:10 +00:00
|
|
|
[DBI]
|
2023-03-04 03:40:53 +00:00
|
|
|
# Configuration settings for SQLite
|
2023-06-17 20:04:35 +00:00
|
|
|
database: sqlite
|
|
|
|
driver: dbi:SQLite:hpr.db
|
2023-03-04 03:40:53 +00:00
|
|
|
#user: (not used - leave blank)
|
|
|
|
#password: (not used - leave blank)
|
|
|
|
# Configuration settings for MySQL
|
|
|
|
#database: mysql
|
|
|
|
#driver: dbi:mysql:database=hpr_hpr:hostname=localhost
|
|
|
|
#user: hpr-generator (Suggested user with read-only privileges)
|
|
|
|
#password: ********* (Password for user)
|
2022-06-29 14:42:10 +00:00
|
|
|
|
2023-03-10 01:25:25 +00:00
|
|
|
# Configure the location of the templates and the generated HTML
|
|
|
|
[app_paths]
|
|
|
|
templates_path: ./templates
|
|
|
|
output_path: ./public_html
|
|
|
|
|
2022-06-29 15:03:32 +00:00
|
|
|
# Configure the root template page which pulls in the navigation and
|
2022-07-31 23:25:56 +00:00
|
|
|
# content templates used by each page. An optional baseurl property may
|
|
|
|
# be defined. This is useful when opening files directly from local
|
|
|
|
# filesystem to allow relative paths to work.
|
2022-06-29 15:03:32 +00:00
|
|
|
[root_template]
|
|
|
|
content: page.tpl.html
|
2022-07-31 23:25:56 +00:00
|
|
|
#baseurl: OPTIONAL [i.e. file://<full path to local website directory>]
|
2023-06-17 20:04:35 +00:00
|
|
|
#baseurl: file:///home/roan/Development/hpr/website/hpr_generator/public_html/
|
|
|
|
baseurl: https://hackerpublicradio.org/
|
2024-05-23 19:14:42 +00:00
|
|
|
http_baseurl: http://hackerpublicradio.org/
|
2023-06-17 20:04:35 +00:00
|
|
|
hub_baseurl: https://hub.hackerpublicradio.org/
|
2022-10-21 03:23:00 +00:00
|
|
|
media_baseurl: https://archive.org/download/hpr$eps_id/
|
2023-06-17 20:04:35 +00:00
|
|
|
generator_name: The HPR Robot
|
|
|
|
generator_email: robot.nospam@nospam.hackerpublicradio.org
|
2022-06-29 15:03:32 +00:00
|
|
|
|
2022-06-28 09:25:36 +00:00
|
|
|
# Configure the navigation menu and the content templates for each page
|
|
|
|
# of the site:
|
2022-08-06 14:51:32 +00:00
|
|
|
#
|
|
|
|
# [page_name] REQUIRED
|
|
|
|
# navigation: REQUIRED <name of navigation template>
|
|
|
|
# content: REQUIRED <name of page content template>
|
2022-07-29 01:59:38 +00:00
|
|
|
|
|
|
|
# Configure filename if default name is not desired
|
|
|
|
# (Default is "ROOT/[page_name].html"):
|
|
|
|
#
|
|
|
|
# filename: OPTIONAL <relative path from ROOT -- optional>
|
|
|
|
# * <directory path> -- Must end in forward slash. File will be created
|
|
|
|
# in this path with the default naming scheme.
|
|
|
|
# * <file name> -- May include a relative path. Should include the file
|
|
|
|
# extension. May have [id] marker in path or name which
|
|
|
|
# will be substituted with a padded page id.
|
|
|
|
|
2022-07-29 02:04:15 +00:00
|
|
|
# Configure pages which use the same content template:
|
|
|
|
#
|
|
|
|
# multipage: OPTIONAL true | false (DEFAULT = false)
|
2022-06-28 09:25:36 +00:00
|
|
|
|
|
|
|
[index]
|
2022-07-02 02:07:06 +00:00
|
|
|
navigation: navigation-main.tpl.html
|
2022-06-28 09:25:36 +00:00
|
|
|
content: content-index.tpl.html
|
|
|
|
|
|
|
|
[about]
|
|
|
|
navigation: navigation-about.tpl.html
|
|
|
|
content: content-about.tpl.html
|
|
|
|
|
|
|
|
[correspondents]
|
|
|
|
navigation: navigation-about.tpl.html
|
|
|
|
content: content-correspondents.tpl.html
|
2022-07-29 01:59:38 +00:00
|
|
|
filename: correspondents/index.html
|
2022-06-28 09:25:36 +00:00
|
|
|
|
2022-07-29 02:04:15 +00:00
|
|
|
[correspondent]
|
|
|
|
navigation: navigation-about.tpl.html
|
|
|
|
content: content-correspondent.tpl.html
|
|
|
|
multipage: true
|
2022-08-06 14:51:32 +00:00
|
|
|
filename: correspondents/[id].html
|
2022-08-03 01:57:56 +00:00
|
|
|
|
|
|
|
[series]
|
|
|
|
navigation: navigation-get-shows.tpl.html
|
|
|
|
content: content-series.tpl.html
|
|
|
|
filename: series/index.html
|
2022-08-05 19:51:59 +00:00
|
|
|
|
2022-08-06 16:14:47 +00:00
|
|
|
[series_episode]
|
2022-08-05 19:51:59 +00:00
|
|
|
navigation: navigation-get-shows.tpl.html
|
2022-08-06 16:14:47 +00:00
|
|
|
content: content-series_episode.tpl.html
|
2022-08-05 19:51:59 +00:00
|
|
|
multipage: true
|
|
|
|
filename: series/[id].html
|
2022-08-05 21:44:58 +00:00
|
|
|
|
|
|
|
[episodes]
|
|
|
|
navigation: navigation-get-shows.tpl.html
|
|
|
|
content: content-episodes.tpl.html
|
2022-08-06 14:51:32 +00:00
|
|
|
filename: eps/index.html
|
|
|
|
|
2022-08-07 18:09:44 +00:00
|
|
|
[episode]
|
|
|
|
navigation: navigation-get-shows.tpl.html
|
|
|
|
content: content-episode.tpl.html
|
|
|
|
multipage: true
|
|
|
|
filename: eps/hpr[id]/index.html
|
2022-08-08 03:47:40 +00:00
|
|
|
|
|
|
|
[syndication]
|
|
|
|
navigation: navigation-get-shows.tpl.html
|
|
|
|
content: content-syndication.tpl.html
|
2022-08-09 00:53:04 +00:00
|
|
|
|
2022-08-09 01:07:34 +00:00
|
|
|
[search]
|
|
|
|
navigation: navigation-main.tpl.html
|
|
|
|
content: content-search.tpl.html
|
2022-08-09 02:00:24 +00:00
|
|
|
|
2022-08-13 17:12:45 +00:00
|
|
|
[sitemap]
|
|
|
|
navigation: navigation-about.tpl.html
|
|
|
|
content: content-sitemap.tpl.html
|
2022-08-17 21:12:47 +00:00
|
|
|
|
2023-04-30 14:50:01 +00:00
|
|
|
[tags]
|
|
|
|
navigation: navigation-main.tpl.html
|
|
|
|
content: content-tags.tpl.html
|
|
|
|
|
2022-09-17 21:28:39 +00:00
|
|
|
[twat_episode]
|
|
|
|
navigation: navigation-get-shows.tpl.html
|
|
|
|
content: content-twat_episode.tpl.html
|
|
|
|
multipage: true
|
|
|
|
filename: eps/twat[id]/index.html
|
2022-10-21 03:23:00 +00:00
|
|
|
media_baseurl: https://www.hackerpublicradio.org/eps/
|
2022-09-17 21:28:39 +00:00
|
|
|
|
2022-10-16 22:12:05 +00:00
|
|
|
[mumble-howto]
|
|
|
|
navigation: navigation-about.tpl.html
|
|
|
|
content: content-mumble-howto.tpl.html
|
|
|
|
|
2023-02-25 01:42:01 +00:00
|
|
|
[comments_viewer]
|
|
|
|
navigation: navigation-about.tpl.html
|
|
|
|
content: content-comments_viewer.tpl.html
|
|
|
|
|
2023-09-03 15:51:03 +00:00
|
|
|
[hpr_ogg]
|
|
|
|
root_template: rss.tpl.xml
|
|
|
|
content: rss-hpr.tpl.xml
|
|
|
|
filename: hpr_ogg.rss
|
|
|
|
media_file_extension: ogg
|
|
|
|
|
|
|
|
[hpr_mp3]
|
|
|
|
root_template: rss.tpl.xml
|
|
|
|
content: rss-hpr.tpl.xml
|
|
|
|
filename: hpr_mp3.rss
|
|
|
|
media_file_extension: mp3
|
|
|
|
audio_mime_type: mpeg
|
|
|
|
|
|
|
|
[hpr_spx]
|
|
|
|
root_template: rss.tpl.xml
|
|
|
|
content: rss-hpr.tpl.xml
|
|
|
|
filename: hpr_spx.rss
|
|
|
|
media_file_extension: spx
|
|
|
|
|
|
|
|
[hpr_total_ogg]
|
|
|
|
root_template: rss.tpl.xml
|
|
|
|
content: rss-hpr_total.tpl.xml
|
|
|
|
filename: hpr_total_ogg.rss
|
|
|
|
media_file_extension: ogg
|
|
|
|
|
|
|
|
[hpr_total_mp3]
|
|
|
|
root_template: rss.tpl.xml
|
|
|
|
content: rss-hpr_total.tpl.xml
|
|
|
|
filename: hpr_total_mp3.rss
|
|
|
|
media_file_extension: mp3
|
|
|
|
audio_mime_type: mpeg
|
|
|
|
|
|
|
|
[hpr_total_spx]
|
|
|
|
root_template: rss.tpl.xml
|
|
|
|
content: rss-hpr_total.tpl.xml
|
|
|
|
filename: hpr_total_spx.rss
|
|
|
|
media_file_extension: spx
|
2022-10-08 12:52:47 +00:00
|
|
|
|
|
|
|
[comments]
|
|
|
|
root_template: rss-comments.tpl.xml
|
|
|
|
filename: comments.rss
|