Browse Source

Fix incorrect html tag endings + Put every headline into its own if check

refactoring
meow 2 years ago
parent
commit
5affc2d085
  1. 1
      .gitignore
  2. 26
      templates/layout-2020.html

1
.gitignore

@ -1,2 +1,3 @@
venv/
.DS_Store
.idea/

26
templates/layout-2020.html

@ -78,14 +78,14 @@
<a class="nav-link" href="/u/offers/">OFFERS</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/blog/">OLD BLOG<a/>
<a class="nav-link" href="/blog/">OLD BLOG</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/u/blog/">BLOG<a/>
<a class="nav-link" href="/u/blog/">BLOG</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/u/projects/open-chat/">CHAT
WITH US<a/>
WITH US</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/u/events/">EVENTS</a>
@ -99,18 +99,28 @@
</form>
</div>
</nav>
{% if this.headline1 %}
{% if this.headline1 or this.headline2 or this.headline3 %}
<div class="jumbotron jumbotron-fluid" style="background-color: {{this.header_background_color}};">
<div class="container-fluid">
<h1 class="display-1 generic-header {{this.header_text_color}}" style="font-weight: bolder;">{{this.headline1}}</h1>
<h1 class="display-1 generic-header {{this.header_text_color}}" style="font-weight: bolder;">{{this.headline2}}</h1>
<h1 class="display-1 generic-header {{this.header_text_color}}" style="font-weight: bolder;">{{this.headline3}}</h1>
<h1 class="display-1 generic-header {{this.header_text_color}}" style="font-weight: bolder;">
{% if this.headline1 %}
{{this.headline1}}
{% endif %}
{% if this.headline2 %}
<br/>{{this.headline2}}
{% endif %}
{% if this.headline3 %}
<br/>{{this.headline3}}
{% endif %}
</h1>
</div>
</div>
{% else %}
<div class="position-relative overflow-hidden p-3 p-md-5 m-md-3 text-center bg-light">
<div class="col-md-5 p-lg-5 mx-auto my-5">
<h1 class="display-4 font-weight-normal">{{ self.title() }}
<h1 class="display-4 font-weight-normal">{{ self.title() }}</h1>
<p class="lead font-weight-normal">
{% block subtitle %}{% endblock %}
</p>

Loading…
Cancel
Save