Skip to content

Commit

Permalink
fix(generic_content): fix locale in sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Dec 3, 2024
1 parent 24b1e10 commit 48d540c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/rari-doc/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use crate::pages::page::{Page, PageBuilder, PageLike};
use crate::pages::types::spa::SPA;
use crate::resolve::url_to_folder_path;

#[derive(Clone, Default)]
#[derive(Clone, Debug, Default)]
pub struct SitemapMeta<'a> {
pub url: Cow<'a, str>,
pub modified: Option<NaiveDateTime>,
Expand Down
2 changes: 1 addition & 1 deletion crates/rari-doc/src/pages/types/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl PageLike for GenericPage {
}

fn locale(&self) -> Locale {
Default::default()
self.meta.locale
}

fn content(&self) -> &str {
Expand Down

0 comments on commit 48d540c

Please sign in to comment.