diff --git a/config/shortcodes/youtube.js b/config/shortcodes/youtube.js new file mode 100644 index 0000000..0dceb36 --- /dev/null +++ b/config/shortcodes/youtube.js @@ -0,0 +1,14 @@ +/* Sourced from eleventy-excellent's youtube shortcode + * https://github.com/madrilene/eleventy-excellent/blob/main/config/shortcodes/youtube-lite/index.js + */ +const liteYoutube = (id, label) => { + return ` +
+ +
+ `; +}; + +module.exports = liteYoutube; diff --git a/eleventy.config.js b/eleventy.config.js index 0d55706..a0b0df8 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -16,6 +16,7 @@ const { } = require("./config/filters/index.js"); const markdown = require("./config/plugins/markdown.js"); const imageShortcode = require("./config/shortcodes/image.js"); +const liteYoutube = require("./config/shortcodes/youtube.js"); module.exports = (eleventyConfig) => { eleventyConfig.addWatchTarget("./src/assets"); @@ -47,7 +48,10 @@ module.exports = (eleventyConfig) => { // --------------------- Markdown ----------------------- eleventyConfig.setLibrary("md", markdown); + + // --------------------- Shortcodes ----------------------- eleventyConfig.addShortcode("image", imageShortcode); + eleventyConfig.addShortcode("youtube", liteYoutube); return { // Optional (default is set): If your site deploys to a subdirectory, change `pathPrefix`, for example with with GitHub pages diff --git a/src/_layouts/base.html b/src/_layouts/base.html index 28fed40..6811a26 100644 --- a/src/_layouts/base.html +++ b/src/_layouts/base.html @@ -24,6 +24,11 @@ {% include "css/spacing.njk" %} {% endset %} + {% if youtube %} + + + {% endif %} {% include "partials/header.html" %} diff --git a/src/content/catalogue/games/persona-3-portable.md b/src/content/catalogue/games/persona-3-portable.md index d78ad91..76491c0 100644 --- a/src/content/catalogue/games/persona-3-portable.md +++ b/src/content/catalogue/games/persona-3-portable.md @@ -4,6 +4,7 @@ subtitle: PlayStation Portable date: 2016-03-16 image: https://cdn.wonderfulfrog.com/p3p.jpg tags: ["psp", "persona"] +youtube: true --- My completion time was somewhere around 72 hours. It's hard to talk about such a story-dense game without spoiling too much - but what I will say about the story is that it's probably one of the best I've ever experienced. The game is likely not for everyone... the playtime alone might turn some people off. I think of it more like a large book - it'll take you a while to get through - but the major plot points keep you engrossed. You get attached to the characters - because of the game length. By the end of the game they are all close friends. @@ -16,13 +17,13 @@ The battle system is not without its shortcomings - it feels a little unforgivin I can't end it without mentioning the music. Second to the story, it's top-notch, definitely some of the best I've heard in any game full stop. I have a feeling the music in a vacuum won't have the same impact as when its heard in-game. Regardless, here are a few favourites: -TODO: YouTube: https://www.youtube.com/watch?v=6jFaoLrLzd4 +{% youtube "6jFaoLrLzd4", "Persona 3 OST - Mass Destruction" %} -https://www.youtube.com/watch?v=e2Gyaqf7EoU +{% youtube "e2Gyaqf7EoU", "Persona 3 OST - Iwatodai Dorm" %} -https://www.youtube.com/watch?v=sFH7O9huUYU +{% youtube "sFH7O9huUYU", "Paulownian Mall - Persona 3" %} -https://www.youtube.com/watch?v=yoVn6Eh6rus +{% youtube "yoVn6Eh6rus", "Persona 3 OST: Unavoidable Battle" %} If you're looking for an RPG with a top-notch story, this is the one. If you're looking for one with compelling gameplay... keep looking I'd say. diff --git a/src/content/posts/give-in-to-feel-good.md b/src/content/posts/give-in-to-feel-good.md index 83a025b..27c8b2c 100644 --- a/src/content/posts/give-in-to-feel-good.md +++ b/src/content/posts/give-in-to-feel-good.md @@ -3,6 +3,7 @@ title: Give In to Feel Good date: 2020-08-16 excerpt: Procrastination isn’t just about laziness, is it? tags: ["procrastination", "mental health"] +youtube: true --- Procrastination is something I struggle with every single day. I find it often strikes as critical thoughts: @@ -17,7 +18,7 @@ The thoughts I get all the time are like a form of anxiety. I don’t cope well [This thread on Hacker News](https://news.ycombinator.com/item?id=24120275) prompted my journey into my own procrastination, and [this video](https://www.youtube.com/watch?v=mhFQA998WiA) from the thread helped me look at procrastination in a different way. This was a lightbulb moment for me. To me my source of procrastination is not myself being lazy or uninterested, but being critical. I’m a perfectionist (and I’ve come to realize I don’t like that), and I am plagued by reasons I shouldn’t start a task. This helps me at least identify the problem. -TODO: YouTube shortcode: mhFQA998WiA +{% youtube "mhFQA998WiA", "Teaching Talk: Helping Students Who Procrastinate (Tim Pychyl)" %} I have some actionable goals that I want to try: diff --git a/src/content/posts/recently-02-2022.md b/src/content/posts/recently-02-2022.md index ec17cd2..b169989 100644 --- a/src/content/posts/recently-02-2022.md +++ b/src/content/posts/recently-02-2022.md @@ -3,6 +3,7 @@ title: Recently date: 2022-02-01T23:49:47.158Z excerpt: February 2022. tags: ["recently"] +youtube: true --- {% image "https://cdn.wonderfulfrog.com/lastfm-feb-2022.jpeg", "My most-played music last month.", "" %} @@ -25,7 +26,7 @@ Again, the immune system is a violent thing, and it's hard to explain without re ## Playing -TODO: YouTube: vFhzUdVs9-E +{% youtube "vFhzUdVs9-E", "The Witcher 3: Hillarious goat quest" %} I started [The Witcher 3](https://store.steampowered.com/app/292030/The_Witcher_3_Wild_Hunt/) last month. I'm determined to get through it and find out what the fuss is about. It's got its hooks in me good. It suffers from classic open-world tropes like an overabundance of quests, too many locations to visit, weird janky physics, and plenty of other funky bugs. diff --git a/src/content/posts/recently-03-2021.md b/src/content/posts/recently-03-2021.md index e8d146e..7edbcee 100644 --- a/src/content/posts/recently-03-2021.md +++ b/src/content/posts/recently-03-2021.md @@ -3,6 +3,7 @@ title: Recently date: 2021-03-05 excerpt: February 2021. tags: ["recently", "valheim"] +youtube: true --- {% image "https://cdn.wonderfulfrog.com/forestsunrise.png", "A screenshot of Valheim with a sunrise coming through a thick, dense forest." , "" %} @@ -57,7 +58,7 @@ We recently discovered that with the Star acquisition from Disney that Futurama Here’s my favorite bit ever: -TODO: YouTube: pjsQ-seC31U +{% youtube "sE8aVgOxjJU", "Futurama - No good, it's full of steam!" %} ## Playing diff --git a/src/content/posts/recently-04-2021.md b/src/content/posts/recently-04-2021.md index 57849b3..1457ed5 100644 --- a/src/content/posts/recently-04-2021.md +++ b/src/content/posts/recently-04-2021.md @@ -3,6 +3,7 @@ title: Recently date: 2021-04-01T19:03:49.841Z excerpt: March 2021. tags: ["recently", "valheim"] +youtube: true --- {% image "https://cdn.wonderfulfrog.com/coolbow.png", "My Valheim character under the moon." %} @@ -27,7 +28,7 @@ Been keeping busy on the games front lately! The Switch is a wonderful console. Our group finished what I would consider to be the “campaign” of the game: the 5 bosses. We wrapped up about mid-March, slaying the mighty Yalguth after a long, hard battle. It was a lot of fun because it required coordination and resource management. -![Our heroes stand triumphant and display their grisly trophy!](/images/theend.png "Our heroes stand triumphant and display their grisly trophy!") +{% image "https://cdn.wonderfulfrog.com/theend.png", "Our heroes stand triumphant and display their grisly trophy!", "Our heroes stand triumphant and display their grisly trophy!" %} Since we finished all the bosses, we’ve fallen off the game. Without the next boss to work toward, the game became resource-gathering and base-building. A fun activity, but does not appeal to everyone. Without my friends playing, I don’t find myself all that interested. @@ -35,7 +36,7 @@ For $20 though, some of the best times I’ve had with a game in recent memory. There are updates planned for Valheim that could be pretty exciting (like the Mistlands, Firelands, and Deep North being implemented), which might pull our group back in. -![The summoning area for Yagluth, the final boss. He wants totems from his Fuling followers.](/images/yagluthsummon.png "The summoning area for Yagluth, the final boss. He wants totems from his Fuling followers.") +{% image "https://cdn.wonderfulfrog.com/yagluthsummon.png", "The summoning area for Yagluth, the final boss. He wants totems from his Fuling followers.", "The summoning area for Yagluth, the final boss. He wants totems from his Fuling followers." %} ### Stardew Valley @@ -75,10 +76,10 @@ Tomorrow (April 2nd) is Bandcamp Friday!! ## Watching -TODO: YouTube: VrKW58MS12g +{% youtube "VrKW58MS12g", "Glitterbomb Trap Catches Phone Scammer (who gets arrested)" %} It never ceases to amaze me how far Mark Rober will go to be annoying to package thieves and scammers. The interesting part of this video is showing how deep the rabbit hole goes with these scammer ring. Rober teamed up with other YouTubers to show all of this — I found Jim Browning’s video incredibly interesting because it showed me a fascinating part of the ring: the money mule. -TODO: YouTube: Xvjjpzyiig4 +{% youtube "Xvjjpzyiig4", "Catching Money Mules ft. Mark Rober" %} See everyone next month. ✌️ diff --git a/src/content/posts/recently-05-2021.md b/src/content/posts/recently-05-2021.md index 809ed18..e96ed61 100644 --- a/src/content/posts/recently-05-2021.md +++ b/src/content/posts/recently-05-2021.md @@ -4,6 +4,7 @@ draft: false date: 2021-05-01T19:03:49.841Z excerpt: April 2021. tags: ["recently"] +youtube: true --- {% image "https://cdn.wonderfulfrog.com/mistergotcha.png", "The Nib's 'Mister Gotcha' comic" %} @@ -16,7 +17,7 @@ Have you been feeling “blah” lately? You’re not depressed or overly anxiou I’ve been reading a lot of articles and posts on Apple and the App Store: Apple vs. Epic, antitrust lawsuits, Apple crushing competitors. There’s a lot to unpack, and I plan to in another post. For now though I want to leave you with MKBHD’s excellent “Apple vs. The Paradox of Choice”. This is what happens when we put too much trust into one company without any checks and balances. -TODO YouTube: qNAo0UdYF6g +{% youtube "qNAo0UdYF6g", "Apple vs The Paradox of Choice!" %} You know the state of the video game industry is in a bad spot when [Sony is patenting an AI that will play video games for you][sonyai]. The intent appears to be innocent at first — it will learn how you play and assist you — but the larger implication I feel is that it will play games _for you_, as in you sit there and watch and it’ll do everything. Because games are too grind-y these days, right? Even though it was the game industry itself that got us to this point. The relentless pursuit of maximizing retention and engagement propels into games that are playing themselves. @@ -32,7 +33,7 @@ The second season is not as great. They zeroed into the family drama aspect of t I recommend though for anyone with Apple TV+. -TODO YouTube: ijKAtzQY1wc +{% youtube "ijKAtzQY1wc", "Yasuke | Official Trailer | Netflix" %} I discovered [Yasuke][yasuke] as a new album from Flying Lotus (which is _phenomenal_), but the premise and protagonist sold me on it. I’ve only seen one episode, but I’m hungry for more. diff --git a/src/content/posts/tadpoles-the-big-little-migration-01-2021.md b/src/content/posts/tadpoles-the-big-little-migration-01-2021.md index dfeb8bb..a3e2a27 100644 --- a/src/content/posts/tadpoles-the-big-little-migration-01-2021.md +++ b/src/content/posts/tadpoles-the-big-little-migration-01-2021.md @@ -3,9 +3,10 @@ title: "Tadpoles: The Big Little Migration" date: 2021-01-10 excerpt: A short film about frogs. tags: ["short film", "frogs"] +youtube: true --- -TODO: YouTube: 5S-lZtE1J6M +{% youtube "5S-lZtE1J6M", "Tadpoles: The Big Little Migration" %} Frogs are undoubtedly my favorite animal, and seeing a short film about them beings me so much joy. The tadpole is not a stage in a frog's life you see emphasized much. Not to mention this was filmed right in my beautiful province! diff --git a/src/content/posts/take-the-power-back-music.md b/src/content/posts/take-the-power-back-music.md index ffa3167..ceae64d 100644 --- a/src/content/posts/take-the-power-back-music.md +++ b/src/content/posts/take-the-power-back-music.md @@ -3,9 +3,10 @@ title: Take The Power Back (Over My Music) date: 2020-07-26 excerpt: One guy's struggle to regain ownership of some MP3 files. tags: ["music", "beets", "plex"] +youtube: true --- -TODO: Come up with a YouTube shortcode for this video: qKSNABST4b0 +{% youtube "qKSNABST4b0", "Rage Against The Machine - Take The Power Back (Audio)" %} When did Rage Against the Machine [get so political](https://www.nme.com/news/music/tom-morello-twitter-respond-to-people-only-just-realising-rage-against-the-machine-are-political-2685353), anyway?