Add social cards to template

This commit is contained in:
Joel Addison 2019-10-23 09:43:42 +10:00
parent cbea9ec0e1
commit e529983759
3 changed files with 19 additions and 5 deletions

View file

@ -217,6 +217,7 @@ INSTALLED_APPS = [
"bootstrapform",
"pinax_theme_bootstrap",
"sass_processor",
"capture_tag",
# external
"easy_thumbnails",

View file

@ -2,6 +2,9 @@
{% load i18n %}
{% load sitetree %}
{% load sass_tags %}
{% load capture_tags %}
{% capture as head_title silent %}{% block head_title_base %}{% if SITE_NAME %}{{ SITE_NAME }} | {% endif %}{% block head_title %}{% endblock %}{% endblock %}{% endcapture %}
<!DOCTYPE html>
@ -12,12 +15,21 @@
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block head_title_base %}{% if SITE_NAME %}{{ SITE_NAME }} | {% endif %}{% block head_title %}{% endblock %}{% endblock %}</title>
<title>{{ head_title }}</title>
<meta property="og:type" content="website" />
<meta property="og:title" content="linux.conf.au 2020" />
<meta property="og:image" content="{{ request.scheme }}://{{ request.get_host }}{% static 'assets/social.png' %}" />
<meta property="og:image:alt" content="linux.conf.au 2020 - Jan 13-17 2020, Gold Coast, Australia" />
<!-- Cards -->
<meta property="og:title" content="{{ head_title }}">
<meta property="og:description" content="linux.conf.au 2020 - Jan 13-17 2020, Gold Coast, Australia" />
<meta property="og:url" content="{{ request.scheme }}://{{ request.get_host }}{{ request.path }}">
<meta name="twitter:site" content="@linuxconfau">
<meta name="twitter:image:alt" content="{{ head_title }}" />
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="{{ request.scheme }}://{{ request.get_host }}/media/img/card/lca_badge.0e10614e.png" />
<meta property="og:image" content="{{ request.scheme }}://{{ request.get_host }}/media/img/card/lca_badge.0e10614e.png" />
<meta property="og:image:width" content="400" />
<meta property="og:image:height" content="400" />
{% block styles %}
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">

View file

@ -17,6 +17,7 @@ dj-static==0.0.6
Django==1.11.25
django-appconf==1.0.1
django-bootstrap-form==3.4
django-capture-tag==1.0
django-compressor==2.3
django-countries==5.3.1
django-crispy-forms==1.7.2
@ -64,7 +65,7 @@ pylibmc==1.5.1
pyOpenSSL==18.0.0
pypng==0.0.18
PyQRCode==1.2.1
pysaml2==4.4.0
pysaml2==4.8.0
python-dateutil==2.7.3
pytz==2018.4
rcssmin==1.0.6