Restructure template files
This commit is contained in:
parent
a9e935ed0e
commit
d7d3733ec3
|
@ -12,5 +12,3 @@
|
|||
<script src="{{ '/js/bootstrap.bundle.min.js'|url }}"></script>
|
||||
<!-- Core theme JS-->
|
||||
<script src="{{ '/js/scripts.js'|url }}"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -6,36 +6,15 @@
|
|||
<div class="container px-4 px-lg-5">
|
||||
{% for project in projects %}
|
||||
{% set image = project.attachments.images.first() %}
|
||||
{% if project.type %}
|
||||
<!-- Project One Row-->
|
||||
<div class="row gx-0 mb-5 mb-lg-0 justify-content-center">
|
||||
<div class="col-lg-6"><img class="img-fluid" src="{{ image|url }}" alt="project image" /></div>
|
||||
<div class="col-lg-6">
|
||||
<div class="bg-black text-center h-100 project">
|
||||
<div class="d-flex h-100">
|
||||
<div class="project-text w-100 my-auto text-center text-lg-left">
|
||||
<h4 class="text-white">{{ project.title }}</h4>
|
||||
<p class="mb-0 text-white-80">{{ project.body }}</p>
|
||||
<hr class="d-none d-lg-block mb-0 ms-0" />
|
||||
<a href="https://littleroot.net/weblate/engage/{{project.weblate}}/">
|
||||
<img src="https://littleroot.net/weblate/widgets/{{project.weblate}}/-/svg-badge.svg" alt="Translation status" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
<!-- Project Two Row-->
|
||||
<div class="row gx-0 mb-5 mb-md-0 justify-content-center">
|
||||
<div class="col-lg-6"><img class="img-fluid" src="{{ image|url }}" alt="project image" /></div>
|
||||
<div class="col-lg-6 order-lg-first">
|
||||
<div class="col-lg-6 {% if project.type %} order-lg-first {% endif %} ">
|
||||
<div class="bg-black text-center h-100 project">
|
||||
<div class="d-flex h-100">
|
||||
<div class="project-text w-100 my-auto text-center text-lg-right">
|
||||
<div class="project-text w-100 my-auto text-center">
|
||||
<h4 class="text-white">{{ project.title }}</h4>
|
||||
<p class="mb-0 text-white-80">{{ project.body }}</p>
|
||||
<hr class="d-none d-lg-block mb-0 me-0" />
|
||||
<hr class="d-none d-lg-block mb-0" />
|
||||
<a href="https://littleroot.net/weblate/engage/{{project.weblate}}/">
|
||||
<img src="https://littleroot.net/weblate/widgets/{{project.weblate}}/-/svg-badge.svg" alt="Translation status" />
|
||||
</a>
|
||||
|
@ -44,7 +23,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
{% include 'meta.html' %}
|
||||
<body id="page-top">
|
||||
{% block page %}
|
||||
{% include 'masterhead.html' %}
|
||||
{% include 'about.html' %}
|
||||
{% block projects %}{% endblock %}
|
||||
{% endblock %}
|
||||
{% include 'footer.html' %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
||||
|
@ -14,4 +12,3 @@
|
|||
<!-- Core theme CSS (includes Bootstrap)-->
|
||||
<link href="{{ '/css/styles.css'|asseturl }}" rel="stylesheet" />
|
||||
</head>
|
||||
<body id="page-top">
|
||||
|
|
Loading…
Reference in a new issue