diff --git a/tests/docs/smoke-all/issues/7318-title-no-overwrite/.gitignore b/tests/docs/smoke-all/issues/7318-title-no-overwrite/.gitignore
new file mode 100644
index 0000000000..ad293093b0
--- /dev/null
+++ b/tests/docs/smoke-all/issues/7318-title-no-overwrite/.gitignore
@@ -0,0 +1,2 @@
+/.quarto/
+**/*.quarto_ipynb
diff --git a/tests/docs/smoke-all/issues/7318-title-no-overwrite/_quarto.yml b/tests/docs/smoke-all/issues/7318-title-no-overwrite/_quarto.yml
new file mode 100644
index 0000000000..5b0515633d
--- /dev/null
+++ b/tests/docs/smoke-all/issues/7318-title-no-overwrite/_quarto.yml
@@ -0,0 +1,7 @@
+project:
+ title: "Project"
+ type: website
+format:
+ html:
+ template-partials:
+ - metadata.html
diff --git a/tests/docs/smoke-all/issues/7318-title-no-overwrite/document1.qmd b/tests/docs/smoke-all/issues/7318-title-no-overwrite/document1.qmd
new file mode 100644
index 0000000000..e9ff18e83b
--- /dev/null
+++ b/tests/docs/smoke-all/issues/7318-title-no-overwrite/document1.qmd
@@ -0,0 +1,10 @@
+---
+title: "Document 1"
+_quarto:
+ tests:
+ html:
+ ensureFileRegexMatches:
+ - ['
This text will be overwritten.']
+---
+
+This is sample document 1.
\ No newline at end of file
diff --git a/tests/docs/smoke-all/issues/7318-title-no-overwrite/document2.qmd b/tests/docs/smoke-all/issues/7318-title-no-overwrite/document2.qmd
new file mode 100644
index 0000000000..133292150e
--- /dev/null
+++ b/tests/docs/smoke-all/issues/7318-title-no-overwrite/document2.qmd
@@ -0,0 +1,18 @@
+---
+title: "Document 2"
+format:
+ html:
+ template-partials:
+ - metadata.html
+_quarto:
+ tests:
+ html:
+ ensureFileRegexMatches:
+ - ['This text will be overwritten.']
+---
+
+This is sample document 2.
+
+The `format` metadata is redundant with that in `_quarto.yml`,
+but it's here to show that if you remove those options from `_quarto.yml`
+but leave them here, the bug will remain the same.
diff --git a/tests/docs/smoke-all/issues/7318-title-no-overwrite/document3.qmd b/tests/docs/smoke-all/issues/7318-title-no-overwrite/document3.qmd
new file mode 100644
index 0000000000..50b5a4e6e6
--- /dev/null
+++ b/tests/docs/smoke-all/issues/7318-title-no-overwrite/document3.qmd
@@ -0,0 +1,9 @@
+---
+_quarto:
+ tests:
+ html:
+ ensureFileRegexMatches:
+ - ['This text will be overwritten.']
+---
+
+This is sample document 3, and this one actually works correctly!
\ No newline at end of file
diff --git a/tests/docs/smoke-all/issues/7318-title-no-overwrite/metadata.html b/tests/docs/smoke-all/issues/7318-title-no-overwrite/metadata.html
new file mode 100644
index 0000000000..dd788d9fc6
--- /dev/null
+++ b/tests/docs/smoke-all/issues/7318-title-no-overwrite/metadata.html
@@ -0,0 +1,3 @@
+This text will be overwritten.
+
+
diff --git a/tests/docs/smoke-all/website/title-shortcode/.gitignore b/tests/docs/smoke-all/website/title-shortcode/.gitignore
new file mode 100644
index 0000000000..ad293093b0
--- /dev/null
+++ b/tests/docs/smoke-all/website/title-shortcode/.gitignore
@@ -0,0 +1,2 @@
+/.quarto/
+**/*.quarto_ipynb
diff --git a/tests/docs/smoke-all/website/title-shortcode/_quarto.yml b/tests/docs/smoke-all/website/title-shortcode/_quarto.yml
new file mode 100644
index 0000000000..e993b7f780
--- /dev/null
+++ b/tests/docs/smoke-all/website/title-shortcode/_quarto.yml
@@ -0,0 +1,14 @@
+project:
+ type: website
+
+website:
+ title: "shortcode in title"
+ navbar:
+ left:
+ - href: index.qmd
+ text: Home
+ - about.qmd
+
+format: html
+
+custom-title-about: "YOLO"
diff --git a/tests/docs/smoke-all/website/title-shortcode/about.qmd b/tests/docs/smoke-all/website/title-shortcode/about.qmd
new file mode 100644
index 0000000000..037fc2f7d6
--- /dev/null
+++ b/tests/docs/smoke-all/website/title-shortcode/about.qmd
@@ -0,0 +1,10 @@
+---
+title: "{{< meta custom-title-about >}} Page"
+_quarto:
+ tests:
+ html:
+ ensureFileRegexMatches:
+ - ['YOLO Page – shortcode in title']
+---
+
+This page should have shortcode in title resolved from the `_quarto.yml` metadata.
diff --git a/tests/docs/smoke-all/website/title-shortcode/index.qmd b/tests/docs/smoke-all/website/title-shortcode/index.qmd
new file mode 100644
index 0000000000..a8c2840674
--- /dev/null
+++ b/tests/docs/smoke-all/website/title-shortcode/index.qmd
@@ -0,0 +1,10 @@
+---
+title: "shortcode in title"
+_quarto:
+ tests:
+ html:
+ ensureFileRegexMatches:
+ - ['shortcode in title']
+---
+
+Title is same as website title, and should not be repeated.