Keep only pinned post in carousel, add join page, update some margins
This commit is contained in:
parent
9f2dcf1054
commit
d544b4d5c1
@ -50,7 +50,7 @@
|
||||
.carousel {
|
||||
position: relative;
|
||||
height: 670px;
|
||||
width: 1920px;
|
||||
width: 100%;
|
||||
margin: 0px auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
.post-banner {
|
||||
position: relative;
|
||||
width: 1920px;
|
||||
width: 100%;
|
||||
height: 670px;
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,7 @@
|
||||
.post {
|
||||
margin: 0 60px;
|
||||
}
|
||||
|
||||
.post-header {
|
||||
padding: 5vh 0;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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");
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
layout: layouts/post.njk
|
||||
title: Chapters
|
||||
title: Capitulos
|
||||
templateClass: tmpl-post
|
||||
menu:
|
||||
visible: true
|
||||
|
@ -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
9
src/content/join.njk
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
layout: layouts/post.njk
|
||||
menu:
|
||||
visible: true
|
||||
title: Unete
|
||||
order: 4
|
||||
---
|
||||
|
||||
TODO: Formulario
|
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user