diff --git a/components/site/test_site/content/posts/python.md b/components/site/test_site/content/posts/python.md index 469158a1..d1ef9811 100644 --- a/components/site/test_site/content/posts/python.md +++ b/components/site/test_site/content/posts/python.md @@ -8,4 +8,6 @@ Same filename but different path {{ basic() }} +{{ pirate(name="Bob") }} + diff --git a/components/site/test_site/templates/shortcodes/pirate.html b/components/site/test_site/templates/shortcodes/pirate.html new file mode 100644 index 00000000..5a01a9cc --- /dev/null +++ b/components/site/test_site/templates/shortcodes/pirate.html @@ -0,0 +1 @@ +Arrrh {{ name }} diff --git a/components/site/tests/site.rs b/components/site/tests/site.rs index 4220f141..ce9d4357 100644 --- a/components/site/tests/site.rs +++ b/components/site/tests/site.rs @@ -109,6 +109,7 @@ fn can_build_site_without_live_reload() { assert!(file_exists!(public, "posts/python/index.html")); // Shortcodes work assert!(file_contains!(public, "posts/python/index.html", "Basic shortcode")); + assert!(file_contains!(public, "posts/python/index.html", "Arrrh Bob")); assert!(file_exists!(public, "posts/tutorials/devops/nix/index.html")); assert!(file_exists!(public, "posts/with-assets/index.html")); assert!(file_exists!(public, "posts/no-section/simple/index.html"));