Skip to content

Commit

Permalink
Merge pull request #118 from cstby/pdfs-index
Browse files Browse the repository at this point in the history
Add pdfs.hbs [WIP]
  • Loading branch information
alifeee authored Oct 21, 2024
2 parents 6545cbc + ddb5ade commit ece5040
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 0 deletions.
1 change: 1 addition & 0 deletions _data/sona.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
site: https://liputenpo.org
linluwi-pi-pdf-ale: https://github.com/lipu-tenpo/liputenpo.org/tree/main/pdfs
ni-li-seme:
- question: "What is this?"
answer: "Hello! You’re looking at the website for lipu tenpo, a magazine written in Toki Pona. Maybe you’re new and want to know more about this language. Great! This page hopes to answer some of your questions."
Expand Down
61 changes: 61 additions & 0 deletions pdfs.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
layout: page
title: "lipu tenpo - pdfs"
css:
- stylesheet-index.css
---

<div class="h2">
<h2 id="pdf">
lipu
</h2>
</div>

<section id="introduction">
<p>o kama pona!</p>
<p>o lukin e lipu ale lon ni.</p>
<p>o kama jo e lipu ale <a href="{{sona.linluwi-pi-pdf-ale}}">lon ni</a>.</p>
</section>

<div class="lipu-flex">
<section id="lipu_ale_pdf">
{{#each lipu_ale}}
<div>
<article class="lipuwan lipuwan_pdf">
{{{eleventyImage (appendString "pdfs/" cover_image) "" title 400}}}
<h3 id="{{ this.title }}">
{{ this.title }}
</h3>
<span class="date">
<time datetime="{{ asReadableDate this.date }}">{{ asReadableDate this.date }}</time>
</span>
<div class="pdf-links">
{{#if this.pdf}}
<a href="{{this.pdf}}">
<span>lipu kule</span>
</a>
<br>
{{/if}}
{{#if this.pdf_pf}}
<a href="{{this.pdf_pf}}">
<span>lipu tawa ilo sitelen</span>
</a>
<br>
{{/if}}
{{#if this.pdf_bwpf}}
<a href="{{this.pdf_bwpf}}">
<span>lipu walo tawa ilo sitelen</span>
</a>
<br>
{{/if}}
{{#if this.pdf_sitelen_pona}}
<a href="{{this.pdf_sitelen_pona}}">
<span>lipu pi sitelen pona</span>
</a>
{{/if}}
</div>
</article>
</div>
{{/each}}
</section>
</div>
20 changes: 20 additions & 0 deletions public/stylesheet-index.css
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,23 @@
#lipu-nanpa-lon .jan-pali {
padding: 0 .5rem;
}

#lipu_ale_pdf {
padding: 3rem 2rem 2rem;
width: 100%;
max-width: 60rem;

display: grid;
grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
grid-gap: 4rem;
}

.lipuwan_pdf {
max-width: 13em;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
width: 100%;
}

0 comments on commit ece5040

Please sign in to comment.