Initial commit
This commit is contained in:
commit
02ad5fed3d
17 changed files with 1232 additions and 0 deletions
48
mysite/templates/base.html
Normal file
48
mysite/templates/base.html
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{% load cms_tags menu_tags sekizai_tags %}
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{% block title %}This is my new project home page{% endblock title %}</title>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<link href="/static/style.css" rel="stylesheet">
|
||||
<style type="text/css">
|
||||
.nav {
|
||||
padding-left: 0;
|
||||
}
|
||||
.nav li {
|
||||
display: inline;
|
||||
list-style-type: none;
|
||||
padding-right: 20px;
|
||||
}
|
||||
.container {
|
||||
max-width: 940px;
|
||||
margin: 0 auto
|
||||
}
|
||||
.content {
|
||||
float: left;
|
||||
width: 80%;
|
||||
}
|
||||
.sidebar {
|
||||
float: left;
|
||||
width: 20%;
|
||||
}
|
||||
</style>
|
||||
{% render_block "css" %}
|
||||
</head>
|
||||
<body>
|
||||
{% cms_toolbar %}
|
||||
<div class="container">
|
||||
<h1>{% page_attribute "page_title" %}</h1>
|
||||
<nav id="page-nav">
|
||||
<label for="hamburger">☰</label>
|
||||
<input type="checkbox" id="hamburger"/>
|
||||
|
||||
<ul class="nav">
|
||||
{% show_menu 0 100 100 100 %}
|
||||
</ul>
|
||||
</nav>
|
||||
{% block content %}{% endblock content %}
|
||||
</div>
|
||||
{% render_block "js" %}
|
||||
</body>
|
||||
</html>
|
||||
8
mysite/templates/fullwidth.html
Normal file
8
mysite/templates/fullwidth.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{% extends "base.html" %}
|
||||
{% load cms_tags %}
|
||||
|
||||
{% block title %}{% page_attribute "page_title" %}{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
{% placeholder "content" %}
|
||||
{% endblock content %}
|
||||
13
mysite/templates/sidebar_left.html
Normal file
13
mysite/templates/sidebar_left.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{% extends "base.html" %}
|
||||
{% load cms_tags %}
|
||||
|
||||
{% block title %}{% page_attribute "page_title" %}{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<div class="sidebar">
|
||||
{% placeholder "sidebar" %}
|
||||
</div>
|
||||
<div class="content">
|
||||
{% placeholder "content" %}
|
||||
</div>
|
||||
{% endblock content %}
|
||||
13
mysite/templates/sidebar_right.html
Normal file
13
mysite/templates/sidebar_right.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{% extends "base.html" %}
|
||||
{% load cms_tags %}
|
||||
|
||||
{% block title %}{% page_attribute "page_title" %}{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<div class="content">
|
||||
{% placeholder "content" %}
|
||||
</div>
|
||||
<div class="sidebar">
|
||||
{% placeholder "sidebar" %}
|
||||
</div>
|
||||
{% endblock content %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue