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

This commit is contained in:
ahmadbilalkhalid 2020-03-11 11:26:47 +05:00
parent d8968f1e44
commit 5affc2d085
2 changed files with 19 additions and 8 deletions

1
.gitignore vendored
View file

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

View file

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