diff --git a/content/blog/2018-07-05-cad/index.md b/content/blog/2018-07-05-cad/index.md index 0c151943..97a930a2 100644 --- a/content/blog/2018-07-05-cad/index.md +++ b/content/blog/2018-07-05-cad/index.md @@ -1,7 +1,6 @@ +++ title = "3D Modeling and CAD" date = 2018-07-05 -updated = 2025-05-02 authors = ["Aron Petau"] description = "Modelling and Scanning in 3D using Fusion360, Sketchfab, and Photogrammetry" diff --git a/content/blog/2019-06-01-ballpark/index.md b/content/blog/2019-06-01-ballpark/index.md index 34ef96ed..9edb46f1 100644 --- a/content/blog/2019-06-01-ballpark/index.md +++ b/content/blog/2019-06-01-ballpark/index.md @@ -1,5 +1,5 @@ +++ -title = "Ballpark" +title = "Ballpark"updated = "2025-05-05" date = 2022-03-01 authors = ["Aron Petau"] description = "A 3D Game Concept in Unity" @@ -25,7 +25,7 @@ banner = "/images/ballpark_menu.png" show_copyright = true show_shares = true +++ - +updated = "2025-05-05" ## Ballpark: 3D Environments in Unity Implemented in Unity, Ballpark is a Concept work for a collaborative 2-Player Game, where one player is a navigator with a third-person perspective and another player is a copilot, responsible for interaction with the environment – featuring mostly working physics, intelligent enemies, a gun, a grappling hook system for traversing the map, a 2D Interface for navigation and a health bar system. On top of the meanest cyberpunk vibes my past self was able to conjure. diff --git a/content/blog/2020-07-14-critical-epistemologies/index.md b/content/blog/2020-07-14-critical-epistemologies/index.md index 6923c25b..b44f8020 100644 --- a/content/blog/2020-07-14-critical-epistemologies/index.md +++ b/content/blog/2020-07-14-critical-epistemologies/index.md @@ -1,5 +1,5 @@ +++ -title = "Critical Epistemology" +title = "Critical Epistemology"updated = "2025-05-05" date = 2020-07-14 authors = ["Aron Petau"] description = "Forum entries from the Seminar: Critical Epistemologies" @@ -11,7 +11,7 @@ tags = ["alison jaggar", "elizabeth anderson", "epistemology", "ethics", "femini show_copyright = true show_shares = true +++ - +updated = "2025-05-05" ## Forum entries from the Seminar: Critical Epistemologies ### On Anderson: Institutions diff --git a/content/blog/2021-03-01-philosophy/index.md b/content/blog/2021-03-01-philosophy/index.md index 0975cfcd..3982e7a0 100644 --- a/content/blog/2021-03-01-philosophy/index.md +++ b/content/blog/2021-03-01-philosophy/index.md @@ -1,5 +1,5 @@ +++ -title = "Philosophy" +title = "Philosophy"updated = "2025-05-05" date = 2021-03-01 authors = ["Aron Petau"] description = "A selection of my weekly commentaries from philosophical seminars at the University of Osnabrück" @@ -11,7 +11,7 @@ tags = ["alison jaggar", "elizabeth anderson", "elsa dorlin", "epistemology", "e show_copyright = true show_shares = true +++ - +updated = "2025-05-05" ## Critical considerations during my studies I have attended a fair share of philosophical seminars in my studies and consider it a core topic connected both to science and to digital environments. diff --git a/content/blog/2021-12-05-political-violence/index.md b/content/blog/2021-12-05-political-violence/index.md index eec02514..50e25aae 100644 --- a/content/blog/2021-12-05-political-violence/index.md +++ b/content/blog/2021-12-05-political-violence/index.md @@ -1,5 +1,5 @@ +++ -title = "Political Violence" +title = "Political Violence"updated = "2025-05-05" date = 2021-03-01 authors = ["Aron Petau"] description = "Forum entries from the Seminar: Is political violence justifiable? Reading Judith Butler and Elsa Dorlin" @@ -12,7 +12,7 @@ tags = ["alison jaggar", "elizabeth anderson", "elsa dorlin", "epistemology", "e show_copyright = true show_shares = true +++ - +updated = "2025-05-05" ## Forum entries from the Seminar: Is political violence justifiable? Reading Judith Butler and Elsa Dorlin diff --git a/content/blog/2022-01-22-critical-philosophy-subjectivity/index.md b/content/blog/2022-01-22-critical-philosophy-subjectivity/index.md index a0ac76a6..221a79c7 100644 --- a/content/blog/2022-01-22-critical-philosophy-subjectivity/index.md +++ b/content/blog/2022-01-22-critical-philosophy-subjectivity/index.md @@ -1,5 +1,5 @@ +++ -title = "Critical Philosophy of Subjectivity" +title = "Critical Philosophy of Subjectivity"updated = "2025-05-05" date = 2021-03-01 authors = ["Aron Petau"] description = "Forum entries from the Seminar: Critical Philosophy of Subjectivity 1: Michel Foucault" @@ -11,7 +11,7 @@ tags = ["alison jaggar", "elizabeth anderson", "elsa dorlin", "epistemology", "e show_copyright = true show_shares = true +++ - +updated = "2025-05-05" ## Forum entries from the Seminar: Critical Philosophy of Subjectivity 1: Michel Foucault ### On Butler: Constituting norms =/= carrying normative responsibilities for their existence diff --git a/content/blog/2025-04-15-master-thesis/index.md b/content/blog/2025-04-15-master-thesis/index.md index 7aa65452..9c39d2f4 100644 --- a/content/blog/2025-04-15-master-thesis/index.md +++ b/content/blog/2025-04-15-master-thesis/index.md @@ -1,5 +1,5 @@ +++ -title = "Master's Thesis" +title = "Master's Thesis"updated = "2025-05-05" date = 2025-04-24 authors = ["Aron Petau"] description = "Human - Waste: A thesis examining interactive workshops" @@ -34,7 +34,7 @@ banner = "/images/masterthesis/puzzle.jpeg" show_copyright = true show_shares = true +++ - +updated = "2025-05-05" ## Master's Thesis: Human - Waste Plastics offer significant material benefits, such as durability and versatility, yet their diff --git a/content/blog/printing/index.md b/content/blog/printing/index.md index 490e8384..859a70d1 100644 --- a/content/blog/printing/index.md +++ b/content/blog/printing/index.md @@ -1,5 +1,5 @@ +++ -title = "3D printing" +title = "3D printing"updated = "2025-05-05" date = 2018-05-03 authors = ["Aron Petau"] description = "My 3D Printing journey and the societal implications of the technology" @@ -31,7 +31,7 @@ show_shares = true +++ - +updated = "2025-05-05" galleries = { gallery = [ { file = "cloning_station.jpg", title = "A plant propagation station now preparing our tomatoes for summer" }, diff --git a/content/pages/about.md b/content/pages/about.md index 3c0933d5..d6e97883 100644 --- a/content/pages/about.md +++ b/content/pages/about.md @@ -1,10 +1,10 @@ +++ -title = "About" +title = "About"updated = "2025-05-05" description = "Welcome, let me introduce myself" authors = ["Aron Petau"] date = 2023-07-26 +++ - +updated = "2025-05-05" ## Introduction I am Aron (pronouns: he/him), a 2022 graduate of the bachelor's program of Cognitive Science in Osnabrück. diff --git a/content/pages/contact.md b/content/pages/contact.md index c10ab502..c2ecb8fa 100644 --- a/content/pages/contact.md +++ b/content/pages/contact.md @@ -1,10 +1,10 @@ +++ -title = "Contact" +title = "Contact"updated = "2025-05-05" description = "Reach me" authors = ["Aron Petau"] date= 2025-05-01 +++ - +updated = "2025-05-05" For starters, mails are gold and probably still the best way to reach me. [contact me](/mailto:aron@petau.net/) diff --git a/content/pages/privacy.md b/content/pages/privacy.md index ad7c490f..e69c9516 100644 --- a/content/pages/privacy.md +++ b/content/pages/privacy.md @@ -1,9 +1,9 @@ +++ -title = "Terms and Privacy Statement" +title = "Terms and Privacy Statement"updated = "2025-05-05" date = 2025-05-01 authors = ["Aron Petau"] +++ - +updated = "2025-05-05" My website address is: . ## Location diff --git a/scripts/add_update_frontmatter.sh b/scripts/add_update_frontmatter.sh index b3ce9e03..11f6686d 100755 --- a/scripts/add_update_frontmatter.sh +++ b/scripts/add_update_frontmatter.sh @@ -1,41 +1,28 @@ #!/bin/bash -# Directory to search for markdown files (content folder) -search_dir="../content" +# Current date for the 'updated' field +current_date=$(date +%F) -# Function to check and update frontmatter with the latest date -update_frontmatter() { - local file="$1" - - # Check if the file contains frontmatter with +++ delimiters - if grep -qE '^\+\+\+' "$file"; then - # Extract frontmatter from the file (between +++ markers) - frontmatter=$(sed -n '/^\+\+\+/,/^\+\+\+/p' "$file") - - # Check if there's a 'date' field in the frontmatter - if echo "$frontmatter" | grep -qE 'date\s*='; then - # Check if there's already an 'updated' field in the frontmatter - if echo "$frontmatter" | grep -qE 'updated\s*='; then +# Recursive search for all markdown files in the content folder +find ../content -type f -name "*.md" | while read file; do + # Check if the file has frontmatter enclosed in +++ + if [ "$(head -n 1 "$file")" = "+++" ]; then + # Check if the 'date' field exists in the frontmatter + if grep -q '^date\s*=' "$file"; then + # Check if the 'updated' field is already present + if grep -q '^updated\s*=' "$file"; then echo "✘ Skipped: 'updated' field already present in $file" - return + else + # Insert updated field directly after the date line without quotes + sed -i "" "/^date\s*=.*/a\\ +updated = ${current_date} +" "$file" + echo "✔ Inserted 'updated' after date in $file" fi - - # Get the current modification time of the file (formatted as YYYY-MM-DD) - last_modified=$(date -r "$file" "+%Y-%m-%d") - - # Update the frontmatter by adding the updated date below the 'date = ' line - sed -i "/^\+\+\+/ {n;s/$/\nupdated = $last_modified/}" "$file" - - echo "✔ Updated frontmatter in $file" else echo "✘ No date field found in the frontmatter of $file" fi else echo "✘ No frontmatter found in $file" fi -} - -# Recursively find all markdown files in the content folder and apply the update -find "$search_dir" -type f -name "*.md" | while read file; do - update_frontmatter "$file" done