Commit 2528dcd2 authored by Pierre Paul's avatar Pierre Paul

changing default layout and default init values

parent ab825f6f
{
"full_name": "Steven Loria",
"email": "sloria1@gmail.com",
"github_username": "sloria",
"full_name": "Pierre Paul",
"email": "info@pierre-paul.com",
"github_username": "pierrepaul",
"project_name": "My Flask App",
"app_name": "myflaskapp",
"project_short_description": "A flasky app.",
......
......@@ -11,7 +11,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.app_name}}.git"
"url": "git+https://git.pierre-paul.com/{{cookiecutter.github_username}}/{{cookiecutter.app_name}}.git"
},
"author": "{{cookiecutter.full_name}}",
"license": "BSD-3-Clause",
......@@ -21,7 +21,7 @@
},
"homepage": "https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.app_name}}#readme",
"dependencies": {
"bootstrap": "^3.3.7",
"bootstrap": "^4.0.2",
"font-awesome": "^4.7.0",
"jquery": "^3.2.1"
},
......
{% raw %}
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
......@@ -8,60 +7,53 @@
<head>
<meta charset="utf-8">
<title>{% block page_title %}
{% endraw %}
{{ cookiecutter.project_name }}
{% raw %}
{% endblock %}
</title>
<title>{% block page_title %}{% endraw %}{{ cookiecutter.project_name }}{% raw %}{% endblock %}</title>
<meta name="description" content="{% block meta_description %}{% endblock %}">
<meta name="author" content="{% block meta_author %}{% endblock %}">
<!-- Mobile viewport optimized: h5bp.com/viewport -->
<meta name="viewport" content="width=device-width">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{{ stylesheet_tag('main_css') | safe }}
{% block css %}{% endblock %}
</head>
<body class="{% block body_class %}{% endblock %}">
{% block body %}
{% with form=form %}
{% include "nav.html" %}
{% endwith %}
<header>{% block header %}{% endblock %}</header>
<div class="{% block content_class %}container{% endblock content_class %}">
<div role="main">
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<div class="row">
<div class="col-md-12">
{% for category, message in messages %}
<div class="alert alert-{{ category }}">
<a class="close" title="Close" href="#" data-dismiss="alert">&times;</a>
{{message}}
</div><!-- end .alert -->
{% endfor %}
</div><!-- end col-md -->
</div><!-- end row -->
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
</div>
</div><!-- end container -->
<main class="col-md-9 ml-sm-auto col-lg-10 px-4" role="main">
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1>{% block page_title_h1 %}{% endblock %}</h1>
<div class="btn-toolbar mb-2 mb-md-0">
{% block tools %}{% endblock %}
</div>
</div>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<div class="row">
<div class="col-12">
{% for category, message in messages %}
<div class="alert alert-{{ category }}">
<a class="close" title="Close" href="#" data-dismiss="alert">&times;</a>
{{message}}
</div><!-- end .alert -->
{% endfor %}
</div><!-- end col-md -->
</div><!-- end row -->
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
</main>
{% include "footer.html" %}
<!-- JavaScript at the bottom for fast page loading -->
{{ javascript_tag('main_js') | safe }}
{% block js %}{% endblock %}
<!-- end scripts -->
{% endblock %}
</body>
</html>
{% endraw %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment