Use Nunjucks template to set up page redirect

This commit is contained in:
Helen Chong 2024-05-31 23:11:54 +08:00
parent c386722a81
commit c8a9234263
2 changed files with 12 additions and 0 deletions

View File

@ -4,6 +4,7 @@ desc: "James Somerton used one of my Star Wars: Knights of the Old Republic foot
date: 2024-05-14 date: 2024-05-14
updated: 2024-05-17 updated: 2024-05-17
categories: ["youtube"] categories: ["youtube"]
redirectFrom: /blog/posts/2024-05-14-james-somerton-my-vide-game-footage/
--- ---
It has been five months since Hbomberguy released his ["Plagiarism and You(Tube)"](https://www.youtube.com/watch?v=yDp3cB5fHXQ) video essay on 2 December 2023, which [set off a YouTube plagiarism scandal](https://trending.knowyourmeme.com/editorials/guides/whats-up-with-hbomberguy-setting-off-a-youtube-plagiarism-scandal-the-internet-historian-and-james-somerton-controversies-explained), with another YouTuber [James Somerton](https://knowyourmeme.com/memes/events/hbomberguy-vs-james-somerton-plagiarism-scandal) being the main focus of Hbomberguy's video essay. I do not write this post to recap or rehash the entire James Somerton debacle. Instead, I want to talk about something personal related to one of James Somerton's videos — **James Somerton had used one of my video game footage in one of his videos without crediting me or asking for my permission**. It has been five months since Hbomberguy released his ["Plagiarism and You(Tube)"](https://www.youtube.com/watch?v=yDp3cB5fHXQ) video essay on 2 December 2023, which [set off a YouTube plagiarism scandal](https://trending.knowyourmeme.com/editorials/guides/whats-up-with-hbomberguy-setting-off-a-youtube-plagiarism-scandal-the-internet-historian-and-james-somerton-controversies-explained), with another YouTuber [James Somerton](https://knowyourmeme.com/memes/events/hbomberguy-vs-james-somerton-plagiarism-scandal) being the main focus of Hbomberguy's video essay. I do not write this post to recap or rehash the entire James Somerton debacle. Instead, I want to talk about something personal related to one of James Somerton's videos — **James Somerton had used one of my video game footage in one of his videos without crediting me or asking for my permission**.

11
src/redirects.njk Normal file
View File

@ -0,0 +1,11 @@
---
permalink: /_redirects
eleventyExcludeFromCollections: true
---
{# Tutorial: https://www.aleksandrhovhannisyan.com/blog/eleventy-netlify-redirects/ #}
{%- for page in collections.all -%}
{%- if page.url and page.data.redirectFrom %}
{{ page.data.redirectFrom }} {{ page.url }}
{%- endif -%}
{%- endfor -%}