1
0
mirror of https://github.com/GenderDysphoria/GenderDysphoria.fyi.git synced 2025-11-26 13:02:42 +00:00

Starting page content

This commit is contained in:
Jocelyn Badgley (Twipped)
2020-02-16 16:02:19 -08:00
parent 3793c0f363
commit 6a5d1569eb
22 changed files with 392 additions and 0 deletions

29
pages/titlecards.html Normal file
View File

@@ -0,0 +1,29 @@
{{#extend "layout"}}
{{#content "bodyAttributes"}}class="page-index"{{/content}}
{{#content "body"}}
<div class="card-grid" style="grid-auto-rows: unset;">
{{#each posts.all}}
<a class="titlecard-preview {{#each classes}}{{this}} {{/each}}" data-id="{{id}}">
<span>{{originalpath}}</span>
<img src="/images/filler.png" data-src="{{rev this.titlecard}}" alt="" defer>
</a>
{{/each}}
</div>
{{/content}}
{{#append 'postscripts'}}
<script src="https://cdnjs.cloudflare.com/ajax/libs/lozad.js/1.9.0/lozad.min.js"></script>
<script>
window.lozad('img[data-src]', {
rootMargin: '50% 0px', // syntax similar to that of CSS Margin
threshold: 0.5, // ratio of element convergence
}).observe(); // lazy loads elements with default selector as '.lozad'
</script>
{{/append}}
{{/extend}}