Skip to content

Commit 20ea781

Browse files
committed
content/conf: add opengraph image
1 parent 15f2324 commit 20ea781

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

content/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
]
4545
ogp_site_name = "Python for Scientific Computing"
4646
ogp_site_url = 'https://aaltoscicomp.github.io/python-for-scicomp/'
47+
import datetime
48+
if datetime.date.today() < datetime.date(2022,12,15):
49+
ogp_image = 'https://www.aalto.fi/sites/g/files/flghsv161/files/styles/o_914w_ah_n/public/2022-11/PFSC22_v2.png'
50+
ogp_image_alt = 'Python for Scientific Computing course logo with date of 22-25/11/2022, twitch.tv/coderefinery, and partner logos'
4751

4852
import os
4953
plausible_domain = 'aaltoscicomp.github.io/python-for-scicomp'

0 commit comments

Comments
 (0)