Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"author_name": "Your Name",
"email": "Your email",
"description": "A short description of the project.",
"use_bootstrap_4": "yes",
"year": "Current year",
"with_documentation": "yes"
}
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
/*! project specific CSS goes here. */
{% if cookiecutter.use_bootstrap_4 == 'yes' %}
body {
padding-top: 5rem;
}
.starter-template {
padding: 3rem 1.5rem;
text-align: center;
}
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,60 @@
<link rel="icon" type="image/gif" href="{% static 'img/favicon.gif' %}">

{% block css %}
{% endraw %}{% if cookiecutter.use_bootstrap_4 == 'yes' %}{% raw %}
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" integrity="sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd" crossorigin="anonymous">
{% endraw %}{% endif %}{% raw %}
<link href="{% static 'css/styles.css' %}" rel="stylesheet">
{% endblock %}

</head>

<body>
{% endraw %}{% if cookiecutter.use_bootstrap_4 == 'yes' %}{% raw %}
<nav class="navbar navbar-fixed-top navbar-dark bg-inverse">
<a class="navbar-brand" href="/">{% endraw %}{{cookiecutter.project_name}}{% raw %}</a>
<ul class="nav navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="/">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Contact</a>
</li>
</ul>
</nav>
{% endraw %}{% endif %}{% raw %}
<div class="container">

{% block content %}
{% endraw %}{% if cookiecutter.use_bootstrap_4 == 'yes' %}{% raw %}
<div class="starter-template">
<h1>{% endraw %}{{cookiecutter.project_name}}{% raw %} base template</h1>
<p class="lead">Use this document as a way to quick start any new project.</p>
</div>
{% endraw %}{% else %}{% raw %}
<p>Use this document as a way to quick start any new project.</p>
{% endraw %}{% endif %}{% raw %}
{% endblock content %}

</div> <!-- /container -->


<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
{% block javascript %}
{% endraw %}{% if cookiecutter.use_bootstrap_4 == 'yes' %}{% raw %}
<!-- Latest JQuery -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>

<!-- Tether - a requirement for Bootstrap tooltips -->
<script src="//cdnjs.cloudflare.com/ajax/libs/tether/1.2.0/js/tether.min.js"></script>

<!-- Latest compiled and minified JavaScript -->
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/js/bootstrap.min.js" integrity="sha384-vZ2WRJMwsjRMW/8U7i6PWi6AlO1L79snBrmgiDpgIWJ82z8eA5lenwvxbMV1PAh7" crossorigin="anonymous"></script>
{% endraw %}{% endif %}{% raw %}
<script src="{% static 'js/scripts.js' %}"></script>
{% endblock javascript %}
</body>
Expand Down