Pārlūkot izejas kodu

podcast feed attempt

master
Sean Dockray pirms 3 gadiem
vecāks
revīzija
d68934c13b
4 mainītis faili ar 170 papildinājumiem un 2 dzēšanām
  1. +17
    -2
      config.toml
  2. +23
    -0
      content/interview/shannon-mattern.md
  3. +3
    -0
      data/sandpointsnamegraph.json
  4. +127
    -0
      layouts/section/interview.rss.xml

+ 17
- 2
config.toml Parādīt failu

@@ -2,7 +2,7 @@ baseURL = "https://machinelistening.exposed"
languageCode = "en-us"
title = "Machine listening"
relativeurls = true
disableKinds = ["RSS", "sitemap"]
disableKinds = ["sitemap"]

[taxonomies]
keyword = "keywords"
@@ -14,7 +14,22 @@ disableKinds = ["RSS", "sitemap"]
sandpointsGiteaUrl = "http://git.metadada.xyz/machinelistening/curriculum"
sandpointsCatalogPrefix = "/library/"
sandpointsCatalogName = "machinelistening"
sandpointsMentionedIn = ["annex", "session"]
sandpointsMentionedIn = ["annex", "session", "contributor", "interview"]

episode_number_style = "brackets"
[params.feed]
copyright = "Copyright 2021 Machine Listening" #do not use markdown in this field; it is used in the feed
itunes_subtitle = "A curriculum" #no markdown or HTML
itunes_author = "Machine Listening" #no markdown or HTML
itunes_summary = "A platform for collective listening, thought, and artistic production: a critical counterpoint to all the solutionists, VCs, militarists and industry boosters intent on ‘empowering machines with the sense of hearing'."
itunes_owner_name = "Machine Listening"
itunes_owner_email = "machine.listening@gmail.com" #contains the e-mail address that will be used to contact the owner of the Podcast for communication specifically about their Podcast on Apple Podcasts. It will not be publicly displayed on Apple Podcasts.
itunes_image = "/images/ml.gif" #fqdn to the image art for your podcast
itunes_top_category = "Technology"
itunes_first_sub_category = "Software How-To"
itunes_second_sub_category = "Tech News"
language = "en-us"

[outputFormats]
[outputFormats.js]


+ 23
- 0
content/interview/shannon-mattern.md Parādīt failu

@@ -0,0 +1,23 @@
---
title: "Shannon Mattern"
Description: "Leading off from [Shannon's](https://wordsinspace.net/shannon/) essay [\"Urban Auscultation; or, Perceiving the Action of the Heart\"](https://placesjournal.org/article/urban-auscultation-or-perceiving-the-action-of-the-heart/), which addresses machine listening in the pandemic, we talk about the stethoscope, the decibel and other histories of machine listening, along with its epistemic and political dimensions and artistic deployments."
aliases: []
author: "Machine Listening"
date: "2020-08-18T00:00:00-05:00"
episode: "8"
episode_image: "images/ml.gif"
explicit: "no"
guests: ["jlong", "kgrant", "chamilton"]
images: ["img/episode/default-social.jpg"]
news_keywords: []
podcast_duration: "00:55:00"
podcast_file: "https://machinelistening.exposed/library/Shannon%20Mattern/Shannon%20Mattern%20(19)/Shannon%20Mattern%20-%20Shannon%20Mattern.mp3"
podcast_bytes: ""
youtube: ""
categories: []
series: []
tags: []
---
Leading off from [Shannon's](https://wordsinspace.net/shannon/) essay ["Urban Auscultation; or, Perceiving the Action of the Heart"](https://placesjournal.org/article/urban-auscultation-or-perceiving-the-action-of-the-heart/), which addresses machine listening in the pandemic, we talk about the stethoscope, the decibel and other histories of machine listening, along with its epistemic and political dimensions and artistic deployments.
![Interview conducted on 18 August, 2020](audio:https://machinelistening.exposed/library/Shannon%20Mattern/Shannon%20Mattern%20(19)/Shannon%20Mattern%20-%20Shannon%20Mattern.mp3)

+ 3
- 0
data/sandpointsnamegraph.json Parādīt failu

@@ -0,0 +1,3 @@
{
"interview": "interviews"
}

+ 127
- 0
layouts/section/interview.rss.xml Parādīt failu

@@ -0,0 +1,127 @@
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:media="http://search.yahoo.com/mrss/"
xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"
>
<channel>
<title>{{ $.Site.Title }}</title>
<atom:link href="{{ "episode/index.xml" | absURL }}" rel="self" type="application/rss+xml" />
<link>{{ .Site.BaseURL }}</link>
<description>{{ .Site.Params.feed.itunes_summary | truncate 4000 ""}}</description>
<lastBuildDate>{{ dateFormat "Mon, 2 Jan 2006 15:04:05 -0700" .Date }}</lastBuildDate>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<language>{{ .Site.Params.feed.language | default .Site.LanguageCode }}</language>
<copyright>{{ .Site.Params.feed.copyright }}</copyright>
{{ with .Site.Params.feed.itunes_subtitle }}<itunes:subtitle>{{ . }}</itunes:subtitle>{{ end }}
<itunes:author>{{ .Site.Params.feed.itunes_author }}</itunes:author>
<itunes:type>episodic</itunes:type>
<googleplay:author>{{ .Site.Params.feed.itunes_author }}</googleplay:author>
<googleplay:email>{{ .Site.Params.feed.itunes_owner_email }}</googleplay:email>
<itunes:summary>{{ .Site.Params.feed.itunes_summary | truncate 4000 ""}}</itunes:summary>
<googleplay:description>{{ .Site.Params.feed.itunes_summary | truncate 4000 ""}}</googleplay:description>
<itunes:owner>
<itunes:name>{{ .Site.Params.feed.itunes_owner_name }}</itunes:name>
<itunes:email>{{ .Site.Params.feed.itunes_owner_email }}</itunes:email>
</itunes:owner>
<itunes:image href="{{ .Site.Params.feed.itunes_image }}" />
<googleplay:image href="{{ .Site.Params.feed.itunes_image }}"></googleplay:image>
<image>
<url>{{ .Site.Params.feed.itunes_image }}</url>
<title>{{ $.Site.Title }}</title>
<link>{{ .Site.BaseURL }}</link>
</image>
<itunes:category text="{{ .Site.Params.feed.itunes_top_category }}">
{{ with .Site.Params.feed.itunes_first_sub_category -}}
<itunes:category text="{{ . }}" />
{{- end -}}
{{- with .Site.Params.feed.itunes_second_sub_category -}}
<itunes:category text="{{ . }}" />
{{- end -}}
</itunes:category>
{{- if isset .Site.Params.feed "explicit" -}}
<itunes:explicit>{{ .Site.Params.feed.explicit }}</itunes:explicit>
<googleplay:explicit>{{ .Site.Params.feed.explicit }}</googleplay:explicit>
{{- end -}}
<generator>Hugo -- gohugo.io</generator>
{{- range (where ( where .Site.Pages "Type" "interview") ".Params.upcoming" "!=" true) -}}
{{ if isset .Params "podcast_file" }}
<item>
{{ if and (isset .Site.Params "episode_number_style") (.Params.episode) }}
{{ if eq .Site.Params.episode_number_style "parens" }}
<title>{{ title .Title }} ({{ with .Site.Params.episode_number_prefix }}{{ . }}{{ end }}{{ .Params.episode }})</title>
{{ else if eq .Site.Params.episode_number_style "brackets" }}
<title>{{ title .Title }} [{{ with .Site.Params.episode_number_prefix }}{{ . }}{{ end }}{{ .Params.episode }}]</title>
{{ else if eq .Site.Params.episode_number_style "dash" }}
<title>{{ title .Title }} - {{ with .Site.Params.episode_number_prefix }}{{ . }}{{ end }}{{ .Params.episode }}</title>
{{ else }}
<title>{{ title .Title }}</title>
{{ end }}
{{ else }}
<title>{{ title .Title }}</title>
{{ end }}
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} </pubDate>
<dc:creator>{{ .Site.Params.itunes_author }}</dc:creator>
<guid>{{- if isset .Params "guid" -}}{{ .Params.guid }}{{- else -}}{{ .Site.Params.media_prefix }}{{ .Params.podcast_file }}{{- end -}}</guid>
<itunes:author>
{{- if isset .Params "hosts" -}}
{{ $hosts := (.Params.hosts) }}
{{ $len := (len $hosts) }}
{{ range $index, $element := $hosts }}
{{ range where (where $.Site.Pages "Type" "host" ) ".File.BaseFileName" "=" . }}
{{- if eq $len 1 -}}
{{ .Title }}
{{- else -}}
{{- if eq (add $index 1) $len }}
and {{ .Title }}
{{- else -}}
{{- if eq $len 2 -}}
{{ printf "%s " .Title }}
{{- else -}}
{{ printf "%s, " .Title }}
{{- end -}}
{{- end -}}
{{- end -}}
{{ end }}
{{- end -}}
{{- else -}}
{{ .Site.Params.feed.itunes_author }}
{{- end -}}
</itunes:author>
{{ with .Params.episode }}
<itunes:episode>{{ . }}</itunes:episode>
{{ end }}
<itunes:title>{{ title .Title }}</itunes:title>
{{"<itunes:subtitle><![CDATA[" | safeHTML }}
{{ with .Params.subtitle }}
{{ . | plainify | truncate 243 "..." }}
{{ else }}
{{ .Description | plainify | truncate 243 "..." }}
{{ end }}
{{"]]></itunes:subtitle>" | safeHTML}}
<itunes:summary>{{ .Description | plainify }}</itunes:summary>
<description>{{ .Description | plainify }}</description>
<googleplay:description>{{ .Description | plainify }}</googleplay:description>
{{ "<content:encoded><![CDATA[" | safeHTML }}{{ .Content | safeHTML }}{{"]]></content:encoded>" | safeHTML}}
{{- with .Params.episode_image -}}
<itunes:image href="{{ . | absURL }}"></itunes:image>
<googleplay:image href="{{ . | absURL }}"></googleplay:image>
{{- end -}}
<enclosure url="{{ .Site.Params.media_prefix }}{{ .Params.podcast_file }}" {{with .Params.podcast_bytes}}length="{{ . }}"{{ end }} type="audio/mpeg" />
{{- with .Params.podcast_duration -}}<itunes:duration>{{ . }}</itunes:duration>{{- end -}}
{{- with .Params.explicit -}}
<itunes:explicit>{{ if (or (eq . "yes") (eq . "true")) }}true{{ else }}false{{ end }}</itunes:explicit>
<googleplay:explicit>{{ if (or (eq . "yes") (eq . "true")) }}yes{{ else }}no{{ end }}</googleplay:explicit>
{{- end -}}
</item>
{{- end -}}
{{- end -}}
</channel>
</rss>

Notiek ielāde…
Atcelt
Saglabāt