Skip to content

Commit 2d46363

Browse files
committed
20.9
[general] - better breadcrumbs styling - new: subtitles - tweak footer [questions] - better styling - add more questions [projects] - fix descriptions - change mier.info new source [index] - add new background vid
1 parent 9f192b0 commit 2d46363

14 files changed

Lines changed: 59 additions & 18 deletions

File tree

.eleventy.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ module.exports = function (eleventyConfig) {
107107
console.log(`unable to produce breadcrumbs for ${targetName}.`);
108108
return '';
109109
}
110-
let html = `<nav aria-label="breadcrumbs" id="breadcrumbs">$ <a href="/">/</a>`;
110+
let html = `<nav aria-label="breadcrumbs" id="breadcrumbs">$ <a href="/" id="indx-btn">/</a>`;
111111

112112

113113
if (currentPage.parent) {
@@ -126,14 +126,14 @@ module.exports = function (eleventyConfig) {
126126
eleventyConfig.addShortcode("qka", function(data) {
127127
let template = ""
128128
data.forEach((d, i) => {
129-
let sources = d.s.map(s => `<li><a href="${s}">${s}</a></li>`).join(' ')
130-
template += `
131-
<div class="doubt hoverborder">
132-
<span class="question">${i+1}. ${d.q}</span>
133-
<span class="answer">${d.a}</span>
134-
<span class="sources">sources: <br>${sources}</span>
135-
<span class="bottom">keywords: <code>${d.k}</code>, date asked: ${d.d}</span>
136-
</div>`
129+
let sources = d.s ? d.s.map(s => `<li><a href="${s}">${s}</a></li>`).join(' ') : null;
130+
template += `<div class="doubt hoverborder">
131+
<span class="question">${i+1}. ${d.q}</span>`;
132+
if (d.a) template += `<span class="answer">${d.a}</span>`
133+
if (sources) template += `<span class="sources">sources: <br>${sources}</span>`
134+
if (d.k && d.d) template += `<span class="bottom">keywords: <code>${d.k}</code>, date asked: ${d.d}</span>`
135+
else console.log('warning: question missing keywords or date')
136+
template += `</div>`
137137
})
138138
return template
139139
});
2.34 MB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/content/collections/projects/epicalendar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ lang: es
1111
star: star
1212
emoji: 📅
1313
buttons: [
14-
{'url': 'https://epicalendar.mier.info', 'img': '<span class="ico">🌐</span>', 'text': 'página web'}
14+
{'url': 'https://epicalendar.mier.info', 'img': '🌐 ', 'text': 'web'}
1515
]
1616
eleventyNavigation:
1717
key: epicalendar

src/content/collections/projects/latex.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: latexTemplate
3-
desc: "latex template for my uni assignments and write-ups"
3+
desc: "latex template for my uni assignments and papers."
44
source: https://github.com/miermontoto/latexTemplate
55
icons: [latex]
66
emoji: 📄

src/content/collections/projects/mier.info.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: mier.info
33
desc: my personal portfolio, the very website you are looking at right now.
4-
source: https://github.com/miermontoto/miermontoto
4+
source: https://github.com/miermontoto/mier.info
55
icons: [eleventy, firebase, sass, markdown, nunjucks, js]
66
links: [{icon: "β", url: "https://mier-f6277--beta-ski9fkat.web.app/", name: "beta"}]
77
star: star

src/content/data/backgrounds.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[
22
{"name": "\"Happy Birthday\" from Daft Punk to Nile Rodgers", "src": "birthday-nile.mp4"},
33
{"name": "Random Access Memories Unboxed", "src": "ram-unboxed.mp4"},
4-
{"name": "Random Access Memories Ad (Unseen Advert)", "src": "unseen-ram.mp4"},
5-
{"name": "10th Anniversary Teaser of Electroma", "src": "electroma-ad.mp4"}
4+
{"name": "Random Access Memories Unseen Ad", "src": "unseen-ram.mp4"},
5+
{"name": "10th Anniversary Teaser of Electroma", "src": "electroma-ad.mp4"},
6+
{"name": "Daft Punk + GAP Spot Ad", "src": "gap-commercial.mp4"}
67
]

src/content/data/questions.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,25 @@
55
"a": "",
66
"s": ["https://codepen.io/anon/pen/gJpLrR", "https://dev.to/peterc/how-to-create-joined-bulletpoint-lists-with-css-bbc-news-style-1eem"],
77
"d": "2023-12-20"
8+
},
9+
{
10+
"q": "how to make a variable uppercase in LaTeX?",
11+
"k": ["uppercase","latex","variable"],
12+
"a": "define a second variable with the uppercase verison of the first one: <code>\\FOO{\\expandafter\\uppercase\\expandafter{\\foo}}</code>",
13+
"s": ["https://latexref.xyz/Upper-and-lower-case.html"],
14+
"d": "2023-12-29"
15+
},
16+
{
17+
"q": "fix \"could not register service workers invalidstateerror\" in vscode",
18+
"k": ["vscode","invalidstateerror","service","worker"],
19+
"a": "kill all vscode instances and restart, maybe open the notebook in a regular vscode instead of insiders.",
20+
"d": "2023-12-31"
21+
},
22+
{
23+
"q": "how to make LaTeX <code>verbatim</code> inline?",
24+
"k": ["latex","verbatim","inline"],
25+
"a": "<code>\\usepackage{fancyvrb}</code> and then <code>\\Verb#code#</code>",
26+
"s": ["https://tex.stackexchange.com/a/387691"],
27+
"d": "2023-12-31"
828
}
929
]

src/content/questions.njk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: project.njk
33
title: questions
4+
subtitle: a collection of questions that i've at some point looked up on the internet.
45
desc: a collection of questions that i've at some point looked up on the internet.
56
permalink: /questions/
67
eleventyNavigation:

src/static/css/app/questions.sass

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
.bottom
1212
font-size: 0.75rem
1313
font-style: italic
14+
margin-top: 1rem
1415

1516
.sources
16-
margin-bottom: 1rem
17+
margin-top: 1rem
18+
font-size: 0.75rem

0 commit comments

Comments
 (0)