Skip to content

Commit

Permalink
fix: rm redundant freesound in frontmatter (#41)
Browse files Browse the repository at this point in the history
Signed-off-by: gacallea <3269984+gacallea@users.noreply.github.com>

Signed-off-by: gacallea <3269984+gacallea@users.noreply.github.com>
  • Loading branch information
andreacfromtheapp authored Aug 18, 2024
1 parent 139ffc9 commit e9c24a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub fn set_filename(song_title: &str) -> String {
///
/// ```toml
/// +++
/// title="Field Notes Freesound Credits"
/// title="Field Notes Credits"
/// date=2017-10-28
///
/// [taxonomies]
Expand All @@ -92,7 +92,7 @@ pub fn set_filename(song_title: &str) -> String {
pub fn set_frontmatter(song_title: &str, song_date: &str, song_artist: &str) -> String {
format!(
"+++
title=\"{song_title} Freesound Credits\"
title=\"{song_title} Credits\"
date={song_date}
[taxonomies]
Expand Down Expand Up @@ -258,7 +258,7 @@ mod tests {
let song_artist = "Aner Andros";
let song_date = "2017-10-28";
let frontmatter = "+++
title=\"Field Notes Freesound Credits\"
title=\"Field Notes Credits\"
date=2017-10-28
[taxonomies]
Expand Down

0 comments on commit e9c24a9

Please sign in to comment.