Migrate Feed Podcast Jekyll to Hugo

Hi everybody.
I try to migrate my blog to Hugo, but i can´t migrate my feed podcast Jekyll.
https://gitlab.com/podcastlinux/podcastlinux.gitlab.io/blob/master/Linux-Express/feed.xml
I suppose i have change my _config.yml parameters to config.toml. I´m understand more less.
I want to automatize the lentgh and duration audio file in my post parameters like Jekyll blogs, but i don´t know. Perhaps i can with html.
https://gitlab.com/podcastlinux/podcastlinux.gitlab.io/blob/master/_posts/2019-08-05-73-Linux-Express.md
Sorry my English and my knowledge code.
Thanks

You’ll need to search the forums for posts about setting up feed for podcasts, and work from there. Content with front matter can be moved around relatively easy, but there is no automated migration path for Jekyll to Hugo.

I have one that I found somewhere on the forum:

<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>{{ .Site.Title }}</title>
    <link>{{ .Permalink }}</link>
    <language>{{ .Site.LanguageCode }}</language>
    <copyright>{{ .Site.Copyright }}</copyright>
    <itunes:subtitle>{{ .Site.Params.Subtitle }}</itunes:subtitle>
    <itunes:author>{{ .Site.Params.Authors.Bruno.name }}</itunes:author>
    <itunes:summary>{{ .Site.Params.Summary }}</itunes:summary>
    <description>{{ .Site.Params.Description }}</description>
    <itunes:owner>
    <itunes:name>{{ .Site.Params.Authors.Bruno.name }}</itunes:name>
    <itunes:email>{{ .Site.Params.Authors.Bruno.email }}</itunes:email>
    </itunes:owner>
    <itunes:image href="{{ .Site.Params.logo }}" />
    <itunes:category text="Technology">
      <itunes:category text="Software How-To" />
      <itunes:category text="Tech News" />
    </itunes:category>
    {{ range first 50 .Data.Pages }}
    {{ if eq .Type "episode"}}
    <item>
      <title>{{ title .Title }} - ep {{ .Params.episode }}</title>
      <itunes:author>{{ .Site.Params.Authors.Bruno.name }}</itunes:author>
      <itunes:summary><![CDATA[{{ .Description }}]></itunes:summary>
      <enclosure url="{{ .Params.podcast }}" length="{{ .Params.podcast_bytes}}" type="audio/x-m4a" />
      <guid>{{ .Params.podcast }}</guid>
      <link>{{ .Permalink }}</link>
      <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} </pubDate>
      <itunes:duration>{{ .Params.podcast_duration}}</itunes:duration>
    </item>
    {{ end }}

    {{ end }}
  </channel>
</rss>

and for the archetype:

---
Description: ""
aliases: 
  - 
author: ""
categories: 
  - 
date: {{ .Date }}
episode: 
friendly: 
guests: 
  - 
images: 
news_keywords: 
  - 
podcast: ".mp3"
podcast_bytes: ""
podcast_duration: ""
sponsors: 
  - 
tags: 
  - 
title: ""
type: episode
youtube: ""
---

There are some themes tagged as podcast in the theme directory…might be worth looking at them.

I built a theme with podcasting built in…for a linux podcast you probably won’t want to use the theme, but you may want to have a look at how the podcast RSS is built, and modify it for use in your site - https://github.com/funkydan2/alpha-church/blob/master/layouts/sermons/sermons.rss.xml

In the podcast fred for my Zen theme I calculate the length automatically but not the duration. If you restrict yourself to constant bit rate mp3 (and for podcast It seems best to do that) it may be possibly to do in Golang, have not taken the time to explore that.

Thank you everybody.
frjo: How calculate length automatically? code?
Can i calculate duration like this?
https://www.w3schools.com/Tags/av_prop_duration.asp
Is possible make a feed only by tags like “linuxexpress”?
I would like my feed in /feed.xml. It is possible?

See the rss template I linked to it’s all there.

To get a specific path you could set up a custom output format, or simply set up a redirect in your web server.

Thanks frjo.
I try to understand hugo structure. My English is horrible.
I don´t know how add length mp3 code. Sorry
I create a repository in gitlab: https://gitlab.com/podcastlinux/hugopodcast/
I create a index.xml in layouts folder. I think it´s ok: https://gitlab.com/podcastlinux/hugopodcast/blob/master/layouts/index.xml
Now i want generate feed only post with a specific category or tag.
Something like

But it´s very difficult for me.

Thanks for help everybody.