From 7eb2726cfc92d1b9b9ae66e5666d922d3608b9d8 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 4 Jul 2022 16:25:38 +0300 Subject: Added script for ftags of flags, added gb flag, reworked blog and tutorial tables into definition lists --- generate-dev.sh | 1 + generate.sh | 1 + make-flags.sh | 17 +++++++++++++++++ src/blog.md | 7 ++----- src/blog/index.md | 7 ++----- src/img/gb.svg | 7 +++++++ src/tutorials.md | 30 ++++++++++++++++++++---------- src/tutorials/index.md | 30 ++++++++++++++++++++---------- 8 files changed, 70 insertions(+), 30 deletions(-) create mode 100755 make-flags.sh create mode 100644 src/img/gb.svg diff --git a/generate-dev.sh b/generate-dev.sh index 4d2478b..4596873 100755 --- a/generate-dev.sh +++ b/generate-dev.sh @@ -15,6 +15,7 @@ sudo ssg6 src /var/www/synd/ "Syndamia" "https://www.syndamia.com" sudo ./make-titles.sh /var/www/synd sudo ./make-descriptions.sh /var/www/synd sudo ./make-file-lists.sh /var/www/synd +sudo ./make-flags.sh /var/www/synd # # Tiny version diff --git a/generate.sh b/generate.sh index 1bc5314..7e9b620 100755 --- a/generate.sh +++ b/generate.sh @@ -14,6 +14,7 @@ sudo ssg6 src website "Syndamia" "https://www.syndamia.com" sudo ./make-titles.sh website sudo ./make-descriptions.sh website sudo ./make-file-lists.sh website +sudo ./make-flags.sh website # # Tiny version diff --git a/make-flags.sh b/make-flags.sh new file mode 100755 index 0000000..786671d --- /dev/null +++ b/make-flags.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Adds a way to more simply insert flags into text +# Each flag is represented with an ftag (text that is preceded by &&) + +# Available flags: +# Great Britain - &&gb + +if [ -z "$1" ]; then + echo First parameter must be a path + exit +fi + +for file in $(find "$1" -type f -name "*.html"); do + # Replaces "&&gb" with "ENG" + sed -i 's/&&gb/ENG/g' "$file" +done diff --git a/src/blog.md b/src/blog.md index cefd19c..fd79569 100644 --- a/src/blog.md +++ b/src/blog.md @@ -4,8 +4,5 @@ Articles detailing personal experiences or exploration of certain topics.
-||| -|---|---| -|[Mundus: My first shot at game development](/blog/mundus-first-shot-at-gamedev)|`Game` `2D` `Sandbox` `Crafting` `Building` `Fighting` `GtkSharp 2.0` `C#`| -||| - +&&gb [Mundus: My first shot at game development](/blog/mundus-first-shot-at-gamedev) +: `Game` `2D` `Sandbox` `Crafting` `Building` `Fighting` `GtkSharp 2.0` `C#` diff --git a/src/blog/index.md b/src/blog/index.md index cefd19c..fd79569 100644 --- a/src/blog/index.md +++ b/src/blog/index.md @@ -4,8 +4,5 @@ Articles detailing personal experiences or exploration of certain topics.
-||| -|---|---| -|[Mundus: My first shot at game development](/blog/mundus-first-shot-at-gamedev)|`Game` `2D` `Sandbox` `Crafting` `Building` `Fighting` `GtkSharp 2.0` `C#`| -||| - +&&gb [Mundus: My first shot at game development](/blog/mundus-first-shot-at-gamedev) +: `Game` `2D` `Sandbox` `Crafting` `Building` `Fighting` `GtkSharp 2.0` `C#` diff --git a/src/img/gb.svg b/src/img/gb.svg new file mode 100644 index 0000000..dbac25e --- /dev/null +++ b/src/img/gb.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/tutorials.md b/src/tutorials.md index 165df84..8d0cc7b 100644 --- a/src/tutorials.md +++ b/src/tutorials.md @@ -4,14 +4,24 @@ Educational articles with the sole goal of explaining technologies, processes or
-||| -|---|---| -|[How to turn off notifications on Windows](/tutorials/turn-off-notifications-windows)|`Windows 10` `Notifications` `Settings`| -|[How to disable Sticky Keys prompt](/tutorials/disable-sticky-keys-popup)|`Windows` `Sticky Keys` `Settings`| -|[How to remove Windows Weather Widget](/tutorials/remove-weather-widget)|`Windows 10` `Weather Widget`| -|[Windows Run dialog](/tutorials/windows-run-dialog)|`Windows` `Run` `Commands` `Settings`| -|[How to export Skype data](/tutorials/export-skype)|`Skype` `Export` `Archive` `skype-parser`| -|[How to use Jira](/tutorials/how-to-use-jira)|`Project Management` `Agile` `Issue tracking` `Bug tracking` `Kanban` `Jira` `Atlassian`| -|[Connect to Mysql in .NET and Entity Framework](/tutorials/connect-to-mysql-in-dotnet-ef)|`MySQL` `ASP.Net` `Entity Framework` `Pomelo`| -||| +&&gb [How to turn off notifications on Windows](/tutorials/turn-off-notifications-windows) +: `Windows 10` `Notifications` `Settings` + +&&gb [How to disable Sticky Keys prompt](/tutorials/disable-sticky-keys-popup) +: `Windows` `Sticky Keys` `Settings` + +&&gb [How to remove Windows Weather Widget](/tutorials/remove-weather-widget) +: `Windows 10` `Weather Widget` + +&&gb [Windows Run dialog](/tutorials/windows-run-dialog) +: `Windows` `Run` `Commands` `Settings` + +&&gb [How to export Skype data](/tutorials/export-skype) +: `Skype` `Export` `Archive` `skype-parser` + +&&gb [How to use Jira](/tutorials/how-to-use-jira) +: `Project Management` `Agile` `Issue tracking` `Bug tracking` `Kanban` `Jira` `Atlassian` + +&&gb [Connect to Mysql in .NET and Entity Framework](/tutorials/connect-to-mysql-in-dotnet-ef) +: `MySQL` `ASP.Net` `Entity Framework` `Pomelo` diff --git a/src/tutorials/index.md b/src/tutorials/index.md index 165df84..8d0cc7b 100644 --- a/src/tutorials/index.md +++ b/src/tutorials/index.md @@ -4,14 +4,24 @@ Educational articles with the sole goal of explaining technologies, processes or
-||| -|---|---| -|[How to turn off notifications on Windows](/tutorials/turn-off-notifications-windows)|`Windows 10` `Notifications` `Settings`| -|[How to disable Sticky Keys prompt](/tutorials/disable-sticky-keys-popup)|`Windows` `Sticky Keys` `Settings`| -|[How to remove Windows Weather Widget](/tutorials/remove-weather-widget)|`Windows 10` `Weather Widget`| -|[Windows Run dialog](/tutorials/windows-run-dialog)|`Windows` `Run` `Commands` `Settings`| -|[How to export Skype data](/tutorials/export-skype)|`Skype` `Export` `Archive` `skype-parser`| -|[How to use Jira](/tutorials/how-to-use-jira)|`Project Management` `Agile` `Issue tracking` `Bug tracking` `Kanban` `Jira` `Atlassian`| -|[Connect to Mysql in .NET and Entity Framework](/tutorials/connect-to-mysql-in-dotnet-ef)|`MySQL` `ASP.Net` `Entity Framework` `Pomelo`| -||| +&&gb [How to turn off notifications on Windows](/tutorials/turn-off-notifications-windows) +: `Windows 10` `Notifications` `Settings` + +&&gb [How to disable Sticky Keys prompt](/tutorials/disable-sticky-keys-popup) +: `Windows` `Sticky Keys` `Settings` + +&&gb [How to remove Windows Weather Widget](/tutorials/remove-weather-widget) +: `Windows 10` `Weather Widget` + +&&gb [Windows Run dialog](/tutorials/windows-run-dialog) +: `Windows` `Run` `Commands` `Settings` + +&&gb [How to export Skype data](/tutorials/export-skype) +: `Skype` `Export` `Archive` `skype-parser` + +&&gb [How to use Jira](/tutorials/how-to-use-jira) +: `Project Management` `Agile` `Issue tracking` `Bug tracking` `Kanban` `Jira` `Atlassian` + +&&gb [Connect to Mysql in .NET and Entity Framework](/tutorials/connect-to-mysql-in-dotnet-ef) +: `MySQL` `ASP.Net` `Entity Framework` `Pomelo` -- cgit v1.3.1-26-gb76a