forked from 00dani/lemoncurry
Properly load the site name in the template, oops
This commit is contained in:
parent
55abf1780e
commit
58d446f711
3 changed files with 7 additions and 3 deletions
|
@ -124,3 +124,7 @@ USE_TZ = True
|
|||
# https://docs.djangoproject.com/en/1.11/howto/static-files/
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
|
||||
# Settings specific to lemoncurry
|
||||
LEMONCURRY_SITE_NAME = '00dani.me'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{% load lemoncurry_tags static %}<!doctype html>
|
||||
<html lang="en" class="{% block html_class %}{% endblock %}">
|
||||
<head>
|
||||
<title class="p-name">{{ site_name }}</title>
|
||||
<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" />
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
|||
<body>
|
||||
<header>
|
||||
<nav class="navbar navbar-expand-md navbar-dark">
|
||||
<a class="navbar-brand" href="{% url 'home:index' %}">Site</a>
|
||||
<a class="navbar-brand" href="{% url 'home:index' %}">{% site_name %}</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar"
|
||||
aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
|
|
|
@ -5,4 +5,4 @@ register = template.Library()
|
|||
|
||||
@register.simple_tag
|
||||
def site_name():
|
||||
return settings.SITE_NAME
|
||||
return settings.LEMONCURRY_SITE_NAME
|
||||
|
|
Loading…
Reference in a new issue