Attempt auto left-right

pull/1/head
HackerNCoder 1 month ago
parent 0869b5dc8e
commit 36b8e910c7
  1. 4
      TODO.md
  2. 2
      content/butterflysoup/contents.lr
  3. 2
      content/lucahboad/contents.lr
  4. 4
      models/project.ini
  5. 6
      templates/index.html

@ -1,5 +1 @@
Navbar is transparent when not scrolled, doesn't work on pages that are white
Auto projects left-right, should be doable, just keep an i and if /2: right
Header should change based on page. E.g: Don't show "Join us" and "Projects" if not on index, make for devs marked when on that page

@ -1,7 +1,5 @@
sort_key: 1
---
type: true
---
title: Butterfly Soup
---
body:

@ -1,7 +1,5 @@
sort_key: 0
---
type: false
---
title: Lucah Born Of A Dream
---
body:

@ -9,10 +9,6 @@ order_by = _id
label = Sort order
type = sort_key
[fields.type]
label = Type
type = boolean
[fields.title]
label = Title
type = string

@ -5,11 +5,12 @@
<!-- Projects-->
<section class="projects-section bg-light" id="projects">
<div class="container px-4 px-lg-5">
{% for project in this.children %}
{% leftOrRight = 1 %}
{% for project in this.children %}
{% set image = project.attachments.images.first() %}
<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 {% if not project.type %} order-lg-first {% endif %} ">
<div class="col-lg-6 {% if leftOrRight is divisibleby 2 %} order-lg-first {% endif %} ">
<div class="bg-black text-center h-100 project">
<div class="d-flex h-100">
<div class="my-4 my-lg-auto w-100 text-center">
@ -20,6 +21,7 @@
</div>
</div>
</div>
{% i = i + 1 %}
{% endfor %}
</div>
</section>

Loading…
Cancel
Save