Keep only pinned post in carousel, add join page, update some margins

This commit is contained in:
Mario Romero 2023-08-28 18:07:26 -04:00
parent 9f2dcf1054
commit d544b4d5c1
10 changed files with 30 additions and 17 deletions

View File

@ -50,7 +50,7 @@
.carousel {
position: relative;
height: 670px;
width: 1920px;
width: 100%;
margin: 0px auto;
overflow: hidden;
}

View File

@ -5,7 +5,7 @@
.post-banner {
position: relative;
width: 1920px;
width: 100%;
height: 670px;
}

View File

@ -1,3 +1,7 @@
.post {
margin: 0 60px;
}
.post-header {
padding: 5vh 0;
}

View File

@ -29,6 +29,11 @@ body {
--pagefind-ui-font: var(--font-family);
}
.body-content {
padding: 30px 0px;
margin: 0px 30px;
}
main {
& > :first-child {
margin-top: 0;

View File

@ -1,5 +1,5 @@
export const layout = "layouts/archive.njk";
export const title = "Archive";
export const title = "Archivo";
export default function* ({ search, paginate }) {
const posts = search.pages("type=posts", "date=desc");

View File

@ -1,6 +1,6 @@
---
layout: layouts/post.njk
title: Chapters
title: Capitulos
templateClass: tmpl-post
menu:
visible: true

View File

@ -2,29 +2,22 @@
layout: layouts/home.njk
menu:
visible: true
title: Home
title: IEEE Rama Estudiantil
order: 0
---
<div >
{% set postslist = search.pages("type=posts", "date=desc", 3) %}
{% set postslist = search.pages("type=posts pinned=true", "date=desc", 3) %}
{%if postslist.length %}
{% include "templates/carousel.njk" %}
{% endif %}
<div class="body-content">
<h1>Latest {% if postslist.length == 1 %}Post{% else %}{{ postslist.length }} Posts{% endif %}</h1>
{% include "templates/postslist.njk" %}
<hr>
{% set postslist = search.pages("pinned=true") %}
{%if postslist.length %}
<h2>Pinned Post:</h1>
{% include "templates/postslist.njk" %}
<hr>
{% endif %}
<p>More posts can be found in <a href="/posts/">the archive</a>.</p>
</div>

9
src/content/join.njk Normal file
View File

@ -0,0 +1,9 @@
---
layout: layouts/post.njk
menu:
visible: true
title: Unete
order: 4
---
TODO: Formulario

View File

@ -5,6 +5,7 @@ date: 2023-08-25
tags:
- chipusm sscs-cas-eds-sb
image: img/posts/20230701_canelos_photo_1.jpg
pinned: true
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam placerat pulvinar sagittis. Suspendisse commodo, erat ac tincidunt bibendum, tortor quam imperdiet eros, at vestibulum eros urna a eros. Phasellus quis placerat magna. Donec convallis placerat risus, eu venenatis felis dignissim vel. Praesent vel varius urna. Suspendisse potenti. Phasellus consequat elementum dui nec accumsan. Mauris suscipit lorem dolor, eu ultrices orci vulputate id.

View File

@ -5,6 +5,7 @@ date: 2023-08-25
tags:
- utfsm-sb
image: img/posts/20230825_rnr.jpg
pinned: true
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam placerat pulvinar sagittis. Suspendisse commodo, erat ac tincidunt bibendum, tortor quam imperdiet eros, at vestibulum eros urna a eros. Phasellus quis placerat magna. Donec convallis placerat risus, eu venenatis felis dignissim vel. Praesent vel varius urna. Suspendisse potenti. Phasellus consequat elementum dui nec accumsan. Mauris suscipit lorem dolor, eu ultrices orci vulputate id.