From d12bacafa52647fba6606040522942cf3147cd61 Mon Sep 17 00:00:00 2001 From: prescientmoon <git@moonythm.dev> Date: Fri, 21 Mar 2025 13:54:15 +0100 Subject: [PATCH] Hide links to paper on riddle page --- content/echoes/spherical-cmb/index.dj | 2 ++ src/html.rs | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/content/echoes/spherical-cmb/index.dj b/content/echoes/spherical-cmb/index.dj index 3a09f01..978cdc3 100644 --- a/content/echoes/spherical-cmb/index.dj +++ b/content/echoes/spherical-cmb/index.dj @@ -11,6 +11,7 @@ This is a paper I, together with three of my collegues wrote for the mandatory t # Computing CMB temperature fluctuations for spherical spaces +:::: comment ## Links ::: embed-description @@ -18,6 +19,7 @@ This is a paper I, together with three of my collegues wrote for the mandatory t - Paper: [source](https://git.moonythm.dev/ddd/bachelor-prep-paper), [pdf](https://git.moonythm.dev/ddd/bachelor-prep-paper/raw/branch/master/main.pdf) - Presentation: [source](https://git.moonythm.dev/ddd/bachelor-prep-presentation), [pdf](https://git.moonythm.dev/ddd/bachelor-prep-presentation/raw/branch/master/main.pdf) +:::: ## Solve my riddle! diff --git a/src/html.rs b/src/html.rs index 2d7b4a9..600fda6 100644 --- a/src/html.rs +++ b/src/html.rs @@ -116,6 +116,11 @@ impl<'s> Writer<'s> { self.states.pop(); return Ok(()); } + // Nest ignores for nested containers + Event::Start(Container::Div { .. }, _) => { + self.states.push(State::Ignore); + return Ok(()); + } _ => return Ok(()), } } @@ -412,6 +417,11 @@ impl<'s> Writer<'s> { self.states.push(State::Ignore); } // }}} + // {{{ Block comments + Container::Div { class: "comment" } => { + self.states.push(State::Ignore); + } + // }}} // {{{ Embed description Container::Div { class: "embed-description",