From d66da57961a234ea1de91d0e4a5b0d5b7747bfe8 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 17 Nov 2020 15:12:20 +0100 Subject: opengraph --- animism-align/cli/commands/site/export.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'animism-align/cli') diff --git a/animism-align/cli/commands/site/export.py b/animism-align/cli/commands/site/export.py index 987ee43..8ffe461 100644 --- a/animism-align/cli/commands/site/export.py +++ b/animism-align/cli/commands/site/export.py @@ -29,6 +29,8 @@ def cli(ctx, opt_output_dir): page_title = "Animism: Episode 1" page_name = "episode1" page_desc = "A Report on Migrating Souls in Museums and Moving Pictures" + page_image = "" + page_url = "/" + page_name media_url = "/" + page_name + "/media" @@ -60,6 +62,7 @@ def cli(ctx, opt_output_dir): index_html = index_html.replace('SITE_JSON', json.dumps(db, separators=(',', ':'))) index_html = index_html.replace('PAGE_TITLE', page_title) index_html = index_html.replace('PAGE_DESCRIPTION', page_desc) + index_html = index_html.replace('PAGE_SHARE_IMAGE', page_image) index_html = index_html.replace('PLAIN_CONTENT', plain_content(db, site_title)) index_html = index_html.replace('BUNDLE_PATH', join(page_url, 'bundle.js')) write_text(index_html, join(site_fp_out, 'index.html')) -- cgit v1.2.3-70-g09d2