Browse Source

added title block in templates

master
Holger Frey 7 years ago
parent
commit
8d9e320f0a
  1. 2
      ordr2/templates/layout.jinja2
  2. 2
      ordr2/templates/mytemplate.jinja2

2
ordr2/templates/layout.jinja2

@ -14,7 +14,7 @@
<!-- Custom styles for this scaffold --> <!-- Custom styles for this scaffold -->
<link href="{{ request.static_url('ordr2:static/style.css') }}" rel="stylesheet"> <link href="{{ request.static_url('ordr2:static/style.css') }}" rel="stylesheet">
<title>Cookiecutter Alchemy project for the Pyramid Web Framework</title> <title>{% block title %} {% endblock title %}</title>
</head> </head>
<body> <body>

2
ordr2/templates/mytemplate.jinja2

@ -1,5 +1,7 @@
{% extends "layout.jinja2" %} {% extends "layout.jinja2" %}
{% block title %} ordr | Welcome {% endblock title%}
{% block content %} {% block content %}
<div class="col-12"> <div class="col-12">
<h1><span class="font-semi-bold">Pyramid</span> <span class="smaller">Alchemy project</span></h1> <h1><span class="font-semi-bold">Pyramid</span> <span class="smaller">Alchemy project</span></h1>