diff --git a/src/mysgen/mysgen.py b/src/mysgen/mysgen.py
index f6698c0..a230943 100644
--- a/src/mysgen/mysgen.py
+++ b/src/mysgen/mysgen.py
@@ -396,14 +396,14 @@ class MySGEN:
             meta, content = self._parse(item_path)
 
             if item_type == "pages":
-                if "data" in meta:
+                if "data" in meta and meta["data"] is not False:
                     self.pages[item] = DataPage(meta, content, src_path, build_path)
                 else:
                     self.pages[item] = Page(meta, content, src_path, build_path)
             else:
-                if "image" in meta:
+                if "image" in meta and meta["image"] is not False:
                     self.posts[item] = ImagePost(meta, content, src_path, build_path)
-                elif "data" in meta:
+                elif "data" in meta and meta["data"] is not False:
                     self.posts[item] = DataPost(meta, content, src_path, build_path)
                 else:
                     self.posts[item] = Post(meta, content, src_path, build_path)
@@ -471,6 +471,10 @@ class MySGEN:
             if value == "":
                 continue
 
+            if (key == "data" or key == "image") and value == "false":
+                meta[key] = False
+                continue
+
             if key == "date":
                 meta[key] = datetime.strptime(value.pop(), "%Y-%m-%d")
                 continue

diff --git a/tests/test_unit.py b/tests/test_unit.py
index 6031ccb..a2d018d 100644
--- a/tests/test_unit.py
+++ b/tests/test_unit.py
@@ -163,8 +163,11 @@ class TestUnitMySGEN:
             ("posts", [], {}),
             ("pages", ["file"], {}),
             ("pages", ["file"], {"data": "data"}),
+            ("pages", ["file"], {"data": False}),
             ("posts", ["file"], {"image": "image"}),
+            ("posts", ["file"], {"image": False}),
             ("posts", ["file"], {"data": "data"}),
+            ("posts", ["file"], {"data": False}),
             ("posts", ["file"], {}),
         ],
     )
@@ -208,14 +211,14 @@ class TestUnitMySGEN:
             mysgen.find_and_parse(item_type)
 
             if item_type == "pages":
-                if "data" in meta:
+                if "data" in meta and meta["data"] is not False:
                     mock_datapage.assert_called_once()
                 else:
                     mock_page.assert_called_once()
             else:
-                if "image" in meta:
+                if "image" in meta and meta["image"] is not False:
                     mock_imagepost.assert_called_once()
-                elif "data" in meta:
+                elif "data" in meta and meta["data"] is not False:
                     mock_datapost.assert_called_once()
                 else:
                     mock_post.assert_called_once()
@@ -297,6 +300,8 @@ class TestUnitMySGEN:
             "tags": ["a, b"],
             "category": ["c"],
             "test": "",
+            "data": "false",
+            "image": "false",
         }
         meta_return = mysgen._format_metadata(meta)
 
@@ -305,6 +310,8 @@ class TestUnitMySGEN:
             "tags": ["a", " b"],
             "category": "c",
             "test": "",
+            "data": False,
+            "image": False,
         }
         assert meta_return == meta_answer
 

Allow image and data metadata to be false
## Description

If the `data` or `image` metadata fields are present but empty mysgen expects there to be some data for that post. Allow them to be `false`.
tests/test_unit.py::TestUnitMySGEN::test_unit_find_and_parse[pages-files5-meta5] tests/test_unit.py::TestUnitMySGEN::test_unit_find_and_parse[posts-files7-meta7] tests/test_unit.py::TestUnitMySGEN::test_unit_find_and_parse[posts-files9-meta9] tests/test_unit.py::TestUnitMySGEN::test_unit_format_metadata
tests/test_unit.py::test_unit_build tests/test_unit.py::TestUnitMySGEN::test_unit_mysgen_init tests/test_unit.py::TestUnitMySGEN::test_unit_mysgen_build[bucket] tests/test_unit.py::TestUnitMySGEN::test_unit_mysgen_build[False] tests/test_unit.py::TestUnitMySGEN::test_unit_mysgen_build[None] tests/test_unit.py::TestUnitMySGEN::test_unit_mysgen_set_base_config tests/test_unit.py::TestUnitMySGEN::test_unit_build_menu tests/test_unit.py::TestUnitMySGEN::test_unit_define_environment tests/test_unit.py::TestUnitMySGEN::test_unit_find_and_parse[unknown-files0-meta0] tests/test_unit.py::TestUnitMySGEN::test_unit_find_and_parse[pages-files1-meta1] tests/test_unit.py::TestUnitMySGEN::test_unit_find_and_parse[posts-files2-meta2] tests/test_unit.py::TestUnitMySGEN::test_unit_find_and_parse[pages-files3-meta3] tests/test_unit.py::TestUnitMySGEN::test_unit_find_and_parse[pages-files4-meta4] tests/test_unit.py::TestUnitMySGEN::test_unit_find_and_parse[posts-files6-meta6] tests/test_unit.py::TestUnitMySGEN::test_unit_find_and_parse[posts-files8-meta8] tests/test_unit.py::TestUnitMySGEN::test_unit_find_and_parse[posts-files10-meta10] tests/test_unit.py::TestUnitMySGEN::test_unit_process[unknown-data0] tests/test_unit.py::TestUnitMySGEN::test_unit_process[pages-data1] tests/test_unit.py::TestUnitMySGEN::test_unit_process[pages-data2] tests/test_unit.py::TestUnitMySGEN::test_unit_process[posts-data3] tests/test_unit.py::TestUnitMySGEN::test_unit_process[posts-data4] tests/test_unit.py::TestUnitMySGEN::test_unit_copy_s3 tests/test_unit.py::TestUnitMySGEN::test_unit_parse tests/test_unit.py::TestUnitItem::test_unit_item_init tests/test_unit.py::TestUnitItem::test_unit_item_abstract_process tests/test_unit.py::TestUnitItem::test_unit_item_patch_content tests/test_unit.py::TestUnitItem::test_unit_item_copy tests/test_unit.py::TestUnitPost::test_unit_post_init tests/test_unit.py::TestUnitPost::test_unit_post_process[meta0-content-base0-template0] tests/test_unit.py::TestUnitPost::test_unit_post_copy_raises tests/test_unit.py::TestUnitImagePost::test_unit_imagepost_init tests/test_unit.py::TestUnitImagePost::test_unit_imagepost_process[True] tests/test_unit.py::TestUnitImagePost::test_unit_imagepost_process[False] tests/test_unit.py::TestUnitImagePost::test_unit_imagepost_resize_image[posts/path/images/image1.jpg-image_size0-thumbnail_size0-image1_small.jpg] tests/test_unit.py::TestUnitDataPost::test_unit_datapost_init tests/test_unit.py::TestUnitDataPost::test_unit_datapost_process tests/test_unit.py::TestUnitPage::test_unit_page_init tests/test_unit.py::TestUnitPage::test_unit_page_process[pages/home--home] tests/test_unit.py::TestUnitPage::test_unit_page_process[pages/archive-archive-archive] tests/test_unit.py::TestUnitDataPage::test_unit_datapage_init tests/test_unit.py::TestUnitDataPage::test_unit_datapage_process