We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
As a front-end user I want to see the PGP logo on the site
here are links to the temporary logo approved till we finish revising the permanent one: 

- [for desktop light mode](https://www.figma.com/file/HpGBOZi9lO8B3nCAx3d4Fj/Princeton-Geniza-(Project-team)?node-id=2300%3A16460)
- [for mobile light mode](https://www.figma.com/file/HpGBOZi9lO8B3nCAx3d4Fj/Princeton-Geniza-(Project-team)?node-id=2300%3A16461)
- [for desktop dark mode](https://www.figma.com/file/HpGBOZi9lO8B3nCAx3d4Fj/Princeton-Geniza-(Project-team)?node-id=2300%3A16466)
- [for mobile dark mode](https://www.figma.com/file/HpGBOZi9lO8B3nCAx3d4Fj/Princeton-Geniza-(Project-team)?node-id=2301%3A16480)


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `geniza/pages/models.py`
Content:
```
1 from django.db import models
2 from django.http.response import HttpResponseRedirect
3 from wagtail.admin.edit_handlers import FieldPanel, RichTextFieldPanel
4 from wagtail.core.fields import RichTextField
5 from wagtail.core.models import Page
6 
7 
8 class HomePage(Page):
9     """:class:`wagtail.core.models.Page` model for Geniza home page."""
10 
11     # fields
12     description = models.TextField(blank=True)
13     body = RichTextField(
14         features=[
15             "h2",
16             "h3",
17             "bold",
18             "italic",
19             "link",
20             "ol",
21             "ul",
22             "image",
23             "embed",
24             "blockquote",
25             "superscript",
26             "subscript",
27             "strikethrough",
28         ],
29         blank=True,
30     )
31     # can only be child of Root
32     parent_page_types = [Page]
33     subpage_types = ["pages.ContentPage", "pages.ContainerPage"]
34     content_panels = Page.content_panels + [
35         FieldPanel("description"),
36         RichTextFieldPanel("body"),
37     ]
38 
39     class Meta:
40         verbose_name = "homepage"
41 
42 
43 class ContainerPage(Page):
44     """An empty :class:`Page` type that has :class:`ContentPage` instances
45     as its subpages."""
46 
47     # can only be child of HomePage
48     parent_page_types = [HomePage]
49     subpage_types = ["pages.ContentPage"]
50 
51     # show in menu by default
52     show_in_menus_default = True
53 
54     # should not ever actually render
55     def serve(self, request):
56         # redirect to parent page instead
57         if self.get_parent():
58             return HttpResponseRedirect(self.get_parent().get_url(request))
59 
60 
61 class ContentPage(Page):
62     """A simple :class:`Page` type for content pages."""
63 
64     # fields
65     description = models.TextField(blank=True)
66     body = RichTextField(
67         features=[
68             "h2",
69             "h3",
70             "bold",
71             "italic",
72             "link",
73             "ol",
74             "ul",
75             "image",
76             "embed",
77             "blockquote",
78             "superscript",
79             "subscript",
80             "strikethrough",
81         ],
82         blank=True,
83     )
84     # can be child of Home or Container page
85     parent_page_types = [HomePage, ContainerPage]
86     content_panels = Page.content_panels + [
87         FieldPanel("description"),
88         RichTextFieldPanel("body"),
89     ]
90 
91     def get_context(self, request):
92         context = super(ContentPage, self).get_context(request)
93         context["page_type"] = "content-page"
94         return context
95
```

Path: `geniza/pages/management/commands/bootstrap_content.py`
Content:
```
1 from django.core.exceptions import ObjectDoesNotExist
2 from django.core.management.base import BaseCommand
3 from django.templatetags.static import static
4 from wagtail.core.models import Page
5 from wagtail.core.models.i18n import Locale
6 from wagtail.core.models.sites import Site
7 
8 from geniza.pages.models import ContainerPage, ContentPage, HomePage
9 
10 
11 class Command(BaseCommand):
12     def add_arguments(self, parser):
13         parser.add_argument(
14             "-H",
15             "--hostname",
16             default="localhost",
17             help="hostname from which the app is served (default: localhost)",
18         )
19         parser.add_argument(
20             "-p",
21             "--port",
22             default="8000",
23             help="port from which the app is served (default: 8000)",
24         )
25         parser.add_argument(
26             "-f",
27             "--fixtures",
28             action="store_true",
29             help="include test fixture content page",
30         )
31 
32     def handle(self, *args, **options):
33         """Bootstrap content for Geniza public project site.
34         NOTE: Not idempotent. Will recreate pages if they already exist."""
35 
36         include_fixtures = options.get("fixtures")
37         hostname = options.get("hostname")
38         port = options.get("port")
39         (locale, _) = Locale.objects.get_or_create(language_code="en")
40 
41         # Bootstrap empty home page, about page
42         home_page = HomePage(
43             title="The Princeton Geniza Project",
44             description="Home page",
45             locale=locale,
46         )
47 
48         root = Page.get_first_root_node()
49         root.add_child(instance=home_page)
50 
51         container_page = ContainerPage(title="About", slug="about", locale=locale)
52         home_page.add_child(instance=container_page)
53 
54         # Bootstrap other empty content pages
55 
56         # Pages for main navigation menu
57         root_pages = [
58             ContentPage(
59                 title="Contact Us",
60                 slug="contact",
61                 description="Contact information",
62                 locale=locale,
63             ),
64         ]
65         for page in root_pages:
66             page.show_in_menus = True
67             home_page.add_child(instance=page)
68 
69         # Pages for About sub-navigation menu
70         container_pages = [
71             ContentPage(
72                 title="Credits",
73                 slug="credits",
74                 description="List of Geniza Project contributors and their roles",
75                 locale=locale,
76             ),
77             ContentPage(
78                 title="How to Cite",
79                 slug="how-to-cite",
80                 description="Instructions for citing the Princeton Geniza Project",
81                 locale=locale,
82             ),
83             ContentPage(
84                 title="Data Exports",
85                 slug="data-exports",
86                 description="Information about exporting data",
87                 locale=locale,
88             ),
89             ContentPage(
90                 title="Technical",
91                 slug="technical",
92                 description="Technical information",
93                 locale=locale,
94             ),
95             ContentPage(
96                 title="FAQ",
97                 slug="faq",
98                 description="Frequently asked questions",
99                 locale=locale,
100             ),
101         ]
102         for page in container_pages:
103             page.show_in_menus = True
104             container_page.add_child(instance=page)
105 
106         if include_fixtures:
107             # Create test page
108             test_content_page = self.generate_test_content_page()
109             home_page.add_child(instance=test_content_page)
110 
111         # Create or update site with page tree and other options
112         try:
113             default_site = Site.objects.get(is_default_site=True)
114             default_site.root_page = home_page
115             default_site.port = port
116             default_site.hostname = hostname
117             default_site.site_name = "Geniza"
118             default_site.save()
119         except ObjectDoesNotExist:
120             default_site = Site.objects.create(
121                 hostname=hostname,
122                 port=port,
123                 root_page=home_page,
124                 is_default_site=True,
125                 site_name="Geniza",
126             )
127 
128     def generate_test_content_page(self):
129         # Create test content page from fixture
130         with open(
131             "geniza/pages/fixtures/example_content_page.html", "r"
132         ) as content_fixture:
133             content = content_fixture.read()
134         return ContentPage(
135             title="Page Title",
136             description="Example page",
137             slug="content",
138             body=content.replace(  # get static URLs for test images
139                 "test-image-fragment.jpg", static("test-image-fragment.jpg")
140             ).replace("test-image-tagnetwork.png", static("test-image-tagnetwork.png")),
141             live=True,
142         )
143
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/geniza/pages/management/commands/bootstrap_content.py b/geniza/pages/management/commands/bootstrap_content.py
--- a/geniza/pages/management/commands/bootstrap_content.py
+++ b/geniza/pages/management/commands/bootstrap_content.py
@@ -136,7 +136,11 @@
             description="Example page",
             slug="content",
             body=content.replace(  # get static URLs for test images
-                "test-image-fragment.jpg", static("test-image-fragment.jpg")
-            ).replace("test-image-tagnetwork.png", static("test-image-tagnetwork.png")),
+                "test-image-fragment.jpg",
+                static("img/fixtures/test-image-fragment.jpg"),
+            ).replace(
+                "test-image-tagnetwork.png",
+                static("img/fixtures/test-image-tagnetwork.png"),
+            ),
             live=True,
         )
diff --git a/geniza/pages/models.py b/geniza/pages/models.py
--- a/geniza/pages/models.py
+++ b/geniza/pages/models.py
@@ -39,6 +39,11 @@
     class Meta:
         verbose_name = "homepage"
 
+    def get_context(self, request):
+        context = super(HomePage, self).get_context(request)
+        context["page_type"] = "homepage"
+        return context
+
 
 class ContainerPage(Page):
     """An empty :class:`Page` type that has :class:`ContentPage` instances

{"golden_diff": "diff --git a/geniza/pages/management/commands/bootstrap_content.py b/geniza/pages/management/commands/bootstrap_content.py\n--- a/geniza/pages/management/commands/bootstrap_content.py\n+++ b/geniza/pages/management/commands/bootstrap_content.py\n@@ -136,7 +136,11 @@\n             description=\"Example page\",\n             slug=\"content\",\n             body=content.replace(  # get static URLs for test images\n-                \"test-image-fragment.jpg\", static(\"test-image-fragment.jpg\")\n-            ).replace(\"test-image-tagnetwork.png\", static(\"test-image-tagnetwork.png\")),\n+                \"test-image-fragment.jpg\",\n+                static(\"img/fixtures/test-image-fragment.jpg\"),\n+            ).replace(\n+                \"test-image-tagnetwork.png\",\n+                static(\"img/fixtures/test-image-tagnetwork.png\"),\n+            ),\n             live=True,\n         )\ndiff --git a/geniza/pages/models.py b/geniza/pages/models.py\n--- a/geniza/pages/models.py\n+++ b/geniza/pages/models.py\n@@ -39,6 +39,11 @@\n     class Meta:\n         verbose_name = \"homepage\"\n \n+    def get_context(self, request):\n+        context = super(HomePage, self).get_context(request)\n+        context[\"page_type\"] = \"homepage\"\n+        return context\n+\n \n class ContainerPage(Page):\n     \"\"\"An empty :class:`Page` type that has :class:`ContentPage` instances\n", "issue": "As a front-end user I want to see the PGP logo on the site\nhere are links to the temporary logo approved till we finish revising the permanent one: \n\n- [for desktop light mode](https://www.figma.com/file/HpGBOZi9lO8B3nCAx3d4Fj/Princeton-Geniza-(Project-team)?node-id=2300%3A16460)\n- [for mobile light mode](https://www.figma.com/file/HpGBOZi9lO8B3nCAx3d4Fj/Princeton-Geniza-(Project-team)?node-id=2300%3A16461)\n- [for desktop dark mode](https://www.figma.com/file/HpGBOZi9lO8B3nCAx3d4Fj/Princeton-Geniza-(Project-team)?node-id=2300%3A16466)\n- [for mobile dark mode](https://www.figma.com/file/HpGBOZi9lO8B3nCAx3d4Fj/Princeton-Geniza-(Project-team)?node-id=2301%3A16480)\n\n", "before_files": [{"content": "from django.db import models\nfrom django.http.response import HttpResponseRedirect\nfrom wagtail.admin.edit_handlers import FieldPanel, RichTextFieldPanel\nfrom wagtail.core.fields import RichTextField\nfrom wagtail.core.models import Page\n\n\nclass HomePage(Page):\n    \"\"\":class:`wagtail.core.models.Page` model for Geniza home page.\"\"\"\n\n    # fields\n    description = models.TextField(blank=True)\n    body = RichTextField(\n        features=[\n            \"h2\",\n            \"h3\",\n            \"bold\",\n            \"italic\",\n            \"link\",\n            \"ol\",\n            \"ul\",\n            \"image\",\n            \"embed\",\n            \"blockquote\",\n            \"superscript\",\n            \"subscript\",\n            \"strikethrough\",\n        ],\n        blank=True,\n    )\n    # can only be child of Root\n    parent_page_types = [Page]\n    subpage_types = [\"pages.ContentPage\", \"pages.ContainerPage\"]\n    content_panels = Page.content_panels + [\n        FieldPanel(\"description\"),\n        RichTextFieldPanel(\"body\"),\n    ]\n\n    class Meta:\n        verbose_name = \"homepage\"\n\n\nclass ContainerPage(Page):\n    \"\"\"An empty :class:`Page` type that has :class:`ContentPage` instances\n    as its subpages.\"\"\"\n\n    # can only be child of HomePage\n    parent_page_types = [HomePage]\n    subpage_types = [\"pages.ContentPage\"]\n\n    # show in menu by default\n    show_in_menus_default = True\n\n    # should not ever actually render\n    def serve(self, request):\n        # redirect to parent page instead\n        if self.get_parent():\n            return HttpResponseRedirect(self.get_parent().get_url(request))\n\n\nclass ContentPage(Page):\n    \"\"\"A simple :class:`Page` type for content pages.\"\"\"\n\n    # fields\n    description = models.TextField(blank=True)\n    body = RichTextField(\n        features=[\n            \"h2\",\n            \"h3\",\n            \"bold\",\n            \"italic\",\n            \"link\",\n            \"ol\",\n            \"ul\",\n            \"image\",\n            \"embed\",\n            \"blockquote\",\n            \"superscript\",\n            \"subscript\",\n            \"strikethrough\",\n        ],\n        blank=True,\n    )\n    # can be child of Home or Container page\n    parent_page_types = [HomePage, ContainerPage]\n    content_panels = Page.content_panels + [\n        FieldPanel(\"description\"),\n        RichTextFieldPanel(\"body\"),\n    ]\n\n    def get_context(self, request):\n        context = super(ContentPage, self).get_context(request)\n        context[\"page_type\"] = \"content-page\"\n        return context\n", "path": "geniza/pages/models.py"}, {"content": "from django.core.exceptions import ObjectDoesNotExist\nfrom django.core.management.base import BaseCommand\nfrom django.templatetags.static import static\nfrom wagtail.core.models import Page\nfrom wagtail.core.models.i18n import Locale\nfrom wagtail.core.models.sites import Site\n\nfrom geniza.pages.models import ContainerPage, ContentPage, HomePage\n\n\nclass Command(BaseCommand):\n    def add_arguments(self, parser):\n        parser.add_argument(\n            \"-H\",\n            \"--hostname\",\n            default=\"localhost\",\n            help=\"hostname from which the app is served (default: localhost)\",\n        )\n        parser.add_argument(\n            \"-p\",\n            \"--port\",\n            default=\"8000\",\n            help=\"port from which the app is served (default: 8000)\",\n        )\n        parser.add_argument(\n            \"-f\",\n            \"--fixtures\",\n            action=\"store_true\",\n            help=\"include test fixture content page\",\n        )\n\n    def handle(self, *args, **options):\n        \"\"\"Bootstrap content for Geniza public project site.\n        NOTE: Not idempotent. Will recreate pages if they already exist.\"\"\"\n\n        include_fixtures = options.get(\"fixtures\")\n        hostname = options.get(\"hostname\")\n        port = options.get(\"port\")\n        (locale, _) = Locale.objects.get_or_create(language_code=\"en\")\n\n        # Bootstrap empty home page, about page\n        home_page = HomePage(\n            title=\"The Princeton Geniza Project\",\n            description=\"Home page\",\n            locale=locale,\n        )\n\n        root = Page.get_first_root_node()\n        root.add_child(instance=home_page)\n\n        container_page = ContainerPage(title=\"About\", slug=\"about\", locale=locale)\n        home_page.add_child(instance=container_page)\n\n        # Bootstrap other empty content pages\n\n        # Pages for main navigation menu\n        root_pages = [\n            ContentPage(\n                title=\"Contact Us\",\n                slug=\"contact\",\n                description=\"Contact information\",\n                locale=locale,\n            ),\n        ]\n        for page in root_pages:\n            page.show_in_menus = True\n            home_page.add_child(instance=page)\n\n        # Pages for About sub-navigation menu\n        container_pages = [\n            ContentPage(\n                title=\"Credits\",\n                slug=\"credits\",\n                description=\"List of Geniza Project contributors and their roles\",\n                locale=locale,\n            ),\n            ContentPage(\n                title=\"How to Cite\",\n                slug=\"how-to-cite\",\n                description=\"Instructions for citing the Princeton Geniza Project\",\n                locale=locale,\n            ),\n            ContentPage(\n                title=\"Data Exports\",\n                slug=\"data-exports\",\n                description=\"Information about exporting data\",\n                locale=locale,\n            ),\n            ContentPage(\n                title=\"Technical\",\n                slug=\"technical\",\n                description=\"Technical information\",\n                locale=locale,\n            ),\n            ContentPage(\n                title=\"FAQ\",\n                slug=\"faq\",\n                description=\"Frequently asked questions\",\n                locale=locale,\n            ),\n        ]\n        for page in container_pages:\n            page.show_in_menus = True\n            container_page.add_child(instance=page)\n\n        if include_fixtures:\n            # Create test page\n            test_content_page = self.generate_test_content_page()\n            home_page.add_child(instance=test_content_page)\n\n        # Create or update site with page tree and other options\n        try:\n            default_site = Site.objects.get(is_default_site=True)\n            default_site.root_page = home_page\n            default_site.port = port\n            default_site.hostname = hostname\n            default_site.site_name = \"Geniza\"\n            default_site.save()\n        except ObjectDoesNotExist:\n            default_site = Site.objects.create(\n                hostname=hostname,\n                port=port,\n                root_page=home_page,\n                is_default_site=True,\n                site_name=\"Geniza\",\n            )\n\n    def generate_test_content_page(self):\n        # Create test content page from fixture\n        with open(\n            \"geniza/pages/fixtures/example_content_page.html\", \"r\"\n        ) as content_fixture:\n            content = content_fixture.read()\n        return ContentPage(\n            title=\"Page Title\",\n            description=\"Example page\",\n            slug=\"content\",\n            body=content.replace(  # get static URLs for test images\n                \"test-image-fragment.jpg\", static(\"test-image-fragment.jpg\")\n            ).replace(\"test-image-tagnetwork.png\", static(\"test-image-tagnetwork.png\")),\n            live=True,\n        )\n", "path": "geniza/pages/management/commands/bootstrap_content.py"}], "after_files": [{"content": "from django.db import models\nfrom django.http.response import HttpResponseRedirect\nfrom wagtail.admin.edit_handlers import FieldPanel, RichTextFieldPanel\nfrom wagtail.core.fields import RichTextField\nfrom wagtail.core.models import Page\n\n\nclass HomePage(Page):\n    \"\"\":class:`wagtail.core.models.Page` model for Geniza home page.\"\"\"\n\n    # fields\n    description = models.TextField(blank=True)\n    body = RichTextField(\n        features=[\n            \"h2\",\n            \"h3\",\n            \"bold\",\n            \"italic\",\n            \"link\",\n            \"ol\",\n            \"ul\",\n            \"image\",\n            \"embed\",\n            \"blockquote\",\n            \"superscript\",\n            \"subscript\",\n            \"strikethrough\",\n        ],\n        blank=True,\n    )\n    # can only be child of Root\n    parent_page_types = [Page]\n    subpage_types = [\"pages.ContentPage\", \"pages.ContainerPage\"]\n    content_panels = Page.content_panels + [\n        FieldPanel(\"description\"),\n        RichTextFieldPanel(\"body\"),\n    ]\n\n    class Meta:\n        verbose_name = \"homepage\"\n\n    def get_context(self, request):\n        context = super(HomePage, self).get_context(request)\n        context[\"page_type\"] = \"homepage\"\n        return context\n\n\nclass ContainerPage(Page):\n    \"\"\"An empty :class:`Page` type that has :class:`ContentPage` instances\n    as its subpages.\"\"\"\n\n    # can only be child of HomePage\n    parent_page_types = [HomePage]\n    subpage_types = [\"pages.ContentPage\"]\n\n    # show in menu by default\n    show_in_menus_default = True\n\n    # should not ever actually render\n    def serve(self, request):\n        # redirect to parent page instead\n        if self.get_parent():\n            return HttpResponseRedirect(self.get_parent().get_url(request))\n\n\nclass ContentPage(Page):\n    \"\"\"A simple :class:`Page` type for content pages.\"\"\"\n\n    # fields\n    description = models.TextField(blank=True)\n    body = RichTextField(\n        features=[\n            \"h2\",\n            \"h3\",\n            \"bold\",\n            \"italic\",\n            \"link\",\n            \"ol\",\n            \"ul\",\n            \"image\",\n            \"embed\",\n            \"blockquote\",\n            \"superscript\",\n            \"subscript\",\n            \"strikethrough\",\n        ],\n        blank=True,\n    )\n    # can be child of Home or Container page\n    parent_page_types = [HomePage, ContainerPage]\n    content_panels = Page.content_panels + [\n        FieldPanel(\"description\"),\n        RichTextFieldPanel(\"body\"),\n    ]\n\n    def get_context(self, request):\n        context = super(ContentPage, self).get_context(request)\n        context[\"page_type\"] = \"content-page\"\n        return context\n", "path": "geniza/pages/models.py"}, {"content": "from django.core.exceptions import ObjectDoesNotExist\nfrom django.core.management.base import BaseCommand\nfrom django.templatetags.static import static\nfrom wagtail.core.models import Page\nfrom wagtail.core.models.i18n import Locale\nfrom wagtail.core.models.sites import Site\n\nfrom geniza.pages.models import ContainerPage, ContentPage, HomePage\n\n\nclass Command(BaseCommand):\n    def add_arguments(self, parser):\n        parser.add_argument(\n            \"-H\",\n            \"--hostname\",\n            default=\"localhost\",\n            help=\"hostname from which the app is served (default: localhost)\",\n        )\n        parser.add_argument(\n            \"-p\",\n            \"--port\",\n            default=\"8000\",\n            help=\"port from which the app is served (default: 8000)\",\n        )\n        parser.add_argument(\n            \"-f\",\n            \"--fixtures\",\n            action=\"store_true\",\n            help=\"include test fixture content page\",\n        )\n\n    def handle(self, *args, **options):\n        \"\"\"Bootstrap content for Geniza public project site.\n        NOTE: Not idempotent. Will recreate pages if they already exist.\"\"\"\n\n        include_fixtures = options.get(\"fixtures\")\n        hostname = options.get(\"hostname\")\n        port = options.get(\"port\")\n        (locale, _) = Locale.objects.get_or_create(language_code=\"en\")\n\n        # Bootstrap empty home page, about page\n        home_page = HomePage(\n            title=\"The Princeton Geniza Project\",\n            description=\"Home page\",\n            locale=locale,\n        )\n\n        root = Page.get_first_root_node()\n        root.add_child(instance=home_page)\n\n        container_page = ContainerPage(title=\"About\", slug=\"about\", locale=locale)\n        home_page.add_child(instance=container_page)\n\n        # Bootstrap other empty content pages\n\n        # Pages for main navigation menu\n        root_pages = [\n            ContentPage(\n                title=\"Contact Us\",\n                slug=\"contact\",\n                description=\"Contact information\",\n                locale=locale,\n            ),\n        ]\n        for page in root_pages:\n            page.show_in_menus = True\n            home_page.add_child(instance=page)\n\n        # Pages for About sub-navigation menu\n        container_pages = [\n            ContentPage(\n                title=\"Credits\",\n                slug=\"credits\",\n                description=\"List of Geniza Project contributors and their roles\",\n                locale=locale,\n            ),\n            ContentPage(\n                title=\"How to Cite\",\n                slug=\"how-to-cite\",\n                description=\"Instructions for citing the Princeton Geniza Project\",\n                locale=locale,\n            ),\n            ContentPage(\n                title=\"Data Exports\",\n                slug=\"data-exports\",\n                description=\"Information about exporting data\",\n                locale=locale,\n            ),\n            ContentPage(\n                title=\"Technical\",\n                slug=\"technical\",\n                description=\"Technical information\",\n                locale=locale,\n            ),\n            ContentPage(\n                title=\"FAQ\",\n                slug=\"faq\",\n                description=\"Frequently asked questions\",\n                locale=locale,\n            ),\n        ]\n        for page in container_pages:\n            page.show_in_menus = True\n            container_page.add_child(instance=page)\n\n        if include_fixtures:\n            # Create test page\n            test_content_page = self.generate_test_content_page()\n            home_page.add_child(instance=test_content_page)\n\n        # Create or update site with page tree and other options\n        try:\n            default_site = Site.objects.get(is_default_site=True)\n            default_site.root_page = home_page\n            default_site.port = port\n            default_site.hostname = hostname\n            default_site.site_name = \"Geniza\"\n            default_site.save()\n        except ObjectDoesNotExist:\n            default_site = Site.objects.create(\n                hostname=hostname,\n                port=port,\n                root_page=home_page,\n                is_default_site=True,\n                site_name=\"Geniza\",\n            )\n\n    def generate_test_content_page(self):\n        # Create test content page from fixture\n        with open(\n            \"geniza/pages/fixtures/example_content_page.html\", \"r\"\n        ) as content_fixture:\n            content = content_fixture.read()\n        return ContentPage(\n            title=\"Page Title\",\n            description=\"Example page\",\n            slug=\"content\",\n            body=content.replace(  # get static URLs for test images\n                \"test-image-fragment.jpg\",\n                static(\"img/fixtures/test-image-fragment.jpg\"),\n            ).replace(\n                \"test-image-tagnetwork.png\",\n                static(\"img/fixtures/test-image-tagnetwork.png\"),\n            ),\n            live=True,\n        )\n", "path": "geniza/pages/management/commands/bootstrap_content.py"}]}