create theme chocolate
This commit is contained in:
15
app/templates/themes/chocolate/_head.html
Normal file
15
app/templates/themes/chocolate/_head.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="description" content="{{ config.siteDescription }}">
|
||||
<meta name="author" content=" {{config.siteAuthor}} ">
|
||||
|
||||
<title> {{ config.siteTitle }} </title>
|
||||
|
||||
{% block css %} {% endblock %}
|
||||
<link href="/static/themes/chocolate/css/base.css" rel="stylesheet">
|
||||
<!-- Custom fonts for this template -->
|
||||
<link href="/static/themes/chocolate/css/menu.css" rel="stylesheet">
|
||||
<!-- Custom styles for this template -->
|
||||
<link href="/static/themes/chocolate/css/quill-editor.css" rel="stylesheet">
|
||||
|
||||
|
||||
23
app/templates/themes/chocolate/_nav.html
Normal file
23
app/templates/themes/chocolate/_nav.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<input class="menu-icon" type="checkbox" id="menu-icon" name="menu-icon"/>
|
||||
<label for="menu-icon"></label>
|
||||
<nav class="menu-bulle">
|
||||
<ul class="pt-5">
|
||||
<!-- Menu -->
|
||||
{% for item in menu.keys() %}
|
||||
{% if menu[item] is mapping %}
|
||||
<li class="nav-item">
|
||||
<h3> {{ item }} </h3>
|
||||
<ul class="pt-5">
|
||||
{% for subitem in menu[item].keys() %}
|
||||
<li class="nav-item "><a class="nav-link" href="{{menu[item][subitem]}}">{{ subitem }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
{% else %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ menu[item] }}"> {{ item }} </a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
12
app/templates/themes/chocolate/blocs/_simple_article.html
Normal file
12
app/templates/themes/chocolate/blocs/_simple_article.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<div class="{{ bloc.property }}" id="{{ bloc.name }}" style="{% include '_print_colors.css' %}">
|
||||
<div class="title">
|
||||
<h1 style="text-align:center;"> {{ bloc.title }} </h1>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="articles">
|
||||
<div class="content">
|
||||
{{ bloc.text|safe }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,23 @@
|
||||
<form method='POST' action='/edit/{{ bloc.name }}' >
|
||||
|
||||
|
||||
{{ form.csrf_token }}
|
||||
|
||||
|
||||
<div class="title">
|
||||
{{ form.title(col=3,value=bloc.title,
|
||||
class="form-control form-control-lg text-center") }}
|
||||
</div>
|
||||
<br/>
|
||||
<br/>
|
||||
<div class="articles">
|
||||
|
||||
{% include 'edit-tools/_form-base.html' %}
|
||||
<div class="content">
|
||||
{% include 'edit-tools/_editor-wysiwyg.html' %}
|
||||
</div>
|
||||
{% include 'edit-tools/_btn-save-cancel.html' %}
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% include 'edit-tools/_disable-modify-button.html' %}
|
||||
30
app/templates/themes/chocolate/ident-default.json
Normal file
30
app/templates/themes/chocolate/ident-default.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"config": {
|
||||
"theme": "chocolate",
|
||||
"siteTitle": "Le titre de mon site",
|
||||
"passwd" : "",
|
||||
"lastLogins": {}
|
||||
},
|
||||
"menu": {
|
||||
"Accueil ": "/",
|
||||
"Contact": "#texte1"
|
||||
},
|
||||
"publish": {
|
||||
"Address": "",
|
||||
"Port": "",
|
||||
"username": "",
|
||||
"folder": ""
|
||||
},
|
||||
"blocs": {
|
||||
"Texte1": {
|
||||
"name": "Texte1",
|
||||
"type": "simple_article",
|
||||
"title": "Mon Petit à moi",
|
||||
"property": "",
|
||||
"bg_color": "#000000",
|
||||
"fg_color": "#000000",
|
||||
"text": "<p class=\"ql-align-center\">Composez\u00a0votre\u00a0texte\u00a0libre\u00a0ici\u00a0!</p>"
|
||||
}
|
||||
},
|
||||
"publication_status": ""
|
||||
}
|
||||
0
app/templates/themes/chocolate/javascript.html
Normal file
0
app/templates/themes/chocolate/javascript.html
Normal file
14
app/templates/themes/chocolate/pages/simple_article.json
Normal file
14
app/templates/themes/chocolate/pages/simple_article.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"blocs": {
|
||||
"Texte1": {
|
||||
"name": "Texte1",
|
||||
"type": "simple_article",
|
||||
"title": "Mon Petit à moi",
|
||||
"property": "",
|
||||
"bg_color": "#000000",
|
||||
"fg_color": "#000000",
|
||||
"text": "<p class=\"ql-align-center\">Composez\u00a0votre\u00a0texte\u00a0libre\u00a0ici\u00a0!</p>"
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
4
app/templates/themes/chocolate/theme.json
Normal file
4
app/templates/themes/chocolate/theme.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"page_types": [ simple_page ],
|
||||
"blocs_types": [ simple_article ]
|
||||
}
|
||||
Reference in New Issue
Block a user