Skip to content

Commit

Permalink
Update examples according to new Jinja Markdown support (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
pydsigner committed Dec 30, 2023
1 parent 5179ba3 commit aee53d1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/basic_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
Rule(
REMatcher(r'.*\.md'),
[OutputDirPathCalc('.html'), None],
JinjaMarkdownStep()
JinjaMarkdownStep(frontmatter_parser='simple')
),
# Copy everything else in static/ directories through.
Rule(
Expand Down
2 changes: 2 additions & 0 deletions examples/basic_site/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
template: base.jinja.html
footnote: Generated with Anchovy!
---

# Welcome to Example Site 1!

Expand Down
4 changes: 2 additions & 2 deletions examples/code_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@


MARKDOWN_TEMPLATE = """---
template = "base.jinja.html"
footnote = "Generated from {path} by Anchovy."
template: base.jinja.html
footnote: Generated from {path} by Anchovy.
---
# {path}
Expand Down
2 changes: 1 addition & 1 deletion examples/gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
Rule(
REMatcher(r'.*\.md'),
[OutputDirPathCalc('.html'), None],
JinjaMarkdownStep()
JinjaMarkdownStep(frontmatter_parser='toml')
),
# Convert JPG files to WebP...
Rule(
Expand Down
6 changes: 4 additions & 2 deletions examples/gallery/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
template: base.jinja.html
footnote: Generated with Anchovy!
---
template = "base.jinja.html"
footnote = "Generated with Anchovy!"
---

# Photo Gallery

Expand Down

0 comments on commit aee53d1

Please sign in to comment.