diff --git a/src/app/components/mod.rs b/src/app/components/mod.rs index 0250873..2eebd68 100644 --- a/src/app/components/mod.rs +++ b/src/app/components/mod.rs @@ -31,4 +31,4 @@ mod title; pub use title::Title; -pub use mon_parcours::{MonParcours}; \ No newline at end of file +pub use mon_parcours::MonParcours; diff --git a/src/app/models/tag.rs b/src/app/models/tag.rs index dda9a88..403afdc 100644 --- a/src/app/models/tag.rs +++ b/src/app/models/tag.rs @@ -36,6 +36,11 @@ cfg_if::cfg_if! { Self::from_content(content) } + + fn from_default() -> Option { + let path = std::path::Path::new("data_src").join("tags.yml"); + Self::from_path(&path) + } } } }