mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-22 17:47:08 +03:00
Unescape cookiecutter vars in base.html template.
Cookiecutter variables don't get replaced inside a raw block, so we need to turn off raw temporarily.
This commit is contained in:
parent
04e99e392b
commit
328a92310a
|
@ -2,7 +2,7 @@
|
|||
<html lang="en" ng-app>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{% block title %}{{ project_name }}{% endblock title %}</title>
|
||||
<title>{% block title %}{% endraw %}{{ cookiecutter.project_name }}{% raw %}{% endblock title %}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
@ -35,7 +35,7 @@
|
|||
|
||||
<div class="header navbar">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="/">{{cookiecutter.repo_name}}</a>
|
||||
<a class="navbar-brand" href="/">{% endraw %}{{ cookiecutter.repo_name }}{% raw %}</a>
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="active"><a href="{% url 'home' %}">Home</a></li>
|
||||
<li><a href="{% url 'about' %}">About</a></li>
|
||||
|
|
Loading…
Reference in New Issue
Block a user