diff options
author | Oxbian <got.dacs@slmail.me> | 2023-07-06 00:38:06 +0200 |
---|---|---|
committer | Oxbian <got.dacs@slmail.me> | 2023-07-06 00:38:06 +0200 |
commit | 06c1a014c2c3820454c0ac697fdfdb029b983d9e (patch) | |
tree | c500d8ab38c067d63b596d18c2b821cf869d5a33 /templates | |
parent | 1a461458057bf253358fef77bc14674fa1a2c9f2 (diff) | |
download | ArKa-Blog-06c1a014c2c3820454c0ac697fdfdb029b983d9e.tar.gz ArKa-Blog-06c1a014c2c3820454c0ac697fdfdb029b983d9e.zip |
Adding language system to the blog
Diffstat (limited to 'templates')
-rw-r--r-- | templates/en/atom_feed_template.xml | 12 | ||||
-rw-r--r-- | templates/en/atom_post_template.xml | 12 | ||||
-rw-r--r-- | templates/en/index_template.html | 58 | ||||
-rw-r--r-- | templates/en/page_template.html | 56 | ||||
-rw-r--r-- | templates/en/tags_template.html | 51 | ||||
-rw-r--r-- | templates/fr/atom_feed_template.xml (renamed from templates/atom_template.xml) | 0 | ||||
-rw-r--r-- | templates/fr/atom_post_template.xml (renamed from templates/atom_post_template.xml) | 0 | ||||
-rw-r--r-- | templates/fr/index_template.html (renamed from templates/index_template.html) | 10 | ||||
-rw-r--r-- | templates/fr/page_template.html (renamed from templates/page_template.html) | 14 | ||||
-rw-r--r-- | templates/fr/tags_template.html (renamed from templates/tags_template.html) | 14 |
10 files changed, 208 insertions, 19 deletions
diff --git a/templates/en/atom_feed_template.xml b/templates/en/atom_feed_template.xml new file mode 100644 index 0000000..ef72ecb --- /dev/null +++ b/templates/en/atom_feed_template.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<feed xmlns="http://www.w3.org/2005/Atom" + xmlns:thr="http://purl.org/syndication/thread/1.0" + xml:lang="en"> + <title type="text">blog.arka.rocks</title> + <subtitle type="text">Oxbian's Blog</subtitle> + <updated>$DATE</updated> + <link rel="alternate" type="text/html" href="https://blog.arka.rocks"/> + <id>https://blog.arka.rocks</id> + <link rel="self" type="application/atom+xml" href="https://blog.arka.rocks/atom.xml"/> +$CONTENT +</feed> diff --git a/templates/en/atom_post_template.xml b/templates/en/atom_post_template.xml new file mode 100644 index 0000000..7c975d4 --- /dev/null +++ b/templates/en/atom_post_template.xml @@ -0,0 +1,12 @@ +<entry xml:lang="en"> + <author><name>Oxbian</name><uri>https://blog.arka.rocks</uri></author> + <title type="html">$TITLE</title> + <link rel="alternate" type="text/html" href="$URL"/> + <id>$URL</id> + <published>$DATE</published> + <updated>$DATE</updated> + <content type="html"> + <h1>$TITLE</h1> + $CONTENT + </content> +</entry> diff --git a/templates/en/index_template.html b/templates/en/index_template.html new file mode 100644 index 0000000..18a40c8 --- /dev/null +++ b/templates/en/index_template.html @@ -0,0 +1,58 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <!-- Metadata --> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="description" content="Oxbian's blog"> + <meta property="og:title" content="Oxbian's blog"> + <meta property="og:url" content="https://blog.arka.rocks"> + <meta property="og:type" content="article"> + <meta property="og:article:author" content="Oxbian"> + + <!-- CSS & Atom --> + <link rel="alternate" href="atom_en.xml" type="application/atom+xml" title="RSS"> + <link rel="stylesheet" href="assets/css/style.css"> + <link rel="shortcut icon" href="assets/favicon/favicon.ico" type="image/x-icon"> + + <title>Oxbian's blog</title> +</head> +<body> + <!-- Header --> + <header> + <nav> + <ul> + <li><a href="index_en.html">Home</a></li> + <li><a href="pages/en/how-to-read.html">How to read ?</a></li> + <li><a href="pages/en/about.html">About</a></li> + <li><a href="atom_en.xml">RSS</a></li> + </ul> + </nav> + </header> + + <!-- Main content --> + <main> + <article> + <h1>Welcome on my blog</h1> + <p>On this blog you will found articles about IT, coding, network, cybersecurity, free software.. + Moreover I share articles about good practices in different domains like privacy, sport..</p> + $CONTENT + </article> + </main> + + <!-- Footer --> + <hr> + <footer> + <p>Contact-me for any questions, I answer quite fast in general.</p> + + <!-- Contact --> + <div id="social"> + <ul> + <li><a class="matrix" href="https://matrix.to/#/@oxbian:matrix.org">Matrix</a></li> + <li><a rel="me" class="mastodon" href="https://social.linux.pizza/@Oxbian">Mastodon</a></li> + <li><a class="mail" href="mailto:oxbian.noch@simplelogin.com">Mail</a></li> + </ul> + </div> + </footer> +</body> +</html> diff --git a/templates/en/page_template.html b/templates/en/page_template.html new file mode 100644 index 0000000..d10ebee --- /dev/null +++ b/templates/en/page_template.html @@ -0,0 +1,56 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <!-- Metadata --> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="description" content="$DESC"> + <meta property="og:title" content="$TITLE"> + <meta property="og:type" content="article" > + <meta property="og:article:author" content="Oxbian"> + <meta property="og:article:published_time" content="$DATE"> + + <!-- CSS & Atom --> + <link rel="alternate" href="../../atom_en.xml" type="application/atom+xml" title="RSS"> + <link rel="stylesheet" href="../../assets/css/style.css"> + <link rel="shortcut icon" href="../../assets/favicon/favicon.ico" type="image/x-icon"> + + <title>$TITLE</title> +</head> +<body> + <!-- Header --> + <header> + <nav> + <ul> + <li><a href="../../index_en.html">Home</a></li> + <li><a href="../../pages/en/how-to-read.html">How to read ?</a></li> + <li><a href="../../pages/en/about.html">About</a></li> + <li><a href="../../atom_en.xml">RSS</a></li> + </ul> + </nav> + </header> + + <!-- Main content --> + <main> + <article> + <h1>$TITLE</h1> + $CONTENT + </article> + </main> + + <!-- Footer --> + <hr> + <footer> + <p>Contact-me for any questions, I answer quite fast in general.</p> + + <!-- Contact --> + <div id="social"> + <ul> + <li><a class="matrix" href="https://matrix.to/#/@oxbian:matrix.org">Matrix</a></li> + <li><a rel="me" class="mastodon" href="https://social.linux.pizza/@Oxbian">Mastodon</a></li> + <li><a class="mail" href="mailto:oxbian.noch@simplelogin.com">Mail</a></li> + </ul> + </div> + </footer> +</body> +</html> diff --git a/templates/en/tags_template.html b/templates/en/tags_template.html new file mode 100644 index 0000000..f230459 --- /dev/null +++ b/templates/en/tags_template.html @@ -0,0 +1,51 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <!-- Metadata --> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + + <!-- CSS & Atom --> + <link rel="alternate" href="../../../atom_en.xml" type="application/atom+xml" title="RSS"> + <link rel="stylesheet" href="../../../assets/css/style.css"> + <link rel="shortcut icon" href="../../../assets/favicon/favicon.ico" type="image/x-icon"> + + <title>Tag: $TITLE</title> +</head> +<body> + <!-- Header --> + <header> + <nav> + <ul> + <li><a href="../../../index_en.html">Home</a></li> + <li><a href="../../../pages/en/how-to-read.html">How to read ?</a></li> + <li><a href="../../../pages/en/about.html">About</a></li> + <li><a href="../../../atom_en.xml">RSS</a></li> + </ul> + </nav> + </header> + + <!-- Main content --> + <main> + <article> + <h1>$TITLE</h1> + $CONTENT + </article> + </main> + + <!-- Footer --> + <hr> + <footer> + <p>Contact-me for any questions, I answer quite fast in general.</p> + + <!-- Contact --> + <div id="social"> + <ul> + <li><a class="matrix" href="https://matrix.to/#/@oxbian:matrix.org">Matrix</a></li> + <li><a rel="me" class="mastodon" href="https://social.linux.pizza/@Oxbian">Mastodon</a></li> + <li><a class="mail" href="mailto:oxbian.noch@simplelogin.com">Mail</a></li> + </ul> + </div> + </footer> +</body> +</html> diff --git a/templates/atom_template.xml b/templates/fr/atom_feed_template.xml index 9fca838..9fca838 100644 --- a/templates/atom_template.xml +++ b/templates/fr/atom_feed_template.xml diff --git a/templates/atom_post_template.xml b/templates/fr/atom_post_template.xml index 0096010..0096010 100644 --- a/templates/atom_post_template.xml +++ b/templates/fr/atom_post_template.xml diff --git a/templates/index_template.html b/templates/fr/index_template.html index c8cd6ae..805c1c5 100644 --- a/templates/index_template.html +++ b/templates/fr/index_template.html @@ -11,7 +11,7 @@ <meta property="og:article:author" content="Oxbian"> <!-- CSS & Atom --> - <link rel="alternate" href="atom.xml" type="application/atom+xml" title="RSS"> + <link rel="alternate" href="atom_fr.xml" type="application/atom+xml" title="RSS"> <link rel="stylesheet" href="assets/css/style.css"> <link rel="shortcut icon" href="assets/favicon/favicon.ico" type="image/x-icon"> @@ -22,10 +22,10 @@ <header> <nav> <ul> - <li><a href="index.html">Accueil</a></li> - <li><a href="pages/how-to-read.html">Comment lire ce blog ?</a></li> - <li><a href="pages/about.html">À Propos</a></li> - <li><a href="atom.xml">RSS</a></li> + <li><a href="index_fr.html">Accueil</a></li> + <li><a href="pages/fr/how-to-read.html">Comment lire ce blog ?</a></li> + <li><a href="pages/fr/about.html">À Propos</a></li> + <li><a href="atom_fr.xml">RSS</a></li> </ul> </nav> </header> diff --git a/templates/page_template.html b/templates/fr/page_template.html index 8374367..d3096ca 100644 --- a/templates/page_template.html +++ b/templates/fr/page_template.html @@ -11,9 +11,9 @@ <meta property="og:article:published_time" content="$DATE"> <!-- CSS & Atom --> - <link rel="alternate" href="../atom.xml" type="application/atom+xml" title="RSS"> - <link rel="stylesheet" href="../assets/css/style.css"> - <link rel="shortcut icon" href="../assets/favicon/favicon.ico" type="image/x-icon"> + <link rel="alternate" href="../../atom_fr.xml" type="application/atom+xml" title="RSS"> + <link rel="stylesheet" href="../../assets/css/style.css"> + <link rel="shortcut icon" href="../../assets/favicon/favicon.ico" type="image/x-icon"> <title>$TITLE</title> </head> @@ -22,10 +22,10 @@ <header> <nav> <ul> - <li><a href="../index.html">Accueil</a></li> - <li><a href="../pages/how-to-read.html">Comment lire ce blog ?</a></li> - <li><a href="../pages/about.html">À Propos</a></li> - <li><a href="../atom.xml">RSS</a></li> + <li><a href="../../index_fr.html">Accueil</a></li> + <li><a href="../../pages/fr/how-to-read.html">Comment lire ce blog ?</a></li> + <li><a href="../../pages/fr/about.html">À Propos</a></li> + <li><a href="../../atom_fr.xml">RSS</a></li> </ul> </nav> </header> diff --git a/templates/tags_template.html b/templates/fr/tags_template.html index 6e84ddf..d913339 100644 --- a/templates/tags_template.html +++ b/templates/fr/tags_template.html @@ -6,9 +6,9 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- CSS & Atom --> - <link rel="alternate" href="../../atom.xml" type="application/atom+xml" title="RSS"> - <link rel="stylesheet" href="../../assets/css/style.css"> - <link rel="shortcut icon" href="../../assets/favicon/favicon.ico" type="image/x-icon"> + <link rel="alternate" href="../../../atom_fr.xml" type="application/atom+xml" title="RSS"> + <link rel="stylesheet" href="../../../assets/css/style.css"> + <link rel="shortcut icon" href="../../../assets/favicon/favicon.ico" type="image/x-icon"> <title>Tag: $TITLE</title> </head> @@ -17,10 +17,10 @@ <header> <nav> <ul> - <li><a href="../../index.html">Accueil</a></li> - <li><a href="../../pages/how-to-read.html">Comment lire ce blog ?</a></li> - <li><a href="../../pages/about.html">À Propos</a></li> - <li><a href="../../atom.xml">RSS</a></li> + <li><a href="../../../index_fr.html">Accueil</a></li> + <li><a href="../../../pages/fr/how-to-read.html">Comment lire ce blog ?</a></li> + <li><a href="../../../pages/fr/about.html">À Propos</a></li> + <li><a href="../../../atom_fr.xml">RSS</a></li> </ul> </nav> </header> |