diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..76a01c0d8af9e07a98dd6de5b084207e0e64094d --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +translation-install/ +public/ +public.new/ +.vscode/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ece1ee351dc7398e1d02aa54cbbd2c4fcf26c397..c0b7400b2ab19d653db3c10a1f1720e046bf3e89 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,22 @@ +image: 'registry.fedoraproject.org/fedora:43' +variables: + GIT_SUBMODULE_STRATEGY: recursive + +translate: + stage: build + script: + - dnf install --assumeyes meson gettext glibc-all-langpacks python3-lxml python3-polib + - meson setup builddir + - meson install -C builddir + - ./html-translation/build.py -p index.html -p about.html -a privacy-policy.html -a img -a js -a style.css + artifacts: + paths: + - public + pages: stage: deploy script: - - mkdir ./public - - cp -R ./{about.html,index.html,privacy-policy.html,img,js,style.css} ./public + - find public artifacts: paths: - public diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000000000000000000000000000000000000..14f9206efa51a3e462e3cd9b32c8754886841e22 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "html-translation"] + path = html-translation + url = https://gitlab.gnome.org/Teams/Websites/tools/html-translation.git diff --git a/README.md b/README.md index 33d8179c31141148e13aef5171004d36ccecdcad..3559a76dd1f7dcb3e68e69a3e5eb2a7b6deecd22 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # Gnome.org Website Maintenance -Welcome to the Gnome.org website maintenance guide. This document contains instructions on how to maintain the static HTML website of Gnome.org. +Welcome to the [Gnome.org](www.gnome.org) website maintenance guide. This document contains instructions on how to maintain the static HTML website of Gnome.org. ## About the Gnome.org Website @@ -39,12 +39,25 @@ The sponsor logos are SVG. Before including the SVG in the page, shorten and san ## Local Testing -To ensure the javascript runs and links work correctly (site uses smart URLs), a local server is needed. We've provided a simple web server in python. To launch it in the project folder: +To ensure the javascript runs, links work correctly, and translations are available, the website has to be built to the `/public` folder using `./generate.py` and then served: +```sh +./generate.py +python3 -m http.server -d public ``` -python3 ./test.py + +For simpler development work, the untranslated website can be used: + +```sh +python3 -m http.server ``` +## Translations + +The `po/www.gnome.org.pot` file will be updated by `./generate.py` if strings changed. These changes have to be commited to the repository for new or changed strings to become translatable. + +The page can be translated on our translation system [Damned Lies](https://l10n.gnome.org/module/www-gnome-org/). + ## Deployment The GitLab CI will deal with site deployment. Once you have pushed the changes to the main branch, GitLab CI will automatically build and deploy the website to the live server. diff --git a/about.html b/about.html index eb02ccd64df489705f1b3f52078274c2499aca8a..9caacb3d8beff882038b6176f11a8e7cd42da237 100644 --- a/about.html +++ b/about.html @@ -39,12 +39,13 @@ +
diff --git a/generate.bash b/generate.bash new file mode 100755 index 0000000000000000000000000000000000000000..1677a44b096f3d6384c7f94b82939e1639c81e6e --- /dev/null +++ b/generate.bash @@ -0,0 +1,5 @@ +#!/bin/bash + +meson setup --reconfigure builddir +meson install -C builddir +./html-translation/build.py -p index.html -p about.html -a privacy-policy.html -a img -a js -a style.css diff --git a/html-translation b/html-translation new file mode 160000 index 0000000000000000000000000000000000000000..a79c4bc8758be4ef441c67c13e100125357b7d60 --- /dev/null +++ b/html-translation @@ -0,0 +1 @@ +Subproject commit a79c4bc8758be4ef441c67c13e100125357b7d60 diff --git a/index.html b/index.html index c86fe8ebb2d6263e504a9abe3e51679cba3be78b..990121322e48938317497a14677e216186db8378 100644 --- a/index.html +++ b/index.html @@ -36,13 +36,20 @@ - +
@@ -79,7 +86,7 @@
- Rather than minimizing windows, GNOME embraces the workspaces workflow. + Rather than minimizing windows, GNOME embraces the workspaces workflow.
@@ -104,7 +111,7 @@
- GNOME Circle, a new app incubator project. + GNOME Circle, a new app incubator project.

GNOME Circle

@@ -114,7 +121,7 @@
- Flathub, the best Linux app distribution marketplace. + Flathub, the best Linux app distribution marketplace.

Flathub

@@ -122,7 +129,7 @@
- dev docs + dev docs

Developer Platform

Build gorgeous apps using a completely independent technology stack.

@@ -212,7 +219,7 @@ - Igalia + Igalia
@@ -253,8 +260,8 @@ @@ -278,8 +285,8 @@ @@ -354,5 +361,12 @@

© 2025 The GNOME Project

+ +
+

Select Language

+
+
+
    +
    diff --git a/js/3dlid.js b/js/3dlid.js index 5365e7b34f6a3dc57d8aef89d6c7896cb36380e1..da300623bd9143ab3bedaa2dac541cd14dc13e2e 100644 --- a/js/3dlid.js +++ b/js/3dlid.js @@ -19,7 +19,7 @@ function init() { // Load the 3D model const loader = new THREE.GLTFLoader(); - loader.load('./img/3dlid.gltf', function (gltf) { + loader.load('/img/3dlid.gltf', function (gltf) { laptop = gltf.scene; scene.add(laptop); diff --git a/meson.build b/meson.build new file mode 100644 index 0000000000000000000000000000000000000000..7ed545e01f5d53dcfd443af2aafcf6344ade61e7 --- /dev/null +++ b/meson.build @@ -0,0 +1,8 @@ +project( + 'www-gnome-org', + default_options: ['prefix=' + meson.current_source_dir() + '/translation-install'], +) + +i18n = import('i18n') + +subdir('po') diff --git a/po/LINGUAS b/po/LINGUAS new file mode 100644 index 0000000000000000000000000000000000000000..7673daa944ec436c99a79a259b7c661a54b081e6 --- /dev/null +++ b/po/LINGUAS @@ -0,0 +1 @@ +de diff --git a/po/de.po b/po/de.po new file mode 100644 index 0000000000000000000000000000000000000000..85cdf304af6d765594f75e453b1bb0d9c4ec778c --- /dev/null +++ b/po/de.po @@ -0,0 +1,331 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"POT-Creation-Date: \n" +"PO-Revision-Date: \n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 3.8\n" + +msgid "GNOME -- An independent computing platform for everyone" +msgstr "" + +msgid "About Us" +msgstr "Über Uns" + +msgid "Get Involved" +msgstr "Beteilige Dich" + +msgid "Donate" +msgstr "Spende" + +msgid "An independent computing platform for everyone" +msgstr "Eine unabhängige Computerplattform für alle" + +msgid "A more elegant way to use your computer" +msgstr "Ein eleganterer Weg, Deinen Computer zu benutzen" + +msgid "Hit the" +msgstr "Drücke jederzeit die" + +msgid "Super Key" +msgstr "Super Taste" + +msgid "" +"any time to get an overview, switch or launch apps, and search for anything " +"on your computer. It's magic." +msgstr "" +"um eine Übersicht zu bekommen, Apps zu wechseln oder zu starten und such " +"nach irgendetwas auf Deinem Computer. Es ist magisch." + +msgid "" +"Continue using your old computer after the end of Windows 10 support this " +"October." +msgstr "" + +msgid "Visit endof10.org" +msgstr "" + +msgid "Room to Breathe" +msgstr "" + +msgid "Spread out your work across as many workspaces as you need." +msgstr "" + +msgid "Batteries Included" +msgstr "" + +msgid "" +"GNOME comes with apps for all your everyday computing needs. They're simple " +"and consistent so once you’ve used one, each feels familiar and intuitive." +msgstr "" + +msgid "Core Apps" +msgstr "" + +msgid "Ecosystem" +msgstr "" + +msgid "GNOME Circle" +msgstr "" + +msgid "" +"Certification and mentoring program for well-designed apps built for the " +"GNOME platform." +msgstr "" + +msgid "Flathub" +msgstr "" + +msgid "" +"Get many more third party apps for GNOME on Flathub, the Linux app store." +msgstr "" + +msgid "Developer Platform" +msgstr "" + +msgid "Build gorgeous apps using a completely independent technology stack." +msgstr "" + +msgid "Developer Portal" +msgstr "" + +msgid "Design System" +msgstr "" + +msgid "" +"Every aspect of the GNOME project is open. Our software has no restrictions " +"on use and respects your privacy. Learn how to get involved:" +msgstr "" + +msgid "Code" +msgstr "" + +msgid "Design" +msgstr "" + +msgid "Translation" +msgstr "" + +msgid "Testing" +msgstr "" + +msgid "See" +msgstr "" + +msgid "other teams" +msgstr "" + +msgid "you can join to make GNOME better." +msgstr "" + +msgid "Get GNOME" +msgstr "" + +msgid "GNOME is used as the default experience across" +msgstr "" + +msgid "Red Hat Enterprise Linux" +msgstr "" + +msgid "," +msgstr "" + +msgid "Ubuntu" +msgstr "" + +msgid "Debian" +msgstr "" + +msgid "Fedora Workstation" +msgstr "" + +msgid "SUSE Linux Enterprise" +msgstr "" + +msgid "Vanilla OS" +msgstr "" + +msgid "Endless OS" +msgstr "" + +msgid ", and more." +msgstr "" + +msgid "See what's new in the" +msgstr "" + +msgid "Latest Release" +msgstr "" + +msgid "Supporting Organizations" +msgstr "" + +msgid "Infrastructure and services kindly provided by:" +msgstr "" + +msgid "Support Us" +msgstr "" + +msgid "" +"Donations are essential for us to improve our development infrastructure, " +"host community events, and keep Flathub running. Every contribution makes a " +"difference and allows us to do more." +msgstr "" + +msgid "Contact Us" +msgstr "" + +msgid "GNOME Foundation" +msgstr "" + +msgid "Code of Conduct" +msgstr "" + +msgid "Privacy" +msgstr "" + +msgid "Welcome to GNOME" +msgstr "" + +msgid "GNOME Handbook" +msgstr "" + +msgid "Issue Tracker" +msgstr "" + +msgid "Developer Center" +msgstr "" + +msgid "Latest Releases" +msgstr "" + +msgid "This Week in GNOME" +msgstr "" + +msgid "Events" +msgstr "" + +msgid "Forum" +msgstr "" + +msgid "Planet GNOME" +msgstr "" + +msgid "Logo & Brand" +msgstr "" + +msgid "Mastodon icon" +msgstr "" + +msgid "Youtube icon" +msgstr "" + +msgid "Matrix icon" +msgstr "" + +msgid "© 2025 The GNOME Project" +msgstr "" + +msgid "GNOME -- About" +msgstr "" + +msgid "The GNOME Story" +msgstr "" + +msgid "" +"The GNOME project was founded in 1997 by two students, Miguel de Icaza and " +"Federico Mena. Their goal: to take on the tech giants of the day, and build " +"a completely free desktop operating system. From that small beginning, GNOME " +"grew to become a global phenomenon. Its community spread across the world, " +"and the project spawned many components which themselves went on to become " +"critical elements of Linux-based systems." +msgstr "" + +msgid "" +"Today, GNOME's software is used by millions of people all over the world. It " +"provides the user experience for all the main Linux distributions, and the " +"project continues to develop vital software which is relied upon far beyond " +"the desktop." +msgstr "" + +msgid "What we make" +msgstr "" + +msgid "" +"GNOME today produces and maintains around 120 software modules. Together, " +"these components provide:" +msgstr "" + +msgid "" +"The graphical GNOME user system, including the system interface, display " +"systems, window management, input handling, and system settings and behavior." +msgstr "" + +msgid "A" +msgstr "" + +msgid "suite of essential apps" +msgstr "" + +msgid "which are included as part of the GNOME system." +msgstr "" + +msgid "" +"GNOME's application development platform and runtime environment, which " +"allows developers to create their own apps." +msgstr "" + +msgid "" +"This software is developed in collaboration with the wider open source Linux " +"ecosystem, which provides the lower level software on which GNOME depends." +msgstr "" + +msgid "Who we are" +msgstr "" + +msgid "" +"GNOME is a thriving community of contributors and supporting organizations. " +"Our project is made up of participants from across the globe, and includes " +"volunteers and paid contributors. Our work encompasses every aspect of the " +"software development process, from design, through to development, testing, " +"and documentation." +msgstr "" + +msgid "The GNOME community is backed and supported by the non-profit" +msgstr "" + +msgid "." +msgstr "" + +msgid "Our mission" +msgstr "" + +msgid "" +"Miguel and Federico's vision of freedom remains at the heart of the GNOME " +"project. Open source principles, equality of participation, and " +"collaboration remain guiding principles for the project." +msgstr "" + +msgid "" +"GNOME's openness is also one of its greatest strengths, allowing it to " +"provide unique learning opportunities for its participants, and for its " +"software to be used in the most critical situations, from space flight " +"control rooms, to automotive systems, to the laptops of those threatened by " +"oppressive regimes." +msgstr "" + +msgid "" +"Today, GNOME continues its mission to promote software freedom, expanding " +"its endeavours to new computing frontiers. The project leads in several " +"critical areas, from the movement to create a free and independent app " +"ecosystem, to open user centered design practices, to open mobile." +msgstr "" + +msgid "We invite you to join us." +msgstr "" diff --git a/po/meson.build b/po/meson.build new file mode 100644 index 0000000000000000000000000000000000000000..d33caddbce6f4a39153e64b45cc216f61967680d --- /dev/null +++ b/po/meson.build @@ -0,0 +1,4 @@ +i18n.gettext( + meson.project_name(), + preset: 'glib', +) diff --git a/po/www-gnome-org.pot b/po/www-gnome-org.pot new file mode 100644 index 0000000000000000000000000000000000000000..552eec3ad8215fd87de6ee2de7f9767cca60cfc3 --- /dev/null +++ b/po/www-gnome-org.pot @@ -0,0 +1,417 @@ +# +msgid "" +msgstr "" + +msgid "GNOME — An independent computing platform for everyone" +msgstr "" + +msgid "GNOME" +msgstr "" + +msgid "An easy and elegant way to use your computer" +msgstr "" + +msgid "About Us" +msgstr "" + +msgid "Get Involved" +msgstr "" + +msgid "Donate" +msgstr "" + +msgid "Laptop running GNOME" +msgstr "" + +msgid "An independent computing platform for everyone" +msgstr "" + +msgid "A more elegant way to use your computer" +msgstr "" + +msgid "Hit the" +msgstr "" + +msgid "Super Key" +msgstr "" + +msgid "" +"any time to get an overview, switch or launch apps, and search for anything " +"on your computer. It's magic." +msgstr "" + +msgid "Hand pushing the super key, opening the OS overview" +msgstr "" + +msgid "" +"Continue using your old computer after the end of Windows 10 support this " +"October." +msgstr "" + +msgid "Visit endof10.org" +msgstr "" + +msgid "" +"Rather than minimizing windows, GNOME embraces the workspaces workflow." +msgstr "" + +msgid "Room to Breathe" +msgstr "" + +msgid "Spread out your work across as many workspaces as you need." +msgstr "" + +msgid "Comes with Apps. Many app icons." +msgstr "" + +msgid "Batteries Included" +msgstr "" + +msgid "" +"GNOME comes with apps for all your everyday computing needs. They're simple " +"and consistent so once you’ve used one, each feels familiar and intuitive." +msgstr "" + +msgid "Core Apps" +msgstr "" + +msgid "Ecosystem" +msgstr "" + +msgid "GNOME Circle, a new app incubator project." +msgstr "" + +msgid "GNOME Circle" +msgstr "" + +msgid "" +"Certification and mentoring program for well-designed apps built for the " +"GNOME platform." +msgstr "" + +msgid "Flathub, the best Linux app distribution marketplace." +msgstr "" + +msgid "Flathub" +msgstr "" + +msgid "" +"Get many more third party apps for GNOME on Flathub, the Linux app store." +msgstr "" + +msgid "dev docs" +msgstr "" + +msgid "Developer Platform" +msgstr "" + +msgid "Build gorgeous apps using a completely independent technology stack." +msgstr "" + +msgid "Developer Portal" +msgstr "" + +msgid "Design System" +msgstr "" + +msgid "" +"Every aspect of the GNOME project is open. Our software has no restrictions " +"on use and respects your privacy. Learn how to get involved:" +msgstr "" + +msgid "Code" +msgstr "" + +msgid "Design" +msgstr "" + +msgid "Translation" +msgstr "" + +msgid "Testing" +msgstr "" + +msgid "See" +msgstr "" + +msgid "other teams" +msgstr "" + +msgid "you can join to make GNOME better." +msgstr "" + +msgid "Design and Develop for GNOME." +msgstr "" + +msgid "Get GNOME" +msgstr "" + +msgid "GNOME is used as the default experience across" +msgstr "" + +msgid "Red Hat Enterprise Linux" +msgstr "" + +msgid "," +msgstr "" + +msgid "Ubuntu" +msgstr "" + +msgid "Debian" +msgstr "" + +msgid "Fedora Workstation" +msgstr "" + +msgid "SUSE Linux Enterprise" +msgstr "" + +msgid "Vanilla OS" +msgstr "" + +msgid "Endless OS" +msgstr "" + +msgid ", and more." +msgstr "" + +msgid "See what's new in the" +msgstr "" + +msgid "Latest Release" +msgstr "" + +msgid "Download GNOME" +msgstr "" + +msgid "Supporting Organizations" +msgstr "" + +msgid "Google" +msgstr "" + +msgid "SUSE" +msgstr "" + +msgid "Canonical" +msgstr "" + +msgid "Codethink" +msgstr "" + +msgid "Red Hat" +msgstr "" + +msgid "Endless" +msgstr "" + +msgid "Igalia" +msgstr "" + +msgid "Infrastructure and services kindly provided by:" +msgstr "" + +msgid "ClouDNS" +msgstr "" + +msgid "Abusix" +msgstr "" + +msgid "Fastly" +msgstr "" + +msgid "CDN77" +msgstr "" + +msgid "OSU OSL" +msgstr "" + +msgid "Equinix Metal" +msgstr "" + +msgid "Digital Ocean" +msgstr "" + +msgid "Amazon Web Services" +msgstr "" + +msgid "MacStadium" +msgstr "" + +msgid "Support Us" +msgstr "" + +msgid "" +"Donations are essential for us to improve our development infrastructure, " +"host community events, and keep Flathub running. Every contribution makes a " +"difference and allows us to do more." +msgstr "" + +msgid "Contact Us" +msgstr "" + +msgid "GNOME Foundation" +msgstr "" + +msgid "Code of Conduct" +msgstr "" + +msgid "Privacy" +msgstr "" + +msgid "Welcome to GNOME" +msgstr "" + +msgid "GNOME Handbook" +msgstr "" + +msgid "Issue Tracker" +msgstr "" + +msgid "Developer Center" +msgstr "" + +msgid "Latest Releases" +msgstr "" + +msgid "This Week in GNOME" +msgstr "" + +msgid "Events" +msgstr "" + +msgid "Forum" +msgstr "" + +msgid "Planet GNOME" +msgstr "" + +msgid "Logo & Brand" +msgstr "" + +msgid "Mastodon icon" +msgstr "" + +msgid "Youtube icon" +msgstr "" + +msgid "Matrix icon" +msgstr "" + +msgid "© 2025 The GNOME Project" +msgstr "" + +msgid "Select Language" +msgstr "" + +msgid "Close" +msgstr "" + +msgid "GNOME — About" +msgstr "" + +msgid "The GNOME Story" +msgstr "" + +msgid "" +"The GNOME project was founded in 1997 by two students, Miguel de Icaza and " +"Federico Mena. Their goal: to take on the tech giants of the day, and build " +"a completely free desktop operating system. From that small beginning, GNOME" +" grew to become a global phenomenon. Its community spread across the world, " +"and the project spawned many components which themselves went on to become " +"critical elements of Linux-based systems." +msgstr "" + +msgid "" +"Today, GNOME's software is used by millions of people all over the world. It" +" provides the user experience for all the main Linux distributions, and the " +"project continues to develop vital software which is relied upon far beyond " +"the desktop." +msgstr "" + +msgid "GNOME people" +msgstr "" + +msgid "What We Make" +msgstr "" + +msgid "What we make" +msgstr "" + +msgid "" +"GNOME today produces and maintains around 120 software modules. Together, " +"these components provide:" +msgstr "" + +msgid "" +"The graphical GNOME user system, including the system interface, display " +"systems, window management, input handling, and system settings and " +"behavior." +msgstr "" + +msgid "A" +msgstr "" + +msgid "suite of essential apps" +msgstr "" + +msgid "which are included as part of the GNOME system." +msgstr "" + +msgid "" +"GNOME's application development platform and runtime environment, which " +"allows developers to create their own apps." +msgstr "" + +msgid "" +"This software is developed in collaboration with the wider open source Linux" +" ecosystem, which provides the lower level software on which GNOME depends." +msgstr "" + +msgid "Who we are" +msgstr "" + +msgid "" +"GNOME is a thriving community of contributors and supporting organizations. " +"Our project is made up of participants from across the globe, and includes " +"volunteers and paid contributors. Our work encompasses every aspect of the " +"software development process, from design, through to development, testing, " +"and documentation." +msgstr "" + +msgid "The GNOME community is backed and supported by the non-profit" +msgstr "" + +msgid "." +msgstr "" + +msgid "Our mission" +msgstr "" + +msgid "" +"Miguel and Federico's vision of freedom remains at the heart of the GNOME " +"project. Open source principles, equality of participation, and " +"collaboration remain guiding principles for the project." +msgstr "" + +msgid "" +"GNOME's openness is also one of its greatest strengths, allowing it to " +"provide unique learning opportunities for its participants, and for its " +"software to be used in the most critical situations, from space flight " +"control rooms, to automotive systems, to the laptops of those threatened by " +"oppressive regimes." +msgstr "" + +msgid "" +"Today, GNOME continues its mission to promote software freedom, expanding " +"its endeavours to new computing frontiers. The project leads in several " +"critical areas, from the movement to create a free and independent app " +"ecosystem, to open user centered design practices, to open mobile." +msgstr "" + +msgid "We invite you to join us." +msgstr "" + +msgid "Our Mission" +msgstr "" diff --git a/style.css b/style.css index 32818ab4aac5863cad9759cf88726a81daf158a3..af84e954270de8e72691cc6c4e375e6d0918fab7 100755 --- a/style.css +++ b/style.css @@ -519,7 +519,9 @@ kbd { margin-bottom: 1rem; } ul.nav a { - display: inline-block; + display: flex; + align-items: center; + min-height: 40px; padding: 0.3rem 1rem; text-decoration: none; font-weight: 500; @@ -541,6 +543,15 @@ kbd { } } + ul.nav a svg { + height: 22px; + width: 22px; + } + + ul.nav a svg path { + fill: var(--fg-color); + } + ul.nav p { display: inline-block; padding: 0.3rem 1rem; @@ -948,3 +959,71 @@ ul.bottomlinks { } .social { fill: rgba(255,255,255,0.6); transition: all 200ms ease-out; } .social:hover { fill: rgba(255,255,255,1); } + +/* DIALOG */ + +dialog { + max-width: 600px; + width: auto; + background: var(--tile-bg); + border-radius: 9px; + border: none; + color: var(--fg-color); + transition: transform 200ms; +} + +dialog:open { + transform: scale(1); +} + +@starting-style { + dialog:open { + transform: scale(0.5); + } +} + +dialog::backdrop { + background-color: rgba(100, 100, 100, 0.5); + backdrop-filter: blur(10px); +} + +dialog header { + display: flex; + align-items: center; +} + +dialog header h3 { + margin: 0; +} + +dialog form { + display: contents; +} + +dialog button.close { + all: revert; + margin-inline-start: auto; + border-radius: 99px; + border: none; + color: var(--tile-bg); + background-color: var(--fg-color); + padding: 4px 16px; +} + +dialog button.close:hover { + opacity: 0.8; +} + +dialog ul { + columns: 10em auto; + list-style: none; +} + +dialog li { + padding: .3em 1em; +} + +dialog a { + text-decoration: underline; + color: var(--fg-color); +} diff --git a/test.py b/test.py deleted file mode 100644 index ba4c40f460f892ab3352cc80719f81d0cf6186d3..0000000000000000000000000000000000000000 --- a/test.py +++ /dev/null @@ -1,21 +0,0 @@ -import http.server -import pathlib - -class MyHandler(http.server.SimpleHTTPRequestHandler): - def do_GET(self): - # Get the requested path - requested_path = pathlib.Path(self.path.lstrip('/')) - - # If it's a directory, serve index.html - if self.path.endswith('/'): - self.path += 'index.html' - - # If the file doesn't exist and doesn't have an extension, try adding .html - elif not requested_path.suffix and not requested_path.exists(): - self.path += '.html' - - return super().do_GET() - -if __name__ == '__main__': - http.server.test(HandlerClass=MyHandler) -