From caedf2e2dddbbfececeef5f536e1e19ade1063ff Mon Sep 17 00:00:00 2001 From: despiegk Date: Wed, 22 Oct 2025 09:38:49 +0200 Subject: [PATCH] ... --- lib/data/markdown/parsers/parse_doc.v | 40 +++++++++++++-------------- lib/web/site/play_page.v | 3 -- 2 files changed, 20 insertions(+), 23 deletions(-) diff --git a/lib/data/markdown/parsers/parse_doc.v b/lib/data/markdown/parsers/parse_doc.v index 6f1ba2eb..5a07701c 100644 --- a/lib/data/markdown/parsers/parse_doc.v +++ b/lib/data/markdown/parsers/parse_doc.v @@ -77,16 +77,16 @@ pub fn parse_doc(mut doc elements.Doc) ! { continue } - if mut llast is elements.Frontmatter || mut llast is elements.Frontmatter2 { - if trimmed_line == '---' || trimmed_line == '+++' { - parser.next_start_lf()! - parser.frontmatter = true - continue - } - llast.content += '${line}\n' - parser.next() - continue - } + // if mut llast is elements.Frontmatter || mut llast is elements.Frontmatter2 { + // if trimmed_line == '---' || trimmed_line == '+++' { + // parser.next_start_lf()! + // parser.frontmatter = true + // continue + // } + // llast.content += '${line}\n' + // parser.next() + // continue + // } if mut llast is elements.Paragraph { if elements.line_is_list(line) { @@ -110,17 +110,17 @@ pub fn parse_doc(mut doc elements.Doc) ! { continue } - if line.starts_with('+++') && parser.frontmatter == false { - mut e := doc.frontmatter_new(mut &doc, '') - parser.next() - continue - } + // if line.starts_with('+++') && parser.frontmatter == false { + // mut e := doc.frontmatter_new(mut &doc, '') + // parser.next() + // continue + // } - if line.starts_with('---') && parser.frontmatter == false { - mut e := doc.frontmatter2_new(mut &doc, '') - parser.next() - continue - } + // if line.starts_with('---') && parser.frontmatter == false { + // mut e := doc.frontmatter2_new(mut &doc, '') + // parser.next() + // continue + // } // process headers (# is 35) if line.len > 0 && line[0] == 35 { diff --git a/lib/web/site/play_page.v b/lib/web/site/play_page.v index 8ece06b0..333293df 100644 --- a/lib/web/site/play_page.v +++ b/lib/web/site/play_page.v @@ -120,9 +120,6 @@ fn play_pages(mut plbook PlayBook, mut site Site) ! { mypage.slug = p.get_default('slug', '')! mypage.draft = p.get_default_false('draft') mypage.hide_title = p.get_default_false('hide_title') - if mypage.title.len > 0 { - mypage.hide_title = true - } mypage.title_nr = p.get_int_default('title_nr', 0)! site.pages << mypage