Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit7eb2726cfc92d1b9b9ae66e5666d922d3608b9d8 (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-07-04 16:25:38 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-07-04 16:25:38 +0300
Filesbdabb24f5acf549928a84251c2017631c6f342f5
syndamia.com-7eb2726cfc92d1b9b9ae66e5666d922d3608b9d8.tar
syndamia.com-7eb2726cfc92d1b9b9ae66e5666d922d3608b9d8.tar.gz
syndamia.com-7eb2726cfc92d1b9b9ae66e5666d922d3608b9d8.zip
Parent5ba2d9993102c9fb4bcba9ed28139827d39fe8e8 (diff)
Added script for ftags of flags, added gb flag, reworked blog and tutorial tables into definition lists
8 files changed, 70 insertions, 30 deletions
-rwxr-xr-xgenerate-dev.sh1
-rwxr-xr-xgenerate.sh1
-rwxr-xr-xmake-flags.sh17
-rw-r--r--src/blog.md7
-rw-r--r--src/blog/index.md7
-rw-r--r--src/img/gb.svg7
-rw-r--r--src/tutorials.md30
-rw-r--r--src/tutorials/index.md30
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 "<img src="/img/gb.svg" class="unzoomable" alt="ENG" title="ENG">"
+ sed -i 's/&#38;&#38;gb/<img src="\/img\/gb.svg" class="unzoomable" alt="ENG" title="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.
<br>
-|||
-|---|---|
-|[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.
<br>
-|||
-|---|---|
-|[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 @@
+<svg xmlns="http://www.w3.org/2000/svg" id="flag-icons-gb" viewBox="0 0 640 480">
+ <path fill="#012169" d="M0 0h640v480H0z"/>
+ <path fill="#FFF" d="m75 0 244 181L562 0h78v62L400 241l240 178v61h-80L320 301 81 480H0v-60l239-178L0 64V0h75z"/>
+ <path fill="#C8102E" d="m424 281 216 159v40L369 281h55zm-184 20 6 35L54 480H0l240-179zM640 0v3L391 191l2-44L590 0h50zM0 0l239 176h-60L0 42V0z"/>
+ <path fill="#FFF" d="M241 0v480h160V0H241zM0 160v160h640V160H0z"/>
+ <path fill="#C8102E" d="M0 193v96h640v-96H0zM273 0v480h96V0h-96z"/>
+</svg>
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
<br>
-|||
-|---|---|
-|[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
<br>
-|||
-|---|---|
-|[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`