furry v2, along with some other changes

#philosophy tag got renamed to #shower to reflect what the category was called
this may result in changes in your feed
This commit is contained in:
りき萌 2025-07-15 00:22:50 +02:00
parent a65804bb91
commit 0f91d13fa8
11 changed files with 271 additions and 20 deletions

View file

@ -108,6 +108,10 @@ pub struct DocDir {
impl DocDir {
#[instrument("DocDir::content", skip(self))]
pub fn content(&self, path: &VPath) -> Option<Content> {
if !matches!(path.extension(), None | Some("dj")) {
return None;
}
if let Some(file_id) = self
.sources
.treehouse

View file

@ -159,10 +159,16 @@ impl TreehouseDir {
#[instrument("TreehouseDir::content", skip(self))]
fn content(&self, path: &VPath) -> Option<Content> {
let path = if path.extension() == Some("tree") {
path.with_extension("")
} else {
path.to_owned()
};
let path = if path.is_root() {
VPath::new_const("index")
} else {
path
&path
};
self.sources