Use custom template to render meta tags properly
This commit is contained in:
parent
ec319bd286
commit
2490447f44
6 changed files with 60 additions and 5 deletions
36
tests/test_utils/templates/blog.html
Normal file
36
tests/test_utils/templates/blog.html
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{% load cms_tags static menu_tags sekizai_tags %}
|
||||
<!DOCTYPE html {% render_block 'html_extra' %}>
|
||||
<html>
|
||||
<head>
|
||||
<title>{% block title %}{% page_attribute 'title' %}{% endblock title %}</title>
|
||||
{% render_block "css" %}
|
||||
{% include "meta_mixin/meta.html" %}
|
||||
<style type="text/css">
|
||||
.nav {
|
||||
padding-left: 0;
|
||||
}
|
||||
.nav li {
|
||||
display: inline;
|
||||
list-style-type: none;
|
||||
padding-right: 20px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
Post
|
||||
{% cms_toolbar %}
|
||||
<div style="width: 940px; margin:0 auto">
|
||||
<ul class="nav">
|
||||
{% show_menu 0 100 100 100 %}
|
||||
</ul>
|
||||
{% block content %}
|
||||
{% placeholder "content" %}
|
||||
{% endblock content %}
|
||||
</div>
|
||||
{% render_block "js" %}
|
||||
{% with_data "js-script" as jsset %}
|
||||
{% for js in jsset %}<script type="text/javascript" src="{% static js %}"></script>{% endfor %}
|
||||
{% end_with_data %}
|
||||
{% render_block "js_end" %}
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue