Skip to content

Commit

Permalink
update plopfile and template to format episode numbers starting from …
Browse files Browse the repository at this point in the history
…1XX instead of 0XX
  • Loading branch information
xlanex6 committed Jan 28, 2025
1 parent 23f750e commit 2c7b899
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
4 changes: 2 additions & 2 deletions plopfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function (plop) {
{
type: 'input',
name: 'episodeNumber',
message: 'Episode number 0XX',
message: 'Episode number 1XX',
},
{
type: 'input',
Expand Down Expand Up @@ -43,7 +43,7 @@ module.exports = function (plop) {
actions: [
{
type: 'add',
path: 'content/podcasts/0{{episodeNumber}}.{{dsSlug}}/index.md',
path: 'content/podcasts/1{{episodeNumber}}.{{dsSlug}}/index.md',
templateFile: 'template/episode.hbs',
},
],
Expand Down
11 changes: 2 additions & 9 deletions template/episode.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,16 @@ episodeNumber: {{episodeNumber}}
episodeType: full
explicit: false
season: 1
dsSlug: DS_0{{episodeNumber}}_{{dsSlug}}
dsSlug: DS_1{{episodeNumber}}_{{dsSlug}}
title: {{title}}
subtitle: {{subtitle}}
episodeArtwork: {{episodeArtwork}}
description:
videoLink : {{videoLink}}
links:
[
{
title: '',
url: '',
},
]
tags: []
---
## {{title}}

## Notre invité : XXX

- [link](http)

Expand Down

0 comments on commit 2c7b899

Please sign in to comment.