Add library section, change date filter, update navs
This commit is contained in:
parent
acb35d5dac
commit
3b9967213c
|
@ -4,8 +4,8 @@ const { DateTime } = require("luxon");
|
|||
module.exports = function (eleventyConfig) {
|
||||
eleventyConfig.addPlugin(eleventyNavigationPlugin);
|
||||
|
||||
eleventyConfig.addFilter("postDate", (dateObj) => {
|
||||
return DateTime.fromJSDate(dateObj).toFormat("y'-'LL'-'dd' at 'T");
|
||||
eleventyConfig.addFilter("formatDate", (dateObj) => {
|
||||
return DateTime.fromJSDate(dateObj).toFormat("y'-'LL'-'dd");
|
||||
});
|
||||
|
||||
eleventyConfig.addPassthroughCopy("./src/css/**/*.css");
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<footer class="footer-main">
|
||||
<footer class="footer-main"><p>
|
||||
Made with <a href="https://www.11ty.dev/">11ty</a>.
|
||||
{% if page.date %}<i>Last updated on {{ page.date | postDate }}</i>{% endif %}
|
||||
LOCALHOST
|
||||
</footer>
|
||||
{% if page.date %}<i>
|
||||
Last updated on <time datetime="{{ page.date | formatDate }}">{{ page.date | formatDate }}</time>.
|
||||
</i>{% endif %}
|
||||
</p></footer>
|
|
@ -1,4 +1,4 @@
|
|||
<header class="header_main">
|
||||
<header class="banner">
|
||||
<a class="logo" href="/main/">{{ meta.siteName }}</a>
|
||||
<nav class="navbar">{{ collections.all | eleventyNavigation | eleventyNavigationToHtml | safe }}</nav>
|
||||
</header>
|
|
@ -181,7 +181,7 @@ article :last-child {
|
|||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
header.header_main {
|
||||
header.banner {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
@ -219,10 +219,8 @@ footer.footer-main {
|
|||
margin: auto;
|
||||
margin-bottom: 1em;
|
||||
transform: rotate(2deg);
|
||||
border: 4px solid #e7e2cc;
|
||||
background: white;
|
||||
box-shadow: 4px 4px 0px rgb(183, 181, 172);
|
||||
padding: 8px;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
max-width: 288px;
|
||||
|
@ -234,11 +232,4 @@ footer.footer-main {
|
|||
}
|
||||
}
|
||||
|
||||
.sigil {
|
||||
display: inline;
|
||||
image-rendering: crisp-edges;
|
||||
vertical-align: text-bottom;
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=global.css.map */
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"sourceRoot":"","sources":["../scss/_colors.scss","../scss/_fonts.scss","../scss/global.scss","../scss/_mixins.scss"],"names":[],"mappings":"AACA;;AAAA;AAAA;;AAAA;AAOA;AAAA;AAAA;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACRA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAaA;EACE;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;;AAIF;EACE;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;;AAKF;EACE;EACA;EACA;EACA;;ACpDF;;AAAA;AAAA;;AAAA;AASA;;AAAA;AAAA;;AAAA;AAYA;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;AAAA;EAEE;;AAEA;AAAA;EACE;EACA;EACA;EACA;EACA,OA7BC;EA8BD;EACA;;ACrCF;ED0BF;AAAA;IAeI;IACA;IACA;IACA;;;AAGF;AAAA;AAAA;AAAA;EAEE;EACA;;AAGF;AAAA;EACE;EACA;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAME;;AChEF;ED0DA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;IAQI;;;AAIJ;AAAA;EACE;;AAGF;AAAA;EACE;;AAGF;AAAA;EACE;;AAGF;AAAA;EACE;;;AAIJ;EACE;;;AAGF;EACE;EACA;;;AAGF;AAAA;EAEE;;;AAGF;AAAA;AAAA;EAGE;EACA;EACA;;;AAGF;EACE;;AAEA;EACE;;;AAIJ;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;ACpIA;ED0HF;IAYI;IACA;;;;AAIJ;EACE;EACA;EACA;EACA","file":"global.css"}
|
||||
{"version":3,"sourceRoot":"","sources":["../scss/_colors.scss","../scss/_fonts.scss","../scss/global.scss","../scss/_mixins.scss"],"names":[],"mappings":"AACA;;AAAA;AAAA;;AAAA;AAOA;AAAA;AAAA;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACRA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAaA;EACE;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;;AAIF;EACE;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;;AAKF;EACE;EACA;EACA;EACA;;ACpDF;;AAAA;AAAA;;AAAA;AASA;;AAAA;AAAA;;AAAA;AAYA;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;AAAA;EAEE;;AAEA;AAAA;EACE;EACA;EACA;EACA;EACA,OA7BC;EA8BD;EACA;;ACpCF;EDyBF;AAAA;IAeI;IACA;IACA;IACA;;;AAGF;AAAA;AAAA;AAAA;EAEE;EACA;;AAGF;AAAA;EACE;EACA;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAME;;AC/DF;EDyDA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;IAQI;;;AAIJ;AAAA;EACE;;AAGF;AAAA;EACE;;AAGF;AAAA;EACE;;AAGF;AAAA;EACE;;;AAIJ;EACE;;;AAGF;EACE;EACA;;;AAGF;AAAA;EAEE;;;AAGF;AAAA;AAAA;EAGE;EACA;EACA;;;AAGF;EACE;;AAEA;EACE;;;AAIJ;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;ACjIA;EDyHF;IAUI;IACA","file":"global.css"}
|
|
@ -1 +1 @@
|
|||
{"version":3,"sourceRoot":"","sources":["../scss/_colors.scss","../scss/_fonts.scss","../scss/landing.scss","../scss/_mixins.scss"],"names":[],"mappings":"AACA;;AAAA;AAAA;;AAAA;AAOA;AAAA;AAAA;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACRA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAaA;EACE;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;;AAIF;EACE;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;;AAKF;EACE;EACA;EACA;EACA;;ACnDF;;AAAA;AAAA;;AAAA;AAWA;EAEI;EACA;EAEF;;;AAGF;EACE;EACA;EACA;EACA,KAjBO;EAkBP;;AChBA;EDWF;IAQI;IACA;IACA;;;;AAIJ;EACE;EACA,KA7BO;EA8BP;EACA;EACA;;AC9BA;EDyBF;IAQI,WAlCQ;;;AAqCV;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;;AC5CJ;EDoCA;IAYI;IACA,YAjDO;IAkDP;IACA;IACA;;;AAGF;EACE;;AACA;EACE;;AAIJ;EACE;;AAGF;EACE;;AAGF;AAAA;EAEE;EACA;EACA;;AAIJ;EACE;EACA;;AAEA;EACE;;;AAKN;EACE;EACA;EACA;;AC3FA;EDwFF;IAMI,QA9FS;IA+FT;IACA;;;AAGF;EACE;EACA;EACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EACE;EACA;EACA;EACA;;AC3HF;ED0GF;IAqBI","file":"landing.css"}
|
||||
{"version":3,"sourceRoot":"","sources":["../scss/_colors.scss","../scss/_fonts.scss","../scss/landing.scss","../scss/_mixins.scss"],"names":[],"mappings":"AACA;;AAAA;AAAA;;AAAA;AAOA;AAAA;AAAA;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACRA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAaA;EACE;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;;AAIF;EACE;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;;AAKF;EACE;EACA;EACA;EACA;;ACnDF;;AAAA;AAAA;;AAAA;AAWA;EAEI;EACA;EAEF;;;AAGF;EACE;EACA;EACA;EACA,KAjBO;EAkBP;;ACfA;EDUF;IAQI;IACA;IACA;;;;AAIJ;EACE;EACA,KA7BO;EA8BP;EACA;EACA;;AC7BA;EDwBF;IAQI,WAlCQ;;;AAqCV;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;;AC3CJ;EDmCA;IAYI;IACA,YAjDO;IAkDP;IACA;IACA;;;AAGF;EACE;;AACA;EACE;;AAIJ;EACE;;AAGF;EACE;;AAGF;AAAA;EAEE;EACA;EACA;;AAIJ;EACE;EACA;;AAEA;EACE;;;AAKN;EACE;EACA;EACA;;AC1FA;EDuFF;IAMI,QA9FS;IA+FT;IACA;;;AAGF;EACE;EACA;EACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EACE;EACA;EACA;EACA;;AC1HF;EDyGF;IAqBI","file":"landing.css"}
|
|
@ -4,7 +4,7 @@ layout: layouts/page.njk
|
|||
date: Last Modified
|
||||
eleventyNavigation:
|
||||
key: Extra
|
||||
order: 111
|
||||
order: 100
|
||||
---
|
||||
|
||||
Placeholder
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
layout: layouts/landing.njk
|
||||
date: Last Modified
|
||||
entry: /main/
|
||||
eleventyNavigation:
|
||||
key: Landing
|
||||
order: 200
|
||||
---
|
||||
|
||||
# Gil's Nexus
|
||||
|
|
6
src/lib/index.md
Normal file
6
src/lib/index.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: Library
|
||||
eleventyNavigation:
|
||||
key: Library
|
||||
order: 2
|
||||
---
|
|
@ -11,6 +11,6 @@ eleventyNavigation:
|
|||
{%- for poem in collections.poems reversed -%}
|
||||
{% if forloop.first == true %}<ul>{% endif %}
|
||||
<li><a href="{{ poem.url }}">{{ poem.data.title }}</a>
|
||||
— <i>updated {{ poem.date | postDate }}</i></li>
|
||||
— <i>updated <time datetime="{{ poem.date | formatDate }}">{{ poem.date | formatDate }}</time></i></li>
|
||||
{% if forloop.last == true %}</ul>{% endif %}
|
||||
{%- endfor -%}
|
||||
|
|
|
@ -11,7 +11,12 @@ $breakpoints: (
|
|||
$mq-breakpoint: map-get($mq-breakpoints, $mq-breakpoint);
|
||||
}
|
||||
|
||||
// Place everything inside this mixin under the appropriate @media rule
|
||||
@media screen and (min-width: #{$mq-breakpoint}) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin markdown {
|
||||
|
||||
}
|
||||
|
|
|
@ -98,7 +98,7 @@ article {
|
|||
}
|
||||
}
|
||||
|
||||
header.header_main {
|
||||
header.banner {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
@ -137,10 +137,8 @@ footer.footer-main {
|
|||
margin: auto;
|
||||
margin-bottom: 1em;
|
||||
transform: rotate(2deg);
|
||||
border: 4px solid #e7e2cc;
|
||||
background: white;
|
||||
box-shadow: 4px 4px 0px #{colors.$base-300};
|
||||
padding: 8px;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
max-width: 288px;
|
||||
|
@ -149,10 +147,3 @@ footer.footer-main {
|
|||
margin: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
.sigil {
|
||||
display: inline;
|
||||
image-rendering: crisp-edges;
|
||||
vertical-align: text-bottom;
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"eleventyExcludeFromCollections": true
|
||||
}
|
Loading…
Reference in a new issue