{{ title }}
+
{% if title %}{% endif %}
{% if description %}{% endif %}
-
{% if image %}{% endif %}
diff --git a/tests/functional_markdown_tests.py b/tests/functional_markdown_tests.py
index ccddbf9..864ec29 100644
--- a/tests/functional_markdown_tests.py
+++ b/tests/functional_markdown_tests.py
@@ -63,3 +63,16 @@ def test_figures_are_rendered():
'') in data
assert '' in data
os.chdir(HERE)
+
+
+def test_og_image():
+ """Test that the og:image meta tag is present as expected."""
+ with tempfile.TemporaryDirectory() as tmpdir:
+ src_dir = os.path.join(HERE, 'instance')
+ ssg = StaticSiteGenerator(src_dir, tmpdir)
+ os.chdir(os.path.join(src_dir, 'pages'))
+
+ ssg.build_file_in_destination(os.path.join(HERE, 'instance', 'pages'), '', 'more-metadata.md', tmpdir, True)
+ with open(os.path.join(tmpdir, 'more-metadata.html'), 'r') as graphviz_output:
+ data = graphviz_output.read()
+ assert ('