Add opengraph tags to some pages
authorMagnus Hagander <magnus@hagander.net>
Thu, 22 Oct 2020 12:08:29 +0000 (14:08 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 22 Oct 2020 12:14:12 +0000 (14:14 +0200)
commit41b26144f51ae84a918ccef2973e0fb37b96309b
treed4e1aec07c6cd989719c33fd9be49efd61c0151d
parent0bc9340102ffe17f29e81a3088f72ce59bc51f53
Add opengraph tags to some pages

Add template support for opengraph tags (which will enable things like
icons and preview on posts to twitter and facebook and other places) to
both base pages and documentation pages. Use this to actually add the
tags to docs pages (only v10+ will get text previews, but all should get
the titles and image) and news (only news from the project will get an
image, all get both title and text)
pgweb/docs/views.py
pgweb/news/views.py
templates/base/base.html
templates/docs/docspage.html