Some basic support for gross SEO metadata formats with django-meta
This commit is contained in:
parent
1aed52b75f
commit
8ef64d6a87
8 changed files with 40 additions and 5 deletions
lemoncurry
|
@ -66,6 +66,7 @@ INSTALLED_APPS = [
|
|||
|
||||
'compressor',
|
||||
'favicon',
|
||||
'meta',
|
||||
|
||||
'lemoncurry',
|
||||
'home',
|
||||
|
@ -182,3 +183,10 @@ MEDIA_ROOT = os.path.join(STATIC_ROOT, 'media')
|
|||
|
||||
# Settings specific to lemoncurry
|
||||
LEMONCURRY_SITE_NAME = '00dani.me'
|
||||
|
||||
# django-meta
|
||||
# https://django-meta.readthedocs.io/en/latest/settings.html
|
||||
META_SITE_PROTOCOL = 'https'
|
||||
META_SITE_NAME = LEMONCURRY_SITE_NAME
|
||||
META_USE_OG_PROPERTIES = True
|
||||
META_USE_TWITTER_PROPERTIES = True
|
||||
|
|
|
@ -3,3 +3,5 @@ from .base import *
|
|||
ALLOWED_HOSTS = ['*']
|
||||
STATIC_URL = 'https://static.00dani.dev/'
|
||||
MEDIA_URL = STATIC_URL + 'media/'
|
||||
META_SITE_DOMAIN = '00dani.dev'
|
||||
META_FB_APPID = '142105433189339'
|
||||
|
|
|
@ -16,3 +16,5 @@ DATABASES['default'] = {
|
|||
|
||||
STATIC_URL = 'https://cdn.00dani.me/'
|
||||
MEDIA_URL = STATIC_URL + 'media/'
|
||||
META_SITE_DOMAIN = '00dani.me'
|
||||
META_FB_APPID = '145311792869199'
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
{% load compress favtags lemoncurry_tags static %}<!doctype html>
|
||||
{% load compress favtags lemoncurry_tags meta static %}<!doctype html>
|
||||
<html lang="en" class="{% block html_class %}{% endblock %}">
|
||||
<head>
|
||||
<head{% meta_namespaces %}>
|
||||
<title class="p-name">{% site_name %}</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
||||
{% include 'meta/meta.html' %}
|
||||
|
||||
{% placeFavicon %}
|
||||
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue