commit 7a32292dda7c8585f24c9f6346cbbfd05eb3f35c Author: Fabian Montero Date: Sat Aug 3 15:30:31 2024 -0600 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..46f5006 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +public/* diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..82ea541 --- /dev/null +++ b/default.nix @@ -0,0 +1,14 @@ +{ stdenv, zola, lib, ... }: +with lib; + +stdenv.mkDerivation { + pname = "posixlycorrect.com"; + version = "0.0.1"; + + src = ./posixlycorrect; + + buildPhase = '' + ${getExe zola} build --output-dir $out + ''; +} + diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..3986008 --- /dev/null +++ b/flake.lock @@ -0,0 +1,58 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1719426051, + "narHash": "sha256-yJL9VYQhaRM7xs0M867ZFxwaONB9T2Q4LnGo1WovuR4=", + "path": "/nix/store/f0ddmw6s86y567yg06h5019z72szbzch-source", + "rev": "89c49874fb15f4124bf71ca5f42a04f2ee5825fd", + "type": "path" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..84d7beb --- /dev/null +++ b/flake.nix @@ -0,0 +1,18 @@ +{ + inputs = { + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { inherit system; }; + in + { + formatter = pkgs.nixpkgs-fmt; + + packages = rec { + default = posixlycorrect; + posixlycorrect = pkgs.callPackage ./. { }; + }; + }); +} diff --git a/posixlycorrect/config.toml b/posixlycorrect/config.toml new file mode 100644 index 0000000..3c7f48a --- /dev/null +++ b/posixlycorrect/config.toml @@ -0,0 +1,28 @@ +base_url = "https://posixlycorrect.com" +compile_sass = true +build_search_index = true +theme = "terminimal" +title = "~" + +[markdown] +highlight_code = true +highlight_theme = "ayu-dark" + +[extra] +accent_color = "orange" +background_color = "dark" +author = "Fabián Montero" +logo_text = "[~] posixlycorrect" +use_full_hack_font = true +page_titles = "combined" +favicon = "/favicon.png" +favicon_mimetype = "image/png" + +menu_items = [ + {name = "about", url = "$BASE_URL/about"}, + {name = "blog", url = "$BASE_URL/blog"}, + {name = "wiki", url = "https://wiki.posixlycorrect.com", newtab = true}, + {name = "meet", url = "$BASE_URL/meet"}, + {name = "lib", url = "$BASE_URL/lib"}, + {name = "analog photography", url = "$BASE_URL/analog-photography"}, +] diff --git a/posixlycorrect/content/_index.md b/posixlycorrect/content/_index.md new file mode 100644 index 0000000..f7ba421 --- /dev/null +++ b/posixlycorrect/content/_index.md @@ -0,0 +1,2 @@ ++++ ++++ \ No newline at end of file diff --git a/posixlycorrect/content/about.md b/posixlycorrect/content/about.md new file mode 100644 index 0000000..bf509c5 --- /dev/null +++ b/posixlycorrect/content/about.md @@ -0,0 +1,35 @@ ++++ +title = "about" ++++ +name: Fabián Montero +bio: Linux Embedded Engineer +projects: [https://sr.ht/~fabianmv/](https://sr.ht/~fabianmv/) +email: fabian [at] posixlycorrect [dot] com +gpg key: +```txt +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mDMEZHlROBYJKwYBBAHaRw8BAQdAhzA1JCghQ6KoHOuf6JPQhEmchHLVXFVye4I2 +pRUOUMO0KkZhYmlhbiBNb250ZXJvIDxmYWJpYW5AcG9zaXhseWNvcnJlY3QuY29t +PoiUBBMWCgA8FiEEeqJ35gSkFzkWu7TpH/rDXheYF08FAmR5UTgCGwMFCQlmAYAE +CwkIBwQVCgkIBRYCAwEAAh4FAheAAAoJEB/6w14XmBdPP2EA/i9ugFxpIFF6oOQs +clMfr+sNj6Il0OUTJK0dqpp4mGorAP0awa6nfhU8T1Ju7UWr6cfSmnL4bM6M/4Z3 +D+AF/L5PBokCMwQQAQoAHRYhBOd6gIv5qVXWaO7qZHP6nJy18CSbBQJkeVKDAAoJ +EHP6nJy18CSbzTkP/Reio0ObRrRW+QSw62ZXrUG0mFcNeeoM9amldCToFRyGnSDu +wtZ9nqwLiTJ01VPBOsEZLsl4VonO3rdadqnMTZ3XqKK9VHBl6UNot3DQ8INDAcko +GW1zvEdxNkpMxhtAja0JkcBdG7+zxc2aEGeKfEna2qDXA+xtYw5+pssOWYMip7hm +jQ2NzYMYav2KYRBC7eXTkAIIIJi/l9pR1IwHtY3a0gfbkQymgCyt5wVG6LneYFIR ++ycNVCObwyP8gFASdId0bWnA23rkilc9ZBOCps/cGfDLM+KQ+sLAWBFBQyQeEjcv +tU+pLXncAEvWy/SFmprVSLDQMMooFaEJMZChojGcCkwAPG1twsihqIA3E44Q3/+G +K0gZN57jGMnfvuQiuLuttOMdu27KwEu++t3YUt0P6S4kARpx51zZJ7A2Yj2u22aM +7EL8qq6KTNdNoS7FgwQkrWbokdDZIl0HV+5TeMQfylPqOPhuFK/1A9qztqknBPVY +QUx2t6FZUgH9sT7uD+5gXxyeqmEIFo2i6D8G/4TEPbKtWivJfeOqDEBn4QEY2nvE +zgJLLU5XCv9xPz5rizRCa+h+kg+i4mH6fLCBCCAPXsbAAo0gUlGJvX4slPh7uPOa +T2r7A/7uezResBzP/L/vostlmjO5c8cOl9Wc6D1kRZq17/AjMUgy6+KR3iVnuDgE +ZHlROBIKKwYBBAGXVQEFAQEHQPRbCS2p8xpt3fRxfyRnDOdH9pULY4NtGmZUS0ve +ZGkTAwEIB4h+BBgWCgAmFiEEeqJ35gSkFzkWu7TpH/rDXheYF08FAmR5UTgCGwwF +CQlmAYAACgkQH/rDXheYF0/65AD+LtDeedCYv9zs+1Ia3DvejVZM256WEH+dRH5h +Pm3RzQ8A/2+bXRnfsgGqacj/kKEL3spuos95ngRNRkrQ39nc1koP +=PAxr +-----END PGP PUBLIC KEY BLOCK----- +``` diff --git a/posixlycorrect/content/analog_photography.md b/posixlycorrect/content/analog_photography.md new file mode 100644 index 0000000..73823bf --- /dev/null +++ b/posixlycorrect/content/analog_photography.md @@ -0,0 +1,12 @@ ++++ +title = "analog_photography" ++++ + +My main hobby is analog photography. I own a couple of *point and shoots* but I +mainly use a Nikon F2 (with the DP-1 meter) and a Minolta XG7. + +Here are some decent photos I have been able to take. + +F353 + +A bunch of photos missing, gotta add more later. diff --git a/posixlycorrect/content/art_collection.md b/posixlycorrect/content/art_collection.md new file mode 100644 index 0000000..ca1eee2 --- /dev/null +++ b/posixlycorrect/content/art_collection.md @@ -0,0 +1,25 @@ ++++ +title = "art_collection" ++++ +I own a very small art collection. Here are some photos of the pieces in it and +some info about them. + +# La tertulia +Screen Printing +35x45cm +2021 + +La Tertulia is a screen printing ("serigrafía", in spanish) by Costa Rican +artist Rafa Gutierrez. + +![La Tertulia](../art_collection/la_tertulia1.jpg) + +![La Tertulia](../art_collection/la_tertulia2.jpg) + +This is how I framed it: + +![La Tertulia](../art_collection/la_tertulia3.jpg) + +This piece has a "sister" which I gifted to my father. It's called "Caribe": + +![Caribe](../art_collection/caribe.jpg) diff --git a/posixlycorrect/content/blog.md b/posixlycorrect/content/blog.md new file mode 100644 index 0000000..ee000bb --- /dev/null +++ b/posixlycorrect/content/blog.md @@ -0,0 +1,6 @@ ++++ +title = "blog_posts" ++++ +## [2023-06-02: building a site with zola and sourcehut](@/blog/building_a_site_with_zola_and_sourcehut.md) +## [2023-09-19: introduction to gpg key usage](@/blog/introduction_to_gpg_key_usage.md) +## [2024-05-22: Stellaris virtual rush build](@/blog/stellaris_tall_virtual_build.md) \ No newline at end of file diff --git a/posixlycorrect/content/blog/building_a_site_with_zola_and_sourcehut.md b/posixlycorrect/content/blog/building_a_site_with_zola_and_sourcehut.md new file mode 100644 index 0000000..d7a99fa --- /dev/null +++ b/posixlycorrect/content/blog/building_a_site_with_zola_and_sourcehut.md @@ -0,0 +1,137 @@ ++++ +title = "building a site with zola and sourcehut" +date = 2023-06-02 ++++ + +# Introduction + +The following is a small tutorial on how to build a static webpage using +Zola and +Sourcehut's build service. + +This guide is kindof redundant since Zola's documentatioin is already very +clear, but I want to write a first post in order to test this site. + +
+ +# Prerequisites + +First off, download Zola using your package manager. +Installation instructions can be found on their site. + +After that, create an account on Sourcehut. I paid for the +"Amateur Hackers" tier as I'm just getting started with this project. + +
+ +# Creating a static webpage + +All commands assume you are on the root of your project. + +
+ +### Zola + +Once you've downloaded Zola, create an empty dir, initialize you site and +initialize a git repo: +```bash +$ mkdir www && cd www +$ zola init posixlycorrect.com +$ git init +``` + +Test everything is fine: +```bash +$ zola serve +``` + +If it is, download a theme: +```bash +$ mkdir -p themes +$ cd themes +$ git clone https://github.com/pawroman/zola-theme-terminimal.git +``` + +Add content to your site: +```bash +$ mkdir -p content +$ cd content +$ nvim _index.md ## add to this whatever your theme needs in order to work + ## usually this is detailed on the theme's docs + +$ nvim blog.mb ## landing page for posixlycorrect.com/blog +$ mkdir blog && cd blog +$ nvim building_a_site_with_zola_and_sourcehut.md ## your first post +$ cd .. +$ nvim about.md ## your about page +``` + +Check that everything looks good: +```bash +$ zola serve +``` + +
+ +### Sourcehut + +Your site is now ready to be published! In order to do that, commit your changes +and add a remote repo from sourcehut: +```bash +$ git add . +$ git commit +$ git remote add origin git@git.sr.ht:~fabianmv/posixlycorrect.com +``` + +Add a build manifest so sourcehut knows how to publish your site: +```bash +$ nvim .build.yml +``` + +My manifest looks like this: +```yaml +image: alpine/edge +packages: + - hut + - zola +oauth: pages.sr.ht/PAGES:RW +environment: + site: posixlycorrect.com +sources: + - https://git.sr.ht/~fabianmv/posixlycorrect.com +tasks: + - build: | + cd posixlycorrect.com + mkdir -p templates + zola build + - package: | + cd posixlycorrect.com + tar -C public -cvz . > ../site.tar.gz + - upload: | + hut pages publish -d $site site.tar.gz +``` + +Add and commit your changes and push your repo: +```bash +$ git add . +$ git commit +$ git push +``` + +Your website now should be visible! Updating it is a matter of making changes +and pushing to your repo. + +Good luck! + +If you have any questions, feel free to email me. + + +
+ +--- + +Good luck! + +If you have any questions, feel free to email me. diff --git a/posixlycorrect/content/blog/introduction_to_gpg_key_usage.md b/posixlycorrect/content/blog/introduction_to_gpg_key_usage.md new file mode 100644 index 0000000..9143247 --- /dev/null +++ b/posixlycorrect/content/blog/introduction_to_gpg_key_usage.md @@ -0,0 +1,318 @@ ++++ +title = "introduction to gpg key usage" +date = 2023-09-19 ++++ + +# Introduction + +The following is an introductory tutorial on how to use GPG keys to send secure +and trusted messages across the internet. + +GPG it is widely used to send secure an verified messages all over the internet, +including in the Linux Kernel project!. In order for it to work, everyone has to +have a key-pair. + +Key pairs consist of two cryptographic keys: a public key and a private key. +The public key is used to encrypt data or verify digital signatures, and it can +be freely shared with others. Conversely, the private key is kept secret and is +used to decrypt data encrypted with the corresponding public key or to create +digital signatures. When someone wants to send you an encrypted message, they +use your public key, which only you can decrypt using your private key. +Similarly, when you digitally sign a file, others can verify its +authenticity using your public key. This asymmetric key pair system ensures +secure communication and data integrity in various applications, such as email +encryption and software distribution. + +More info on the official website. + +In this guide, the following topics will be covered: +- Generate your personal key pair +- Export your public key with --armor so you can easily share it +- Upload your public key to various key servers so you can even more easily +share it +- Encrypt and decrypt a file +- Setup thunderbird to send and receive encrypted emails (cominng soon) +- Setup (neo)mutt to send and receive encrypted emails (coming soon) + +
+ + +# Prerequisites + +All you are going to need is the +gnupg package. Get it using your distro's package manager. + +Lets get started. + +
+ + +# Generating your personal key pair + +To create a key pair, run the following command: + +```bash +$ gpg --full-gen-key +``` + +You should get something like this: +```bash +Please select what kind of key you want: + (1) RSA and RSA + (2) DSA and Elgamal + (3) DSA (sign only) + (4) RSA (sign only) + (9) ECC (sign and encrypt) *default* + (10) ECC (sign only) + (14) Existing key from card +Your selection? +``` + +Select option 9 (which is the default anyways), then you'll get something like +this: +```bash +Please select which elliptic curve you want: + (1) Curve 25519 *default* + (4) NIST P-384 + (6) Brainpool P-256 +Your selection? +``` +Select the default option again. + +Then, choose an expiration date: +```bash +Please specify how long the key should be valid. + 0 = key does not expire + = key expires in n days + w = key expires in n weeks + m = key expires in n months + y = key expires in n years +Key is valid for? +``` + +I normally choose a couple of years. It's not a good idea to have a key never +expire. + +Now GPG will create an identity for you: +```bash +GnuPG needs to construct a user ID to identify your key. + +Real name: +Email address: +Comment: +``` + +Enter a name to identify yourself (usually first and last name), your email and +optionally a comment. Normally the comment is left blank. + +After that, GPG will ask you to add a passphrase to protect your key. Enter a +secure passphrase and GPG will have generated your key! + +You should see output similar to this: +```bash +pub ed25519/0x1FFAC35E1798174F 2023-06-02 [SC] [expires: 2028-05-31] + Key fingerprint = 7AA2 77E6 04A4 1739 16BB B4E9 1FFA C35E 1798 174F +uid [ultimate] Fabian Montero +sub cv25519/0xEA4F0B28F9C039EB 2023-06-02 [E] [expires: 2028-05-31] +``` + +This is the typical way in which gpg displays keys. Lets understand this output. + +
+ +### Overview of the anatomy of a GPG key + +This will only be a quick overview, if you want more information on this, check +out the following links: +- GPG docs +- Anatomy of a GPG Key, by David Steele (much more detailed than +this section) +- A question on stack exchange that overviews this topic + +Lets take a look at the first line of the output: +```bash +pub ed25519/0x1FFAC35E1798174F 2023-06-02 [SC] [expires: 2028-05-31] +``` + +This tells us the ***type of entry*** that we're looking at. And it tells us a couple +of things: +- `pub`: This is a public key +- `ed25519`: This key uses a elliptic curve Diffie–Hellman (ECDH) key agreement scheme +(I have no clue what that is, but as I understand it, this is most secure key +technology developed thus far) +- `0x1FFAC35E1798174F`: is the key id of your key, this is derived from the +key's fingerprint +- `2023-06-02` date in which the key was generated +- `[SC]` means that this key has the following two capabilities: ***sign*** and +***certify*** +- `[expires: 2028-05-31]` expiration date of the key + +The next line looks like this: +```bash + Key fingerprint = 7AA2 77E6 04A4 1739 16BB B4E9 1FFA C35E 1798 174F +``` +This is the fingerprint of your key (more on what this is in a moment). + +The next line looks like this: +```bash +uid [ultimate] Fabian Montero +``` +This is the uid that corresponds to this key. The `[ultimate]` string means that +this key is ultimately trusted. Normally this means that the private key is also +available. + +Finally, the last line looks like this: +```bash +sub cv25519/0xEA4F0B28F9C039EB 2023-06-02 [E] [expires: 2028-05-31] +``` + +This is a subkey of your key. This subkey is bound to your normal key. + +- `sub`: This is a subkey +- `cv25519`: This key uses a elliptic curve Diffie–Hellman (ECDH) key agreement scheme +- `0xEA4F0B28F9C039EB`: is the key id of your subkey, this is derived from the +key's fingerprint +- `2023-06-02` date in which the key was generated +- `[E]` means that this key has the following two capability: ***encrypt*** +- `[expires: 2028-05-31]` expiration date of the key + +
+ + +# Exporting your key with --armor +One way to export your public key is to export its armor. To do that, run the +following command: +```bash +$ gpg --export --armor 7AA277E604A4173916BBB4E91FFAC35E1798174F +``` + +Replacing the fingerprint with your key's fingerprint, of course. + +This will output something like this: +```bash +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mDMEZHlROBYJKwYBBAHaRw8BAQdAhzA1JCghQ6KoHOuf6JPQhEmchHLVXFVye4I2 +pRUOUMO0KkZhYmlhbiBNb250ZXJvIDxmYWJpYW5AcG9zaXhseWNvcnJlY3QuY29t +PoiUBBMWCgA8FiEEeqJ35gSkFzkWu7TpH/rDXheYF08FAmR5UTgCGwMFCQlmAYAE +CwkIBwQVCgkIBRYCAwEAAh4FAheAAAoJEB/6w14XmBdPP2EA/i9ugFxpIFF6oOQs +clMfr+sNj6Il0OUTJK0dqpp4mGorAP0awa6nfhU8T1Ju7UWr6cfSmnL4bM6M/4Z3 +D+AF/L5PBokCMwQQAQoAHRYhBOd6gIv5qVXWaO7qZHP6nJy18CSbBQJkeVKDAAoJ +EHP6nJy18CSbzTkP/Reio0ObRrRW+QSw62ZXrUG0mFcNeeoM9amldCToFRyGnSDu +wtZ9nqwLiTJ01VPBOsEZLsl4VonO3rdadqnMTZ3XqKK9VHBl6UNot3DQ8INDAcko +GW1zvEdxNkpMxhtAja0JkcBdG7+zxc2aEGeKfEna2qDXA+xtYw5+pssOWYMip7hm +jQ2NzYMYav2KYRBC7eXTkAIIIJi/l9pR1IwHtY3a0gfbkQymgCyt5wVG6LneYFIR ++ycNVCObwyP8gFASdId0bWnA23rkilc9ZBOCps/cGfDLM+KQ+sLAWBFBQyQeEjcv +tU+pLXncAEvWy/SFmprVSLDQMMooFaEJMZChojGcCkwAPG1twsihqIA3E44Q3/+G +K0gZN57jGMnfvuQiuLuttOMdu27KwEu++t3YUt0P6S4kARpx51zZJ7A2Yj2u22aM +7EL8qq6KTNdNoS7FgwQkrWbokdDZIl0HV+5TeMQfylPqOPhuFK/1A9qztqknBPVY +QUx2t6FZUgH9sT7uD+5gXxyeqmEIFo2i6D8G/4TEPbKtWivJfeOqDEBn4QEY2nvE +zgJLLU5XCv9xPz5rizRCa+h+kg+i4mH6fLCBCCAPXsbAAo0gUlGJvX4slPh7uPOa +T2r7A/7uezResBzP/L/vostlmjO5c8cOl9Wc6D1kRZq17/AjMUgy6+KR3iVnuDgE +ZHlROBIKKwYBBAGXVQEFAQEHQPRbCS2p8xpt3fRxfyRnDOdH9pULY4NtGmZUS0ve +ZGkTAwEIB4h+BBgWCgAmFiEEeqJ35gSkFzkWu7TpH/rDXheYF08FAmR5UTgCGwwF +CQlmAYAACgkQH/rDXheYF0/65AD+LtDeedCYv9zs+1Ia3DvejVZM256WEH+dRH5h +Pm3RzQ8A/2+bXRnfsgGqacj/kKEL3spuos95ngRNRkrQ39nc1koP +=PAxr +-----END PGP PUBLIC KEY BLOCK----- +``` + +That string is what is known as the armor of your key. It can be saved into a +file: `fabian.gpg`, for example and be imported by others like this: + +```bash +$ gpg --import fabian.gpg +``` + +More info on armor in this Unix Stack Exchange question. + +
+ + +# Uploading your public key to the internet + +You can also upload your key to various key servers, so other people can search +for it and download it. To do this, run the following command: +```bash +$ gpg --send-keys 7AA277E604A4173916BBB4E91FFAC35E1798174F +``` + +Again, replacing my fingerprint for yours. + +You can also upload it manually to https://keys.openpgp.org/ + +
+ + +# Encrypting and decrypting a file + +Now that you have your key pair and you have published your public key, you +can start encrypting and decrypting stuff. This is extremely easy: + +To encrypt a file called `secrets.txt`, run: +```bash +$ gpg -e secrets.txt +``` + +GPG will ask you to enter recipients: +```bash +You did not specify a user ID. (you may use "-r") + +Current recipients: + +Enter the user ID. End with an empty line: +``` +Enter the email address of the recipient, so that the file is encrypted using +their public key. This way only they will be able to decrypt the file using +their corresponding private key. + +You can add more than one recipient. It is common to add yourself as a +recipient, that way you can also decrypt the file. + +This will produce a file called `secrets.txt.gpg`, which is encrypted. You can +now send this file safely to the recipient. + + +To decrypt an encrypted file, run: +```bash +$ gpg -d secrets.txt.gpg +``` + +GPG will print something like this: +```bash +gpg: encrypted with cv25519 key, ID 0xEA4F0B28F9C039EB, created 2023-06-02 + "Fabian Montero " +gpg: using "7AA277E604A4173916BBB4E91FFAC35E1798174F" as default secret key for signing +``` +And the content of the decrypted file will be printed in standard output. + +
+ + +# Setting up thunderbird to send and receive encrypted emails +I'm still working on this part of the guide. + +
+ + +# Setting up (neo)mutt to send and receive encrypted emails +I'm still working on this part of the guide. + + + +
+ +--- + +Good luck! + +If you have any questions, feel free to email me. diff --git a/posixlycorrect/content/blog/stellaris_tall_virtual_build.md b/posixlycorrect/content/blog/stellaris_tall_virtual_build.md new file mode 100644 index 0000000..188c2ee --- /dev/null +++ b/posixlycorrect/content/blog/stellaris_tall_virtual_build.md @@ -0,0 +1,194 @@ ++++ +title = "Stellaris virtual rush build" +date = 2024-05-22 ++++ + +# Introduction +This is a written version of [a video](https://youtu.be/jEf0JmFRkK4?si=xeTsbCpk_8HCt_SJ) +by [Montu Plays](https://www.youtube.com/@MontuPlays). All credit goes to them. + +It is a tall empire which leverages the new features from The Machine Age DLC. + +As far as I know, the only other necessary DLC for this build is Humanoids and +Astral Planes. + +
+
+ +# Build +- **Species:** + - Machine +- **Origin:** + - Voidforged +- **Government:** + - Democratic +- **Ethics:** + - Egalitarian + - Militarist + - Spiritualist +- **Civics:** + - Parliamentary System + - Sovereign Guardianship +- **Traits:** + - Machine (you get this by chosing the any machine portrait) + - Zero G Optimized (you get this by chosing the Voidforged origin) + - Adaptive Frames + - Mass-Produced + - Bulky + - High bandwidth + - Art Generator +- **Leader Trait:** + - Charismatic +- **Starting Solar System:** + - Void Dwellers (Sol) + + +
+
+ +# Opening +- **Unemploy researchers** in your starting habitat +- **Unemploy enforcers** in your starting habitat +- Change **Diplomatic Stance** to **Isolationist** +- Change **Subjugation War Terms** to **Benevolent Vassalage** +- Change **First Contact Protocol** to **Proactive** +- Start an automatic trade to **buy of 20 minerals/month** +- Build **2 Industrial districts** in your starting habitat +- Build **1 Reactor district** in your starting habitat +- Send Science Ship to **survey Alpha Centauri** +- Turn on the **Veneration of Saints** Edict +- Turn on the **Encourage Political Thought** Edict +- **Promote** your **Egalitarian Faction** +- If you don't have an Egalitarian leader in your council, hire one and place +them there +- Send your **Military Fleet** to try and make **first contact** ASAP with as +many empires as possible +- Build a **second Science Ship** to scout around and try and make first contact +ASAP with as many empires as possible +- Build a **second Construction ship** to build as many **Minor Orbitals** on +your capital system + + +
+
+ +# Traditions & Ascension Perks +1. Prosperity + 1. Standard Construction Templates + 2. Everything else + 3. **One Vision Ascension Perk** +2. Enmity + 1. Complete the whole tradition tree + 2. **Consecrated Worlds Ascension Perk** +3. Mercantile + 1. Adaptive Economic Policies + 2. Everything else + 3. **Synthetic Age Ascension Perk** +4. Virtuality + 1. Complete the whole tradition tree + 2. Whatever Ascension Perk you want +5. Supremacy + + +
+
+ +# Council Agendas +1. Whatever you start with +1. Expand The Council +2. Evolving Society +3. Give and Take + + +
+
+ +# Post-opening +- **Build** as many **Temples** as possible on your **starting habitat** +- Build a **second habitat** on **Alpha Centauri** +- Search for another **system with the most planets** possible in your vicinity +in order to place your **third habitat** there +- **After starting your third habitat**, turn on the **Inner Focus** Edict +- Get **Planetary Unification Technology** ASAP +- If you find an **Archeological Site**, complete it and get **Celebration of** +**Diversity** or **Proclaim Religious Revelation** + + +
+
+ +# Mid-game +- After year 10, an election will come up. Make sure your **current leader does +not get re-elected** +- After completing the Emnity Tradition, change **Diplomatic Stance** to +**Antagonistic** +- Build an **Autocothon Monument** on your **second habitat** +- Build **1 Habitation District** on your **second habitat** +- Upon making first contact with other empires, **trade alloys** for their +**communications** +- After trading communications with an empire, **declare them your rival** + - **UNLESS** they are your neighbor. In that case, improve relations and try + to form a non-aggression pact in order to prevent them from attacking you +- After getting the Consecrated Worlds Ascension Perk, **consecrate any +habitable planets you find** + - If you don't have habitable planets, consecrate non-habitable ones +- After meeting another empire, **reform your government** into an **Oligarchy** + - **BEFORE SWITCHING** **un-employ** all **politicians** on all your habitats + - Get the **Exalted Priesthood Ethic** + - **Re-employ** all **politicians** after switching +- Use your **extra council slot** you got from the Evolving Society Agenda to +place an **Archpriest** in your Council + - Your council should have as many Governors as possible +- Change **Resettlement** policy to **Allowed** + - Make sure your Egalitarian Faction stays over 80% approval after this +- **Resettle worker class pops** towards your **new habitats** +- If necessary, start an automatic trade to **sell of 10 alloys/month** + - Slight loss in consumer goods is ok +- After getting Adaptive Economic Policies Tradition, Change **Trade Policy** to +**Consumer Benefits** +- Build **Zero-G Districts** on **Alpha Centauri** + - **Un-employ** all **researchers** on Alpha Centauri +- **Build** as many **Temples** as possible on your **second habitat** + - Switch it's **specialization** to **Ecclesiastical Station** +- **Build** as many **Temples** as possible on your **third habitat** + - Switch it's **specialization** to **Ecclesiastical Station** +- If necessary, start an automatic trade to **buy more minerals/month** in order +to build more districts +- Employ a **Governor with the Unifier Trait** on your **capital** + + +
+
+ +# Post mid-game +- Your **second habitat** should focus on **research**, build as many Zero-G +districts as possible, but don't employ any pops on research +- Your **third habitat** should focus on **alloys**, build as many industrial +districts as possible, but don't employ any pops on them +- After getting the Synthetic Age Ascension Perk, your **transformation** will +begin + - Select the **Real Time Approach** + - The idea is to **save up unity** until you adopt Virtuality and then + **unlock the whole tree at once** + - **Embrace the virtual world** when prompted to chose **A New Form** +- After adopting the whole Virtuality Tradition, change **Virtual Economy** +**Focus** to **Research** +- After ascending, **Restore Jobs** on all your **habitats** + - You may need to click it a couple of times +- After the month ends, you should be getting a large amount of all resources +- Switch your **alloy habitat** to be a **Foundry World** +- Switch your **research habitat** to be a **Research Station** +- **Switch** all your **Reactor Districts** in your **capital** into +**Astro-Mining Districts** +- **Replace** all your **Temples** in your **capital** for **Research labs** +- Build **Major and Minor Orbitals** **everywhere** you can +- As soon as you can, build an **Arc-Furnace** on your capital system + - Mercury is a great place to do this + + +
+
+ +# End-game +- Build a massive fleet +- Vassalize everyone \ No newline at end of file diff --git a/posixlycorrect/content/lib.md b/posixlycorrect/content/lib.md new file mode 100644 index 0000000..3db513f --- /dev/null +++ b/posixlycorrect/content/lib.md @@ -0,0 +1,8 @@ ++++ +title = "lib" ++++ +### [Art collection](@/art_collection.md) +### [Safire memo](@/safire_memo.md) +### [Places to eat out (outdated)](@/places_to_eat_out.md) +### [Two hard things](@/two_hard_things.md) +### [Visual thinking](@/visual_thinking.md) diff --git a/posixlycorrect/content/meet.md b/posixlycorrect/content/meet.md new file mode 100644 index 0000000..3f93a86 --- /dev/null +++ b/posixlycorrect/content/meet.md @@ -0,0 +1,25 @@ ++++ +title = "meet" ++++ + + + + +--- + +If you haven't been granted access, click here to request access diff --git a/posixlycorrect/content/places_to_eat_out.md b/posixlycorrect/content/places_to_eat_out.md new file mode 100644 index 0000000..86fa751 --- /dev/null +++ b/posixlycorrect/content/places_to_eat_out.md @@ -0,0 +1,76 @@ ++++ +title = "places_to_eat_out" ++++ +
    +
  • Olive Garden
  • +
  • La Hacienda Mexicana
  • +
  • Wings on Fire
  • +
  • La 45
  • +
  • El Higuerón
  • +
  • La Casona de Laly
  • +
  • Pizza Hut
  • +
  • Spoon
  • +
  • Casa Rojas
  • +
  • Neko Sushi
  • +
  • Fitos
  • +
  • Cosí
  • +
  • La Caverna de Monto
  • +
  • Cantón
  • +
  • Ichiraku Sushi
  • +
  • Taquería Taquitos
  • +
  • 95 Grados
  • +
  • Ciros
  • +
  • Family Pizza
  • +
+ + diff --git a/posixlycorrect/content/safire_memo.md b/posixlycorrect/content/safire_memo.md new file mode 100644 index 0000000..f31a1c6 --- /dev/null +++ b/posixlycorrect/content/safire_memo.md @@ -0,0 +1,54 @@ ++++ +title = "safire_memo" ++++ + +```txt +To : H. R. Haldeman +From: Bill Safire July 18, 1969. + +----------------------------------------------------------------------- + +IN EVENT OF MOON DISASTER: + + Fate has ordained that the men who went to the moon to +explore in peace will stay on the moon to rest in peace. + + These brave men, Neil Armstrong and Edwin Aldrin, know +that there is no hope for their recovery. But they also know that there +is hope for mankind in their sacrifice. + + These two men are laying down their lives in mankind's +most noble goal: the search for truth and understanding. + + They will be mourned by their families and friends; they +will be mourned by their nation; they will be mourned by the people of +the world; they will be mourned by a Mother Earth that dared send two +of her sons into the unknown. + + In their exploration, they stirred the people of the world to +feel as one; in their sacrifice, they bind more tightly the brotherhood +of man. + + In ancient days, men looked at stars and saw their heroes in +the constellations. In modern times, we do much the same, but our heroes +are epic men of flesh and blood. + + Others will follow, and surely find their way home. Man's +search will not be denied. But these men were the first, and they +will remain the foremost in our hearts. + + For every human being who looks up at the moon in the +nights to come will know that there is some corner of another world +that is forever mankind. + +PRIOR TO THE PRESIDENT'S STATEMENT: + + The President should telephone each of the widows -to-be. + +AFTER THE PRESIDENT'S STATEMENT, AT THE POINT WHEN NASA +ENDS COMMUNICATIONS WITH THE MEN: + + A clergyman should adopt the same procedure as a burial at +sea, commending their souls to "the deepest of the deep," concluding +with the Lord's Prayer. +``` diff --git a/posixlycorrect/content/two_hard_things.md b/posixlycorrect/content/two_hard_things.md new file mode 100644 index 0000000..3167441 --- /dev/null +++ b/posixlycorrect/content/two_hard_things.md @@ -0,0 +1,10 @@ ++++ +title = "two hard things in Computer Science" ++++ + +```txt +There are only two hard things in Computer Science: cache invalidation and +naming things. + +-- Phil Karlton +``` diff --git a/posixlycorrect/content/visual_thinking.md b/posixlycorrect/content/visual_thinking.md new file mode 100644 index 0000000..a5c8501 --- /dev/null +++ b/posixlycorrect/content/visual_thinking.md @@ -0,0 +1,21 @@ ++++ +title = "visual thinking" ++++ + +```txt +When I was a kid growing up in Far Rockaway, I had a friend named Bernie Walker. + +We both had "labs" at home, and we would do various "experiments". + +One time, we were discussing something - we must have been 11 or 12 at the time - +and I said, "But thinking is nothing but talking to yourself inside." + +"Oh yeah?" Bernie said. "Do you know the crazy shape of the crankshaft in a car?” + +"Yeah, what of it?" + +"Good. Now tell me: how did you describe it when you were talking to yourself?" +So I learned from Bernie that thoughts can be visual as well as verbal. + +-- Richard Feynman +``` diff --git a/posixlycorrect/static/art_collection/caribe.jpg b/posixlycorrect/static/art_collection/caribe.jpg new file mode 100644 index 0000000..48c9c2a Binary files /dev/null and b/posixlycorrect/static/art_collection/caribe.jpg differ diff --git a/posixlycorrect/static/art_collection/la_tertulia1.jpg b/posixlycorrect/static/art_collection/la_tertulia1.jpg new file mode 100644 index 0000000..09894f1 Binary files /dev/null and b/posixlycorrect/static/art_collection/la_tertulia1.jpg differ diff --git a/posixlycorrect/static/art_collection/la_tertulia2.jpg b/posixlycorrect/static/art_collection/la_tertulia2.jpg new file mode 100644 index 0000000..f2a6021 Binary files /dev/null and b/posixlycorrect/static/art_collection/la_tertulia2.jpg differ diff --git a/posixlycorrect/static/art_collection/la_tertulia3.jpg b/posixlycorrect/static/art_collection/la_tertulia3.jpg new file mode 100644 index 0000000..8ea2c60 Binary files /dev/null and b/posixlycorrect/static/art_collection/la_tertulia3.jpg differ diff --git a/posixlycorrect/static/caribe.jpg b/posixlycorrect/static/caribe.jpg new file mode 100644 index 0000000..48c9c2a Binary files /dev/null and b/posixlycorrect/static/caribe.jpg differ diff --git a/posixlycorrect/static/favicon.png b/posixlycorrect/static/favicon.png new file mode 100644 index 0000000..48d7f31 Binary files /dev/null and b/posixlycorrect/static/favicon.png differ diff --git a/posixlycorrect/themes/terminimal/LICENSE-Hack.md b/posixlycorrect/themes/terminimal/LICENSE-Hack.md new file mode 100644 index 0000000..08927e5 --- /dev/null +++ b/posixlycorrect/themes/terminimal/LICENSE-Hack.md @@ -0,0 +1,45 @@ +The work in the Hack project is Copyright 2018 Source Foundry Authors and licensed under the MIT License + +The work in the DejaVu project was committed to the public domain. + +Bitstream Vera Sans Mono Copyright 2003 Bitstream Inc. and licensed under the Bitstream Vera License with Reserved Font Names "Bitstream" and "Vera" + +### MIT License + +Copyright (c) 2018 Source Foundry Authors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +### BITSTREAM VERA LICENSE + +Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is a trademark of Bitstream, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: + +The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces. + +The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words "Bitstream" or the word "Vera". + +This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Bitstream Vera" names. + +The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. + +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. + +Except as contained in this notice, the names of Gnome, the Gnome Foundation, and Bitstream Inc., shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from the Gnome Foundation or Bitstream Inc., respectively. For further information, contact: fonts at gnome dot org. diff --git a/posixlycorrect/themes/terminimal/LICENSE.md b/posixlycorrect/themes/terminimal/LICENSE.md new file mode 100644 index 0000000..9c86862 --- /dev/null +++ b/posixlycorrect/themes/terminimal/LICENSE.md @@ -0,0 +1,48 @@ +MIT License + +Copyright (c) 2019 Paweł Romanowski + +Copyright (c) 2019 panr + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +--- + +For hugo-theme-terminal: + +The MIT License (MIT) + +Copyright (c) 2019 panr + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/posixlycorrect/themes/terminimal/README.md b/posixlycorrect/themes/terminimal/README.md new file mode 100644 index 0000000..1ce882c --- /dev/null +++ b/posixlycorrect/themes/terminimal/README.md @@ -0,0 +1,380 @@ +# Terminimal + +[![Build Status](https://github.com/pawroman/zola-theme-terminimal/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/pawroman/zola-theme-terminimal/actions/workflows/pages/pages-build-deployment) +![No JavaScript](https://img.shields.io/badge/JavaScript-none-brightgreen.svg) + +![Screenshot](../master/screenshot.png?raw=true) + +See the live demo (of the default configuration) here: +https://pawroman.github.io/zola-theme-terminimal/ + +Tested with Zola v0.16.1. Please note that earlier versions might not work because of breaking changes across Zola versions. + +#### Fork disclaimer + +This theme is a fork (not a port) of "Terminal" Hugo theme +by Radosław Kozieł (aka. panr): +https://github.com/panr/hugo-theme-terminal + +Many thanks for that outstanding original theme, Radek! + +## Changes compared to the original theme + +- Slight changes in the layout and styling. + - Content has been centered (instead of left-aligned). + - The header stripes have been spaced out. + - Tweaks to pagination, especially on mobile (small screens). + - The post title underline is dashed instead of doubly-dotted. + - All links are underlined, as per + [Brutalist Web Design Guidelines](https://www.brutalist-web.design/). + - Tweaks to header font sizes. + - Minor footer tweaks. + +- Absolutely **no JavaScript**. + - No JavaScript needed to pre-process anything. + Zola with its Sass pre-processor is the only dependency. + - There's no menu trigger. + - Things load crazy fast, as it's all static content. + - Prism.js syntax highlighting is not supported (you can use + [Zola's](https://www.getzola.org/documentation/content/syntax-highlighting/)). + +- All references to social media (e.g. Twitter, OpenGraph) have been removed. + +- All references to external URLs (e.g. Google CDN) have been removed. + This theme's static assets are meant to be served from where it's hosted. + +- [Hack](https://github.com/source-foundry/Hack) is the default font. + +- The default color theme is blue (original uses orange). + +### New features + +- You can pick the accent color as well as background color. + There's a new `dark` background. See [Configuration](#configuration) + below for details. +- Active "section" links will change color indicating the + active section. This is all static, done at template level. + +## Features retained from the original + +- 5 color themes, depending on your preference: + blue (default), green, orange, pink, red. +- The shortcodes `image` and `figure` (See [Shortcodes](#shortcodes)). +- Fully responsive. + +## How to start + +Option A: clone the theme directly into your Zola site folder: + +``` +$ git clone https://github.com/pawroman/zola-theme-terminimal.git themes/terminimal +``` + +Option B: include it as a git submodule (it's better if you plan to use CI builders): + +``` +$ git submodule add https://github.com/pawroman/zola-theme-terminimal.git themes/terminimal +``` + +Then in your `config.toml` set: + +```toml +theme = "terminimal" + +# Sass compilation is required +compile_sass = true +``` + +Also see the Zola documentation on using themes: +https://www.getzola.org/documentation/themes/installing-and-using-themes/ + +## Shortcodes + +The theme adds two custom shortcodes related to image handling. + +### `image` + +Used to show images. + +Required arguments: + +- **`src`** + +Optional arguments: + +- **`alt`** +- **`position`** (center \[default\] | left | right) +- **`style`** + +Example: + +``` +{{ image(src="/img/hello.png", alt="Hello Friend", + position="left", style="border-radius: 8px;") }} +``` + +### `figure` + +Same as `image`, but with a few extra optional arguments: + +- **`caption`** +- **`caption_position`** (center \[default\] | left | right) +- **`caption_style`** + +Example: + +``` +{{ figure(src="http://rustacean.net/assets/rustacean-flat-gesture.png", + style="width: 25%;", + position="right", + caption_position="left", + caption="Ferris, the (unofficial) Rust mascot", + caption_style="font-weight: bold; font-style: italic;") }} +``` + +## Configuration + +### Colors + +Both the accent colors and background colors are +configurable. + +By default, both accent and background are set +to `blue`. + +To configure menu, add this in `[extra]` section +of your `config.toml`: + +```toml +[extra] + +# One of: blue, green, orange, pink, red. +# Defaults to blue. +accent_color = "green" + +# One of: blue, dark, green, orange, pink, red. +# Enabling dark background will also modify primary font color +# to be darker. +# Defaults to accent color (or, if not accent color specified, to blue). +background_color = "dark" +``` + +### Logo text and link + +You can set the "logo" text and what it links to, +by modifying `config.toml` like so: + +```toml +[extra] + +# The logo text - defaults to "Terminimal theme" +logo_text = "My blog" + +# The logo link - defaults to base_url. +logo_home_link = "/take/me/away!" +``` + +### Author and copyright + +You can set the footer's copyright author name like this: + +```toml +[extra] + +# Author name: when specified, modifies the default +# copyright text. Apart from author, it will +# contain current year and a link to the theme. +author = "My Name" +``` + +If you don't like the default copyright text, +you can set it to completely custom HTML: + +```toml +[extra] + +# Copyright text in HTML format. If specified, +# entirely replaces default copyright and author. +copyright_html = "My custom copyright" +``` + +### Menu + +The menu is optional, static (all items are always shown, +no matter what the screen size) and fully user-configurable. + +To configure menu, add this in `[extra]` section +of your `config.toml`: + +```toml +[extra] + +# menu is enabled by adding menu_items (optional) +menu_items = [ + # each of these is optional, name and url are required + # $BASE_URL is going to be substituted by base_url from configuration + {name = "blog", url = "$BASE_URL"}, + + # tags should only be enabled if you have "tags" taxonomy + # see documentation below for more details + {name = "tags", url = "$BASE_URL/tags"}, + {name = "archive", url = "$BASE_URL/archive"}, + {name = "about me", url = "$BASE_URL/about"}, + + # set newtab to true to make the link open in new tab + {name = "github", url = "url-to-your-github", newtab = true}, +] +``` + +### Tags + +The theme optionally supports tags. To enable them, create +a "tags" taxonomy in your `config.toml`: + +```toml +taxonomies = [ + {name = "tags"}, +] +``` + +Enabling tags will create a new `/tags` page, and +cause them to show up in `archive` section. Note +that you still need to create a menu link to the tags +page manually. + +### Pagination + +Pagination is fully supported for post list (main site) +and intra-post (you can navigate to earlier and later posts). + +To make sure pagination works properly, you must first configure +it in `content/_index.md`: + +``` ++++ +# number of pages to paginate by +paginate_by = 2 + +# sorting order for pagination +sort_by = "date" ++++ +``` + +Then, tweak the theme's pagination config in `config.toml`: + +```toml +[extra] + +# Whether to show links to earlier and later posts +# on each post page (defaults to true). +enable_post_view_navigation = true + +# The text shown at the bottom of a post, +# before earlier/later post links. +# Defaults to "Thanks for reading! Read other posts?" +post_view_navigation_prompt = "Read more" +``` + +### Language code + +Internationalization / translation is not supported +but you can set the HTML language code for your +site: + +```toml +default_language = "en" +``` + +### Hack font subset + +By default, the theme uses a mixed subset of the Hack font. +Normal weight font uses full character set +(for Unicode icons and special symbols), but all others +(bold, italic etc) use a limited subset. + +This results in much smaller transfer sizes, but the subset +might not contain all the Unicode characters you need. + +You can enable full unicode support in `config.toml`: + +```toml +[extra] + +# Use full Hack character set, not just a subset. +# Switch this to true if you need full unicode support. +# Defaults to false. +use_full_hack_font = true +``` + +Also see [Hack's docs](https://github.com/source-foundry/Hack/blob/master/docs/WEBFONT_USAGE.md). + +### Favicon + +The theme supports adding a global favicon (applies to +all pages) to the site: + +```toml +# Optional: Global favicon URL and mimetype. +# Mimetype defaults to "image/x-icon". +# The URL should point at a file located +# in your site's "static" directory. +favicon = "/favicon.png" +favicon_mimetype = "image/png" +``` + +### Page titles + +The theme allows you to configure how the page titles (the `` elements) are rendered. + +Use `"combined"` to render titles as `"Page title | Main title"`. + +```toml +# Optional: Set how <title> elements are rendered. +# Values: +# - "main_only" -- only the main title (`config.title`) is rendered. +# - "page_only" -- only the page title (if defined) is rendered, +# falling back to `config.title` if not defined or empty. +# - "combined" -- combine like so: "page_title | main_title", +# or if page_title is not defined or empty, fall back to `main_title` +# +# Note that the main (index) page only has the main title. +page_titles = "combined" +``` + +All the configuration options are also described in +[`config.toml`](../master/config.toml). + +## Extending + +Each of the templates defines named blocks, so +it should be quite easy to customize the most common things. + +For example, if you want to add extra `<meta>` tags to the +base template, `index.html`, create file like this in `templates/index.html`: + +```html +{% extends "terminimal/templates/index.html" %} + +{% block extra_head %} + <meta name="description" content="My awesome website"/> + <meta name="keywords" content="Hacking,Programming,Ranting"/> +{% endblock %} +``` + +## How to contribute + +If you spot any bugs or wish to contribute new features, please create a new +[Pull Request](https://github.com/pawroman/zola-theme-terminimal/pulls). + +## License + +Copyright © 2019 Paweł Romanowski (pawroman) + +Original theme: Copyright © 2019 Radosław Kozieł ([@panr](https://twitter.com/panr)) + +The theme is released under the MIT License. +Check the [license file](../master/LICENSE.md) +for more information. + +The license for Hack fonts used is included in +[LICENSE-Hack.md](../master/LICENSE-Hack.md). diff --git a/posixlycorrect/themes/terminimal/config.toml b/posixlycorrect/themes/terminimal/config.toml new file mode 100644 index 0000000..7af0f3d --- /dev/null +++ b/posixlycorrect/themes/terminimal/config.toml @@ -0,0 +1,91 @@ +# Be sure to change these! +base_url = "https://pawroman.github.io/zola-theme-terminimal" +title = "Zola Terminimal theme" + +# Sass compilation is required +compile_sass = true + +# Optional: enable tags +taxonomies = [ + {name = "tags"} +] + +# Code highlighting +[markdown] +highlight_code = true +highlight_theme = "boron" + +[extra] + +# One of: blue, green, orange, pink, red. +# Defaults to blue. +accent_color = "blue" + +# One of: blue, dark, green, orange, pink, red. +# Enabling dark background will also modify primary font color +# to be darker. +# Defaults to accent color (or, if not accent color specified, to blue). +background_color = "blue" + +# The logo text - defaults to "Terminimal theme" +logo_text = "Terminimal theme" + +# The logo link - defaults to base_url. +#logo_home_link = "/take/me/away!" + +# Author name: when specified, modifies the default +# copyright text. Apart from author, it will +# contain current year and a link to the theme. +#author = "My Name" + +# Copyright text in HTML format. If specified, +# entirely replaces default copyright and author. +#copyright_html = "My custom <b>copyright</b>" + +# menu is enabled by adding menu_items (optional) +menu_items = [ + # each of these is optional, name and url are required + # $BASE_URL is going to be substituted by base_url from configuration + {name = "blog", url = "$BASE_URL"}, + + # tags should only be enabled if you have "tags" taxonomy + # see documentation below for more details + {name = "tags", url = "$BASE_URL/tags"}, + {name = "archive", url = "$BASE_URL/archive"}, + {name = "about me", url = "$BASE_URL/about"}, + + # set newtab to true to make the link open in new tab + {name = "github", url = "https://github.com/pawroman/zola-theme-terminimal", newtab = true}, +] + +# Whether to show links to earlier and later (aka. higher/lower) posts +# on each post page (defaults to true). +enable_post_view_navigation = true + +# The text shown at the bottom of a post, +# before earlier/later post links. +# Defaults to "Thanks for reading! Read other posts?" +post_view_navigation_prompt = "Thanks for reading! Read other posts?" + +# Use full Hack character set, not just a subset. +# Switch this to true if you need full unicode support. +# Defaults to false. +use_full_hack_font = false + +# Optional: Global favicon URL and mimetype. +# Mimetype defaults to "image/x-icon". +# The URL should point at a file located +# in your site's "static" directory. +# favicon = "/favicon.png" +# favicon_mimetype = "image/png" + +# Optional: Set how <title> elements are rendered. +# Values: +# - "main_only" -- only the main title (`config.title`) is rendered. +# - "page_only" -- only the page title (if defined) is rendered, +# falling back to `config.title` if not defined or empty. +# - "combined" -- combine like so: "page_title | main_title", +# or if page_title is not defined or empty, fall back to `main_title` +# +# Note that the main (index) page only has the main title. +page_titles = "main_only" diff --git a/posixlycorrect/themes/terminimal/content/_index.md b/posixlycorrect/themes/terminimal/content/_index.md new file mode 100644 index 0000000..ba81db4 --- /dev/null +++ b/posixlycorrect/themes/terminimal/content/_index.md @@ -0,0 +1,4 @@ ++++ +paginate_by = 2 +sort_by = "date" ++++ diff --git a/posixlycorrect/themes/terminimal/content/i-dont-like-javascript.md b/posixlycorrect/themes/terminimal/content/i-dont-like-javascript.md new file mode 100644 index 0000000..c03f85e --- /dev/null +++ b/posixlycorrect/themes/terminimal/content/i-dont-like-javascript.md @@ -0,0 +1,26 @@ ++++ +title = "I don't like JavaScript" +date = 2019-02-02 + +[taxonomies] +tags = ["javascript", "rant"] ++++ + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eu feugiat sapien. + +[wtfjs.com](https://wtfjs.com) + +```javascript +>>> [1, 2, 3, 15, 30, 7, 5, 45, 60].sort() +[1, 15, 2, 3, 30, 45, 5, 60, 7] +``` + +<!-- more --> + +Ut luctus dolor ut tortor hendrerit, sed hendrerit augue scelerisque. Suspendisse quis sodales dui, at tempus ante. Nulla at tempor metus. Aliquam vitae rutrum diam. Curabitur iaculis massa dui, quis varius nulla finibus a. Praesent eu blandit justo. Suspendisse pharetra, arcu in rhoncus rutrum, magna magna viverra erat, eget vestibulum enim tellus id dui. Nunc vel dui et arcu posuere maximus. Mauris quam quam, bibendum sed libero nec, tempus hendrerit arcu. Suspendisse sed gravida orci. Fusce tempor arcu ac est pretium porttitor. Aenean consequat risus venenatis sem aliquam, at sollicitudin nulla semper. Aenean bibendum cursus hendrerit. Nulla congue urna nec finibus bibendum. Donec porta tincidunt ligula non ultricies. + +Sed vulputate tristique elit, eget pharetra elit sodales sed. Proin dignissim ipsum lorem, at porta eros malesuada sed. Proin tristique eros eu quam ornare, suscipit luctus mauris lobortis. Phasellus ut placerat enim. Donec egestas faucibus maximus. Nam quis efficitur eros. Cras tincidunt, lacus ac pretium porta, dui dolor varius elit, eget laoreet justo justo vitae metus. Morbi eget nisi ut ex scelerisque lobortis ut in lorem. Vestibulum et lorem quis ipsum feugiat varius. Mauris nec nulla viverra nisi porttitor efficitur. Morbi vel purus eleifend, finibus erat non, placerat ipsum. Mauris et augue vel nisi volutpat aliquam. Curabitur malesuada tortor est, at condimentum neque eleifend in. + +Morbi id ornare lacus. Suspendisse ultrices rutrum posuere. Nullam porttitor libero quis ligula finibus semper. Mauris iaculis magna et nisl tristique, eget maximus ex feugiat. Nam eu felis leo. Quisque ultrices varius purus in molestie. Duis non accumsan ligula. Vivamus dignissim malesuada metus, vel hendrerit tellus viverra id. Curabitur posuere, mauris vitae dignissim dictum, velit mi condimentum lorem, nec varius velit arcu a mi. In dolor sapien, condimentum sed aliquam at, dignissim id purus. Cras lorem leo, vulputate ac ante sed, molestie tempus lectus. Curabitur efficitur libero quam, rhoncus faucibus libero pharetra nec. Curabitur lobortis ullamcorper nisl eu imperdiet. Duis porttitor interdum magna, ac eleifend orci consequat vitae. Aliquam augue felis, faucibus vel blandit sed, maximus non turpis. + +Quisque viverra a eros id auctor. Proin id nibh ut nisl dignissim pellentesque et ac mi. Nullam mattis urna quis consequat bibendum. Donec pretium dui elit, a semper purus tristique et. Mauris euismod nisl eu vehicula facilisis. Maecenas facilisis non massa non scelerisque. Integer malesuada cursus erat eu viverra. Duis ligula mi, eleifend vel justo id, laoreet porttitor ex. Etiam ultricies lacus lorem, sed aliquam nulla blandit in. Maecenas vel facilisis neque, vitae fringilla eros. In justo nibh, pellentesque sed faucibus nec, varius sit amet risus. diff --git a/posixlycorrect/themes/terminimal/content/learning-javascript.md b/posixlycorrect/themes/terminimal/content/learning-javascript.md new file mode 100644 index 0000000..08f6120 --- /dev/null +++ b/posixlycorrect/themes/terminimal/content/learning-javascript.md @@ -0,0 +1,19 @@ ++++ +title = "Learning JavaScript" +date = 2019-01-03 + +[taxonomies] +tags = ["javascript"] ++++ + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eu feugiat sapien. Aenean ligula nunc, laoreet id sem in, interdum bibendum felis. Donec vel dui neque. Praesent ac sem ut justo volutpat rutrum a imperdiet tellus. Nam lobortis massa non hendrerit hendrerit. Vivamus porttitor dignissim turpis, eget aliquam urna tincidunt non. Aliquam et fringilla turpis. Nullam eros est, eleifend in ornare sed, hendrerit eget est. Aliquam tellus felis, suscipit vitae ex vel, fringilla tempus massa. Nulla facilisi. Pellentesque lobortis consequat lectus. Maecenas ac libero elit. + +<!-- more --> + +Ut luctus dolor ut tortor hendrerit, sed hendrerit augue scelerisque. Suspendisse quis sodales dui, at tempus ante. Nulla at tempor metus. Aliquam vitae rutrum diam. Curabitur iaculis massa dui, quis varius nulla finibus a. Praesent eu blandit justo. Suspendisse pharetra, arcu in rhoncus rutrum, magna magna viverra erat, eget vestibulum enim tellus id dui. Nunc vel dui et arcu posuere maximus. Mauris quam quam, bibendum sed libero nec, tempus hendrerit arcu. Suspendisse sed gravida orci. Fusce tempor arcu ac est pretium porttitor. Aenean consequat risus venenatis sem aliquam, at sollicitudin nulla semper. Aenean bibendum cursus hendrerit. Nulla congue urna nec finibus bibendum. Donec porta tincidunt ligula non ultricies. + +Sed vulputate tristique elit, eget pharetra elit sodales sed. Proin dignissim ipsum lorem, at porta eros malesuada sed. Proin tristique eros eu quam ornare, suscipit luctus mauris lobortis. Phasellus ut placerat enim. Donec egestas faucibus maximus. Nam quis efficitur eros. Cras tincidunt, lacus ac pretium porta, dui dolor varius elit, eget laoreet justo justo vitae metus. Morbi eget nisi ut ex scelerisque lobortis ut in lorem. Vestibulum et lorem quis ipsum feugiat varius. Mauris nec nulla viverra nisi porttitor efficitur. Morbi vel purus eleifend, finibus erat non, placerat ipsum. Mauris et augue vel nisi volutpat aliquam. Curabitur malesuada tortor est, at condimentum neque eleifend in. + +Morbi id ornare lacus. Suspendisse ultrices rutrum posuere. Nullam porttitor libero quis ligula finibus semper. Mauris iaculis magna et nisl tristique, eget maximus ex feugiat. Nam eu felis leo. Quisque ultrices varius purus in molestie. Duis non accumsan ligula. Vivamus dignissim malesuada metus, vel hendrerit tellus viverra id. Curabitur posuere, mauris vitae dignissim dictum, velit mi condimentum lorem, nec varius velit arcu a mi. In dolor sapien, condimentum sed aliquam at, dignissim id purus. Cras lorem leo, vulputate ac ante sed, molestie tempus lectus. Curabitur efficitur libero quam, rhoncus faucibus libero pharetra nec. Curabitur lobortis ullamcorper nisl eu imperdiet. Duis porttitor interdum magna, ac eleifend orci consequat vitae. Aliquam augue felis, faucibus vel blandit sed, maximus non turpis. + +Quisque viverra a eros id auctor. Proin id nibh ut nisl dignissim pellentesque et ac mi. Nullam mattis urna quis consequat bibendum. Donec pretium dui elit, a semper purus tristique et. Mauris euismod nisl eu vehicula facilisis. Maecenas facilisis non massa non scelerisque. Integer malesuada cursus erat eu viverra. Duis ligula mi, eleifend vel justo id, laoreet porttitor ex. Etiam ultricies lacus lorem, sed aliquam nulla blandit in. Maecenas vel facilisis neque, vitae fringilla eros. In justo nibh, pellentesque sed faucibus nec, varius sit amet risus. diff --git a/posixlycorrect/themes/terminimal/content/more-ranting.md b/posixlycorrect/themes/terminimal/content/more-ranting.md new file mode 100644 index 0000000..115619a --- /dev/null +++ b/posixlycorrect/themes/terminimal/content/more-ranting.md @@ -0,0 +1,19 @@ ++++ +title = "More ranting" +date = 2019-02-03 + +[taxonomies] +tags = ["rant"] ++++ + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eu feugiat sapien. Aenean ligula nunc, laoreet id sem in, interdum bibendum felis. Donec vel dui neque. Praesent ac sem ut justo volutpat rutrum a imperdiet tellus. Nam lobortis massa non hendrerit hendrerit. Vivamus porttitor dignissim turpis, eget aliquam urna tincidunt non. Aliquam et fringilla turpis. Nullam eros est, eleifend in ornare sed, hendrerit eget est. Aliquam tellus felis, suscipit vitae ex vel, fringilla tempus massa. Nulla facilisi. Pellentesque lobortis consequat lectus. Maecenas ac libero elit. + +<!-- more --> + +Ut luctus dolor ut tortor hendrerit, sed hendrerit augue scelerisque. Suspendisse quis sodales dui, at tempus ante. Nulla at tempor metus. Aliquam vitae rutrum diam. Curabitur iaculis massa dui, quis varius nulla finibus a. Praesent eu blandit justo. Suspendisse pharetra, arcu in rhoncus rutrum, magna magna viverra erat, eget vestibulum enim tellus id dui. Nunc vel dui et arcu posuere maximus. Mauris quam quam, bibendum sed libero nec, tempus hendrerit arcu. Suspendisse sed gravida orci. Fusce tempor arcu ac est pretium porttitor. Aenean consequat risus venenatis sem aliquam, at sollicitudin nulla semper. Aenean bibendum cursus hendrerit. Nulla congue urna nec finibus bibendum. Donec porta tincidunt ligula non ultricies. + +Sed vulputate tristique elit, eget pharetra elit sodales sed. Proin dignissim ipsum lorem, at porta eros malesuada sed. Proin tristique eros eu quam ornare, suscipit luctus mauris lobortis. Phasellus ut placerat enim. Donec egestas faucibus maximus. Nam quis efficitur eros. Cras tincidunt, lacus ac pretium porta, dui dolor varius elit, eget laoreet justo justo vitae metus. Morbi eget nisi ut ex scelerisque lobortis ut in lorem. Vestibulum et lorem quis ipsum feugiat varius. Mauris nec nulla viverra nisi porttitor efficitur. Morbi vel purus eleifend, finibus erat non, placerat ipsum. Mauris et augue vel nisi volutpat aliquam. Curabitur malesuada tortor est, at condimentum neque eleifend in. + +Morbi id ornare lacus. Suspendisse ultrices rutrum posuere. Nullam porttitor libero quis ligula finibus semper. Mauris iaculis magna et nisl tristique, eget maximus ex feugiat. Nam eu felis leo. Quisque ultrices varius purus in molestie. Duis non accumsan ligula. Vivamus dignissim malesuada metus, vel hendrerit tellus viverra id. Curabitur posuere, mauris vitae dignissim dictum, velit mi condimentum lorem, nec varius velit arcu a mi. In dolor sapien, condimentum sed aliquam at, dignissim id purus. Cras lorem leo, vulputate ac ante sed, molestie tempus lectus. Curabitur efficitur libero quam, rhoncus faucibus libero pharetra nec. Curabitur lobortis ullamcorper nisl eu imperdiet. Duis porttitor interdum magna, ac eleifend orci consequat vitae. Aliquam augue felis, faucibus vel blandit sed, maximus non turpis. + +Quisque viverra a eros id auctor. Proin id nibh ut nisl dignissim pellentesque et ac mi. Nullam mattis urna quis consequat bibendum. Donec pretium dui elit, a semper purus tristique et. Mauris euismod nisl eu vehicula facilisis. Maecenas facilisis non massa non scelerisque. Integer malesuada cursus erat eu viverra. Duis ligula mi, eleifend vel justo id, laoreet porttitor ex. Etiam ultricies lacus lorem, sed aliquam nulla blandit in. Maecenas vel facilisis neque, vitae fringilla eros. In justo nibh, pellentesque sed faucibus nec, varius sit amet risus. diff --git a/posixlycorrect/themes/terminimal/content/pages/_index.md b/posixlycorrect/themes/terminimal/content/pages/_index.md new file mode 100644 index 0000000..800a244 --- /dev/null +++ b/posixlycorrect/themes/terminimal/content/pages/_index.md @@ -0,0 +1,3 @@ ++++ +render = false ++++ diff --git a/posixlycorrect/themes/terminimal/content/pages/about.md b/posixlycorrect/themes/terminimal/content/pages/about.md new file mode 100644 index 0000000..054e57c --- /dev/null +++ b/posixlycorrect/themes/terminimal/content/pages/about.md @@ -0,0 +1,6 @@ ++++ +title = "About Me" +path = "about" ++++ + +Hello, World! diff --git a/posixlycorrect/themes/terminimal/content/pages/archive.md b/posixlycorrect/themes/terminimal/content/pages/archive.md new file mode 100644 index 0000000..2c032c0 --- /dev/null +++ b/posixlycorrect/themes/terminimal/content/pages/archive.md @@ -0,0 +1,5 @@ ++++ +title = "Archive" +path = "archive" +template = "archive.html" ++++ diff --git a/posixlycorrect/themes/terminimal/content/welcome-terminimal-theme.md b/posixlycorrect/themes/terminimal/content/welcome-terminimal-theme.md new file mode 100644 index 0000000..32a356e --- /dev/null +++ b/posixlycorrect/themes/terminimal/content/welcome-terminimal-theme.md @@ -0,0 +1,101 @@ ++++ +title = "Welcome to Terminimal Theme for Zola" +date = 2019-02-04 + +[taxonomies] +tags = ["zola", "theme", "showcase"] ++++ + +Welcome to Terminimal! This is a theme showcase post. + +Code block (using "boron" theme): + +```python +#!/usr/bin/python3 + +class HelloPrinter: + def __init__(self, thing): + self.thing = thing + + def __call__(self): + print(f"Hello, {self.thing}!") + + +printer = HelloPrinter("World") +printer() + +# prints: Hello, World! +``` + +Inline code: `print("Hello world!")`. + +Basic typography: + +*Italic text*. **Bold text**. _**Italic bold**_. Link: [click me](#) + +# Header 1 +## Header 2 +### Header 3 +#### Header 4 + +Quote: + +> "Theory is when you know everything but nothing works. +Practice is when everything works but no one knows why. +In our lab, theory and practice are combined: nothing works and no one knows why." + +Lists: + +- A +- B +- CDEF + - Nested Item + - And more nesting + - GHIJ + + +1. One +2. Two +3. Three + +Horizontal line: + +--- + +This is where the post summary ends. + +<!-- more --> + +The second part follows here. + +## Shortcodes + +`figure` shortcode: + +``` +figure(src="http://rustacean.net/assets/rustacean-flat-gesture.png", + style="width: 25%;", + position="center", + caption_position="left", + caption="Ferris, the (unofficial) Rust mascot", + caption_style="font-weight: bold; font-style: italic;") +``` + +{{ figure(src="http://rustacean.net/assets/rustacean-flat-gesture.png", + style="width: 25%;", + position="center", + caption_position="left", + caption="Ferris, the (unofficial) Rust mascot", + caption_style="font-weight: bold; font-style: italic;") }} + +--- + +`image` shortcode: + +``` +image(src="https://upload.wikimedia.org/wikipedia/commons/3/35/Tux.svg", + position="left") +``` + +{{ image(src="https://upload.wikimedia.org/wikipedia/commons/3/35/Tux.svg", + position="left") }} diff --git a/posixlycorrect/themes/terminimal/content/zola-is-nice.md b/posixlycorrect/themes/terminimal/content/zola-is-nice.md new file mode 100644 index 0000000..cdbe22b --- /dev/null +++ b/posixlycorrect/themes/terminimal/content/zola-is-nice.md @@ -0,0 +1,19 @@ ++++ +title = "Zola is nice" +date = 2019-02-01 + +[taxonomies] +tags = ["zola", "nice"] ++++ + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eu feugiat sapien. Aenean ligula nunc, laoreet id sem in, interdum bibendum felis. Donec vel dui neque. Praesent ac sem ut justo volutpat rutrum a imperdiet tellus. Nam lobortis massa non hendrerit hendrerit. Vivamus porttitor dignissim turpis, eget aliquam urna tincidunt non. Aliquam et fringilla turpis. Nullam eros est, eleifend in ornare sed, hendrerit eget est. Aliquam tellus felis, suscipit vitae ex vel, fringilla tempus massa. Nulla facilisi. Pellentesque lobortis consequat lectus. Maecenas ac libero elit. + +<!-- more --> + +Ut luctus dolor ut tortor hendrerit, sed hendrerit augue scelerisque. Suspendisse quis sodales dui, at tempus ante. Nulla at tempor metus. Aliquam vitae rutrum diam. Curabitur iaculis massa dui, quis varius nulla finibus a. Praesent eu blandit justo. Suspendisse pharetra, arcu in rhoncus rutrum, magna magna viverra erat, eget vestibulum enim tellus id dui. Nunc vel dui et arcu posuere maximus. Mauris quam quam, bibendum sed libero nec, tempus hendrerit arcu. Suspendisse sed gravida orci. Fusce tempor arcu ac est pretium porttitor. Aenean consequat risus venenatis sem aliquam, at sollicitudin nulla semper. Aenean bibendum cursus hendrerit. Nulla congue urna nec finibus bibendum. Donec porta tincidunt ligula non ultricies. + +Sed vulputate tristique elit, eget pharetra elit sodales sed. Proin dignissim ipsum lorem, at porta eros malesuada sed. Proin tristique eros eu quam ornare, suscipit luctus mauris lobortis. Phasellus ut placerat enim. Donec egestas faucibus maximus. Nam quis efficitur eros. Cras tincidunt, lacus ac pretium porta, dui dolor varius elit, eget laoreet justo justo vitae metus. Morbi eget nisi ut ex scelerisque lobortis ut in lorem. Vestibulum et lorem quis ipsum feugiat varius. Mauris nec nulla viverra nisi porttitor efficitur. Morbi vel purus eleifend, finibus erat non, placerat ipsum. Mauris et augue vel nisi volutpat aliquam. Curabitur malesuada tortor est, at condimentum neque eleifend in. + +Morbi id ornare lacus. Suspendisse ultrices rutrum posuere. Nullam porttitor libero quis ligula finibus semper. Mauris iaculis magna et nisl tristique, eget maximus ex feugiat. Nam eu felis leo. Quisque ultrices varius purus in molestie. Duis non accumsan ligula. Vivamus dignissim malesuada metus, vel hendrerit tellus viverra id. Curabitur posuere, mauris vitae dignissim dictum, velit mi condimentum lorem, nec varius velit arcu a mi. In dolor sapien, condimentum sed aliquam at, dignissim id purus. Cras lorem leo, vulputate ac ante sed, molestie tempus lectus. Curabitur efficitur libero quam, rhoncus faucibus libero pharetra nec. Curabitur lobortis ullamcorper nisl eu imperdiet. Duis porttitor interdum magna, ac eleifend orci consequat vitae. Aliquam augue felis, faucibus vel blandit sed, maximus non turpis. + +Quisque viverra a eros id auctor. Proin id nibh ut nisl dignissim pellentesque et ac mi. Nullam mattis urna quis consequat bibendum. Donec pretium dui elit, a semper purus tristique et. Mauris euismod nisl eu vehicula facilisis. Maecenas facilisis non massa non scelerisque. Integer malesuada cursus erat eu viverra. Duis ligula mi, eleifend vel justo id, laoreet porttitor ex. Etiam ultricies lacus lorem, sed aliquam nulla blandit in. Maecenas vel facilisis neque, vitae fringilla eros. In justo nibh, pellentesque sed faucibus nec, varius sit amet risus. diff --git a/posixlycorrect/themes/terminimal/sass/buttons.scss b/posixlycorrect/themes/terminimal/sass/buttons.scss new file mode 100644 index 0000000..7a864b0 --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/buttons.scss @@ -0,0 +1,92 @@ +.button-container { + display: table; + margin-left: auto; + margin-right: auto; +} + +button, +.button, +a.button { + position: relative; + display: flex; + align-items: center; + justify-content: center; + padding: 8px 18px; + margin-bottom: 5px; + text-align: center; + border-radius: 8px; + border: 1px solid transparent; + appearance: none; + cursor: pointer; + outline: none; + + /* variants */ + + &.outline { + background: transparent; + box-shadow: none; + padding: 8px 18px; + + :hover { + transform: none; + box-shadow: none; + } + } + + &.primary { + box-shadow: 0 4px 6px rgba(50, 50, 93, .11), 0 1px 3px rgba(0, 0, 0, .08); + + &:hover { + box-shadow: 0 2px 6px rgba(50, 50, 93, .21), 0 1px 3px rgba(0, 0, 0, .08); + } + } + + &.link { + background: none; + font-size: 1rem; + } + + + /* sizes */ + + &.small { + font-size: .8rem; + } + + &.wide { + min-width: 200px; + padding: 14px 24px; + } +} + +a.read-more, +a.read-more:hover, +a.read-more:active { + display: inline-flex; + background: none; + box-shadow: none; + padding: 0; + margin: 20px 0; + max-width: 100%; +} + +.code-toolbar { + margin-bottom: 20px; + + .toolbar-item a { + position: relative; + display: inline-flex; + align-items: center; + justify-content: center; + padding: 3px 8px; + margin-bottom: 5px; + text-align: center; + font-size: 13px; + font-weight: 500; + border-radius: 8px; + border: 1px solid transparent; + appearance: none; + cursor: pointer; + outline: none; + } +} diff --git a/posixlycorrect/themes/terminimal/sass/color/background_blue.scss b/posixlycorrect/themes/terminimal/sass/color/background_blue.scss new file mode 100644 index 0000000..d7ce46a --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/color/background_blue.scss @@ -0,0 +1,3 @@ +:root { + --background: #1D212C; +} diff --git a/posixlycorrect/themes/terminimal/sass/color/background_dark.scss b/posixlycorrect/themes/terminimal/sass/color/background_dark.scss new file mode 100644 index 0000000..ed08ba9 --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/color/background_dark.scss @@ -0,0 +1,5 @@ +:root { + --background: #000000; + + --color: #A9B7C6; +} diff --git a/posixlycorrect/themes/terminimal/sass/color/background_green.scss b/posixlycorrect/themes/terminimal/sass/color/background_green.scss new file mode 100644 index 0000000..3bcdf16 --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/color/background_green.scss @@ -0,0 +1,3 @@ +:root { + --background: #1F222A; +} diff --git a/posixlycorrect/themes/terminimal/sass/color/background_orange.scss b/posixlycorrect/themes/terminimal/sass/color/background_orange.scss new file mode 100644 index 0000000..ea0ef7d --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/color/background_orange.scss @@ -0,0 +1,3 @@ +:root { + --background: #222129; +} diff --git a/posixlycorrect/themes/terminimal/sass/color/background_pink.scss b/posixlycorrect/themes/terminimal/sass/color/background_pink.scss new file mode 100644 index 0000000..565d610 --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/color/background_pink.scss @@ -0,0 +1,3 @@ +:root { + --background: #21202C; +} diff --git a/posixlycorrect/themes/terminimal/sass/color/background_red.scss b/posixlycorrect/themes/terminimal/sass/color/background_red.scss new file mode 100644 index 0000000..fbce29e --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/color/background_red.scss @@ -0,0 +1,3 @@ +:root { + --background: #221F29; +} diff --git a/posixlycorrect/themes/terminimal/sass/color/blue.scss b/posixlycorrect/themes/terminimal/sass/color/blue.scss new file mode 100644 index 0000000..231f362 --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/color/blue.scss @@ -0,0 +1,9 @@ +:root { + --accent: rgb(35,176,255); + --accent-alpha-70: rgba(35,176,255,.7); + --accent-alpha-20: rgba(35,176,255,.2); + + --background: #1D212C; + --color: white; + --border-color: rgba(255, 255, 255, .1); +} diff --git a/posixlycorrect/themes/terminimal/sass/color/green.scss b/posixlycorrect/themes/terminimal/sass/color/green.scss new file mode 100644 index 0000000..ff52fe2 --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/color/green.scss @@ -0,0 +1,9 @@ +:root { + --accent: rgb(120,226,160); + --accent-alpha-70: rgba(120,226,160,.7); + --accent-alpha-20: rgba(120,226,160,.2); + + --background: #1F222A; + --color: white; + --border-color: rgba(255, 255, 255, .1); +} diff --git a/posixlycorrect/themes/terminimal/sass/color/orange.scss b/posixlycorrect/themes/terminimal/sass/color/orange.scss new file mode 100644 index 0000000..290e6fb --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/color/orange.scss @@ -0,0 +1,9 @@ +:root { + --accent: rgb(252, 147, 0); + --accent-alpha-70: rgba(255,168,106,.7); + --accent-alpha-20: rgba(255,168,106,.2); + + --background: #222129; + --color: white; + --border-color: rgba(255, 255, 255, .1); +} \ No newline at end of file diff --git a/posixlycorrect/themes/terminimal/sass/color/pink.scss b/posixlycorrect/themes/terminimal/sass/color/pink.scss new file mode 100644 index 0000000..6cc6064 --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/color/pink.scss @@ -0,0 +1,9 @@ +:root { + --accent: rgb(238,114,241); + --accent-alpha-70: rgba(238,114,241,.7); + --accent-alpha-20: rgba(238,114,241,.2); + + --background: #21202C; + --color: white; + --border-color: rgba(255, 255, 255, .1); +} diff --git a/posixlycorrect/themes/terminimal/sass/color/red.scss b/posixlycorrect/themes/terminimal/sass/color/red.scss new file mode 100644 index 0000000..6e7b776 --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/color/red.scss @@ -0,0 +1,9 @@ +:root { + --accent: rgb(255,98,102); + --accent-alpha-70: rgba(255,98,102,.7); + --accent-alpha-20: rgba(255,98,102,.2); + + --background: #221F29; + --color: white; + --border-color: rgba(255, 255, 255, .1); +} diff --git a/posixlycorrect/themes/terminimal/sass/font-hack-subset.scss b/posixlycorrect/themes/terminimal/sass/font-hack-subset.scss new file mode 100644 index 0000000..31281aa --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/font-hack-subset.scss @@ -0,0 +1,34 @@ +/*! + * Hack typeface https://github.com/source-foundry/Hack + * License: https://github.com/source-foundry/Hack/blob/master/LICENSE.md + */ +/* FONT PATHS + * -------------------------- */ +@font-face { + font-family: 'Hack'; + /* Use full version (not a subset) for unicode icon support */ + src: url('fonts/hack-regular.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-regular.woff?sha=3114f1256') format('woff'); + font-weight: 400; + font-style: normal; +} + +@font-face { + font-family: 'Hack'; + src: url('fonts/hack-bold-subset.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-bold-subset.woff?sha=3114f1256') format('woff'); + font-weight: 700; + font-style: normal; +} + +@font-face { + font-family: 'Hack'; + src: url('fonts/hack-italic-subset.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-italic-webfont.woff?sha=3114f1256') format('woff'); + font-weight: 400; + font-style: italic; +} + +@font-face { + font-family: 'Hack'; + src: url('fonts/hack-bolditalic-subset.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-bolditalic-subset.woff?sha=3114f1256') format('woff'); + font-weight: 700; + font-style: italic; +} diff --git a/posixlycorrect/themes/terminimal/sass/font-hack.scss b/posixlycorrect/themes/terminimal/sass/font-hack.scss new file mode 100644 index 0000000..fef7588 --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/font-hack.scss @@ -0,0 +1,33 @@ +/*! + * Hack typeface https://github.com/source-foundry/Hack + * License: https://github.com/source-foundry/Hack/blob/master/LICENSE.md + */ +/* FONT PATHS + * -------------------------- */ +@font-face { + font-family: 'Hack'; + src: url('fonts/hack-regular.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-regular.woff?sha=3114f1256') format('woff'); + font-weight: 400; + font-style: normal; +} + +@font-face { + font-family: 'Hack'; + src: url('fonts/hack-bold.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-bold.woff?sha=3114f1256') format('woff'); + font-weight: 700; + font-style: normal; +} + +@font-face { + font-family: 'Hack'; + src: url('fonts/hack-italic.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-italic.woff?sha=3114f1256') format('woff'); + font-weight: 400; + font-style: italic; +} + +@font-face { + font-family: 'Hack'; + src: url('fonts/hack-bolditalic.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-bolditalic.woff?sha=3114f1256') format('woff'); + font-weight: 700; + font-style: italic; +} diff --git a/posixlycorrect/themes/terminimal/sass/footer.scss b/posixlycorrect/themes/terminimal/sass/footer.scss new file mode 100644 index 0000000..21be315 --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/footer.scss @@ -0,0 +1,64 @@ +@import "variables"; + +.footer { + padding: 40px 0; + flex-grow: 0; + opacity: .5; + + &__inner { + display: flex; + align-items: center; + justify-content: space-between; + margin: 0; + width: 760px; + max-width: 100%; + + @media (max-width: $tablet-max-width) { + flex-direction: column; + } + } + + a { + color: inherit; + } + + .copyright { + display: flex; + flex-direction: row; + align-items: center; + font-size: 1rem; + color: var(--light-color-secondary); + + &--user { + margin: auto; + text-align: center; + } + + & > *:first-child:not(:only-child) { + margin-right: 10px; + + @media (max-width: $tablet-max-width) { + border: none; + padding: 0; + margin: 0; + } + } + + @media (max-width: $tablet-max-width) { + flex-direction: column; + margin-top: 10px; + } + } + + .copyright-theme-sep { + @media (max-width: $tablet-max-width) { + display: none; + } + } + + .copyright-theme { + @media (max-width: $tablet-max-width) { + font-size: 0.75rem; + } + } +} diff --git a/posixlycorrect/themes/terminimal/sass/header.scss b/posixlycorrect/themes/terminimal/sass/header.scss new file mode 100644 index 0000000..5779ab2 --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/header.scss @@ -0,0 +1,78 @@ +@import "variables"; + +@mixin menu { + position: absolute; + background: var(--background); + box-shadow: var(--shadow); + color: white; + border: 2px solid; + margin: 0; + padding: 10px; + list-style: none; + z-index: 99; +} + +.header { + display: flex; + flex-direction: column; + position: relative; + + &__inner { + display: flex; + align-items: center; + justify-content: space-between; + } + + .menu { + margin: 20px 0; + + &__inner { + display: flex; + flex-wrap: wrap; + list-style: none; + margin: 0; + padding: 0; + + li { + &.active { + color: var(--accent-alpha-70); + } + + &:not(:last-of-type) { + margin-right: 20px; + margin-bottom: 10px; + flex: 0 0 auto; + } + } + } + + &__sub-inner { + position: relative; + list-style: none; + padding: 0; + margin: 0; + + &:not(:only-child) { + margin-left: 20px; + } + + &-more { + @include menu; + top: 35px; + left: 0; + + &-trigger { + color: var(--accent); + user-select: none; + cursor: pointer; + } + + li { + margin: 0; + padding: 5px; + white-space: nowrap; + } + } + } + } +} diff --git a/posixlycorrect/themes/terminimal/sass/logo.scss b/posixlycorrect/themes/terminimal/sass/logo.scss new file mode 100644 index 0000000..d455cc7 --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/logo.scss @@ -0,0 +1,8 @@ +.logo { + display: flex; + align-items: center; + text-decoration: none; + background: var(--accent); + color: black; + padding: 5px 10px; +} diff --git a/posixlycorrect/themes/terminimal/sass/main.scss b/posixlycorrect/themes/terminimal/sass/main.scss new file mode 100644 index 0000000..453bc18 --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/main.scss @@ -0,0 +1,248 @@ +@import "variables"; + +html { + box-sizing: border-box; +} + +*, +*:before, +*:after { + box-sizing: inherit; +} + +body { + margin: 0; + padding: 0; + font-family: Hack, DejaVu Sans Mono, Monaco, Consolas, Ubuntu Mono, monospace; + font-size: 1rem; + line-height: 1.54; + background-color: var(--background); + color: var(--color); + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -webkit-overflow-scrolling: touch; + -webkit-text-size-adjust: 100%; + + @media (max-width: $phone-max-width) { + font-size: 1rem; + } +} + +h1, h2, h3, h4, h5, h6 { + display: flex; + align-items: center; + font-weight: bold; + line-height: 1.3; +} + +h1 { + font-size: 1.4rem; +} + +h2 { + font-size: 1.3rem; +} + +h3 { + font-size: 1.2rem; +} + +h4, h5, h6 { + font-size: 1.15rem; +} + + +a { + color: inherit; +} + +img { + display: block; + max-width: 100%; + + &.left { + margin-right: auto; + } + + &.center { + margin-left: auto; + margin-right: auto; + } + + &.right { + margin-left: auto; + } +} + +p { + margin-bottom: 20px; +} + +figure { + display: table; + max-width: 100%; + margin: 25px 0; + + &.left, img { + margin-right: auto; + } + + &.center, img { + margin-left: auto; + margin-right: auto; + } + + &.right, img { + margin-left: auto; + } + + figcaption { + font-size: 14px; + padding: 5px 10px; + margin-top: 5px; + background: var(--accent); + color: var(--background); + + &.left { + text-align: left; + } + + &.center { + text-align: center; + } + + &.right { + text-align: right; + } + } +} + +code { + font-family: Hack, DejaVu Sans Mono, Monaco, Consolas, Ubuntu Mono, monospace; + font-feature-settings: normal; + background: var(--accent-alpha-20); + padding: 1px 6px; + margin: 0 2px; + font-size: .95rem; +} + +pre { + font-family: Hack, DejaVu Sans Mono, Monaco, Consolas, Ubuntu Mono, monospace; + padding: 20px; + font-size: .95rem; + overflow: auto; + border-top: 1px solid rgba(255, 255, 255, .1); + border-bottom: 1px solid rgba(255, 255, 255, .1); + + @media (max-width: $phone-max-width) { + white-space: pre-wrap; + word-wrap: break-word; + } + + code { + padding: 0; + margin: 0; + background: none; + } +} + +blockquote { + border-top: 1px solid var(--accent); + border-bottom: 1px solid var(--accent); + margin: 40px 0; + padding: 25px; + + @media (max-width: $phone-max-width) { + padding-right: 0; + } + + &:before { + content: '”'; + font-family: Georgia, serif; + font-size: 3.875rem; + position: absolute; + left: -40px; + top: -20px; + } + + p:first-of-type { + margin-top: 0; + } + + p:last-of-type { + margin-bottom: 0; + } + + p { + position: relative; + } + + p:before { + content: '>'; + display: block; + position: absolute; + left: -25px; + color: var(--accent); + } +} + +table { + table-layout: fixed; + border-collapse: collapse; + width: 100%; + margin: 40px 0; +} + +table, th, td { + border: 1px dashed var(--accent); + padding: 10px; +} + +th { + color: var(--accent); +} + +ul, ol { + margin-left: 30px; + padding: 0; + + li { + position: relative; + } + + @media (max-width: $phone-max-width) { + margin-left: 20px; + } +} + +ol ol { + list-style-type: lower-alpha; +} + +.container { + display: flex; + flex-direction: column; + padding: 40px; + max-width: 864px; + min-height: 100vh; + margin: 0 auto; + + @media (max-width: $phone-max-width) { + padding: 20px; + } +} + +.content { + display: flex; +} + +hr { + width: 100%; + border: none; + background: var(--border-color); + height: 1px; +} + +.hidden { + display: none; +} diff --git a/posixlycorrect/themes/terminimal/sass/pagination.scss b/posixlycorrect/themes/terminimal/sass/pagination.scss new file mode 100644 index 0000000..566005b --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/pagination.scss @@ -0,0 +1,77 @@ +@import 'variables'; + +.pagination { + margin-top: 50px; + + &__title { + display: flex; + text-align: center; + position: relative; + margin: 100px 0 20px; + + &-h { + text-align: center; + margin: 0 auto; + padding: 5px 10px; + background: var(--background); + font-size: .8rem; + text-transform: uppercase; + letter-spacing: .1em; + z-index: 1; + } + + hr { + position: absolute; + left: 0; + right: 0; + width: 100%; + margin-top: 15px; + z-index: 0; + } + } + + &__buttons { + display: flex; + align-items: center; + justify-content: center; + + @media (max-width: $phone-max-width) { + flex-direction: column; + } + } +} + +.button { + position: relative; + display: inline-flex; + align-items: center; + justify-content: center; + font-size: 1rem; + border-radius: 8px; + max-width: 40%; + padding: 0; + cursor: pointer; + appearance: none; + + @media (max-width: $phone-max-width) { + max-width: 80%; + } + + + .button { + margin-left: 10px; + } + + a { + display: flex; + padding: 8px 16px; + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + } + + &__text { + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + } +} diff --git a/posixlycorrect/themes/terminimal/sass/post.scss b/posixlycorrect/themes/terminimal/sass/post.scss new file mode 100644 index 0000000..8b0e1a9 --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/post.scss @@ -0,0 +1,135 @@ +@import "variables"; + +.posts { + width: 100%; + margin: 0 auto; +} + +.post { + width: 100%; + text-align: left; + margin: 20px auto; + padding: 20px 0; + + @media (max-width: $tablet-max-width) { + max-width: 660px; + } + + &:not(:last-of-type) { + border-bottom: 1px solid var(--border-color); + } + + %meta { + font-size: 1rem; + margin-bottom: 10px; + color: var(--accent-alpha-70); + } + + &-meta { + @extend %meta; + } + + &-meta-inline { + @extend %meta; + + display: inline; + } + + &-title { + --border: 2px dashed var(--accent); + position: relative; + color: var(--accent); + margin: 0 0 15px; + padding-bottom: 15px; + border-bottom: var(--border); + font-weight: normal; + + a { + text-decoration: none; + } + } + + %tags { + margin-bottom: 20px; + font-size: 1rem; + opacity: .5; + } + + &-tags { + @extend %tags; + + display: block; + } + + &-tags-inline { + @extend %tags; + + display: inline; + + @media (max-width: $phone-max-width) { + display: block; + } + } + + &-content { + margin-top: 30px; + } + + &-cover { + border: 20px solid var(--accent); + background: transparent; + margin: 40px 0; + padding: 20px; + + @media (max-width: $phone-max-width) { + padding: 10px; + border-width: 10px; + } + } + + ul { + list-style: none; + + li:before { + content: '►'; + position: absolute; + left: -20px; + color: var(--accent); + } + } +} + +.post--regulation { + h1 { + justify-content: center; + } + + h2 { + justify-content: center; + margin-bottom: 10px; + + &+ h2 { + margin-top: -10px; + margin-bottom: 20px; + } + } +} + +.post-list { + .post-date { + color: var(--accent-alpha-70); + text-decoration: none; + } + + a { + text-decoration: none; + } + + .post-list-title { + text-decoration: underline; + } + + .post-tag { + text-decoration: underline; + } +} diff --git a/posixlycorrect/themes/terminimal/sass/style.scss b/posixlycorrect/themes/terminimal/sass/style.scss new file mode 100644 index 0000000..3a289d7 --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/style.scss @@ -0,0 +1,8 @@ +@import 'buttons'; + +@import 'header'; +@import 'logo'; +@import 'main'; +@import 'post'; +@import 'pagination'; +@import 'footer'; diff --git a/posixlycorrect/themes/terminimal/sass/variables.scss b/posixlycorrect/themes/terminimal/sass/variables.scss new file mode 100644 index 0000000..3b95a9c --- /dev/null +++ b/posixlycorrect/themes/terminimal/sass/variables.scss @@ -0,0 +1,2 @@ +$phone-max-width: 683px; +$tablet-max-width: 899px; diff --git a/posixlycorrect/themes/terminimal/screenshot.png b/posixlycorrect/themes/terminimal/screenshot.png new file mode 100644 index 0000000..e0f8b56 Binary files /dev/null and b/posixlycorrect/themes/terminimal/screenshot.png differ diff --git a/posixlycorrect/themes/terminimal/static/fonts/hack-bold-subset.woff b/posixlycorrect/themes/terminimal/static/fonts/hack-bold-subset.woff new file mode 100644 index 0000000..a47c8aa Binary files /dev/null and b/posixlycorrect/themes/terminimal/static/fonts/hack-bold-subset.woff differ diff --git a/posixlycorrect/themes/terminimal/static/fonts/hack-bold-subset.woff2 b/posixlycorrect/themes/terminimal/static/fonts/hack-bold-subset.woff2 new file mode 100644 index 0000000..93d425e Binary files /dev/null and b/posixlycorrect/themes/terminimal/static/fonts/hack-bold-subset.woff2 differ diff --git a/posixlycorrect/themes/terminimal/static/fonts/hack-bold.woff b/posixlycorrect/themes/terminimal/static/fonts/hack-bold.woff new file mode 100644 index 0000000..368b913 Binary files /dev/null and b/posixlycorrect/themes/terminimal/static/fonts/hack-bold.woff differ diff --git a/posixlycorrect/themes/terminimal/static/fonts/hack-bold.woff2 b/posixlycorrect/themes/terminimal/static/fonts/hack-bold.woff2 new file mode 100644 index 0000000..1155477 Binary files /dev/null and b/posixlycorrect/themes/terminimal/static/fonts/hack-bold.woff2 differ diff --git a/posixlycorrect/themes/terminimal/static/fonts/hack-bolditalic-subset.woff b/posixlycorrect/themes/terminimal/static/fonts/hack-bolditalic-subset.woff new file mode 100644 index 0000000..0da4750 Binary files /dev/null and b/posixlycorrect/themes/terminimal/static/fonts/hack-bolditalic-subset.woff differ diff --git a/posixlycorrect/themes/terminimal/static/fonts/hack-bolditalic-subset.woff2 b/posixlycorrect/themes/terminimal/static/fonts/hack-bolditalic-subset.woff2 new file mode 100644 index 0000000..236b7de Binary files /dev/null and b/posixlycorrect/themes/terminimal/static/fonts/hack-bolditalic-subset.woff2 differ diff --git a/posixlycorrect/themes/terminimal/static/fonts/hack-bolditalic.woff b/posixlycorrect/themes/terminimal/static/fonts/hack-bolditalic.woff new file mode 100644 index 0000000..ce87fe2 Binary files /dev/null and b/posixlycorrect/themes/terminimal/static/fonts/hack-bolditalic.woff differ diff --git a/posixlycorrect/themes/terminimal/static/fonts/hack-bolditalic.woff2 b/posixlycorrect/themes/terminimal/static/fonts/hack-bolditalic.woff2 new file mode 100644 index 0000000..46ff1c4 Binary files /dev/null and b/posixlycorrect/themes/terminimal/static/fonts/hack-bolditalic.woff2 differ diff --git a/posixlycorrect/themes/terminimal/static/fonts/hack-italic-subset.woff b/posixlycorrect/themes/terminimal/static/fonts/hack-italic-subset.woff new file mode 100644 index 0000000..1d1f511 Binary files /dev/null and b/posixlycorrect/themes/terminimal/static/fonts/hack-italic-subset.woff differ diff --git a/posixlycorrect/themes/terminimal/static/fonts/hack-italic-subset.woff2 b/posixlycorrect/themes/terminimal/static/fonts/hack-italic-subset.woff2 new file mode 100644 index 0000000..b6f5fc9 Binary files /dev/null and b/posixlycorrect/themes/terminimal/static/fonts/hack-italic-subset.woff2 differ diff --git a/posixlycorrect/themes/terminimal/static/fonts/hack-italic.woff b/posixlycorrect/themes/terminimal/static/fonts/hack-italic.woff new file mode 100644 index 0000000..bd545e4 Binary files /dev/null and b/posixlycorrect/themes/terminimal/static/fonts/hack-italic.woff differ diff --git a/posixlycorrect/themes/terminimal/static/fonts/hack-italic.woff2 b/posixlycorrect/themes/terminimal/static/fonts/hack-italic.woff2 new file mode 100644 index 0000000..1e7630c Binary files /dev/null and b/posixlycorrect/themes/terminimal/static/fonts/hack-italic.woff2 differ diff --git a/posixlycorrect/themes/terminimal/static/fonts/hack-regular-subset.woff b/posixlycorrect/themes/terminimal/static/fonts/hack-regular-subset.woff new file mode 100644 index 0000000..85583a5 Binary files /dev/null and b/posixlycorrect/themes/terminimal/static/fonts/hack-regular-subset.woff differ diff --git a/posixlycorrect/themes/terminimal/static/fonts/hack-regular-subset.woff2 b/posixlycorrect/themes/terminimal/static/fonts/hack-regular-subset.woff2 new file mode 100644 index 0000000..1e3abb9 Binary files /dev/null and b/posixlycorrect/themes/terminimal/static/fonts/hack-regular-subset.woff2 differ diff --git a/posixlycorrect/themes/terminimal/static/fonts/hack-regular.woff b/posixlycorrect/themes/terminimal/static/fonts/hack-regular.woff new file mode 100644 index 0000000..e835381 Binary files /dev/null and b/posixlycorrect/themes/terminimal/static/fonts/hack-regular.woff differ diff --git a/posixlycorrect/themes/terminimal/static/fonts/hack-regular.woff2 b/posixlycorrect/themes/terminimal/static/fonts/hack-regular.woff2 new file mode 100644 index 0000000..524465c Binary files /dev/null and b/posixlycorrect/themes/terminimal/static/fonts/hack-regular.woff2 differ diff --git a/posixlycorrect/themes/terminimal/templates/404.html b/posixlycorrect/themes/terminimal/templates/404.html new file mode 100644 index 0000000..b081fbc --- /dev/null +++ b/posixlycorrect/themes/terminimal/templates/404.html @@ -0,0 +1,16 @@ +{% extends "index.html" %} + +{% block title %} +404 +{% endblock title %} + +{% block header_menu %} +{{ menu_macros::menu_for(config=config, current_item="") }} +{% endblock header_menu %} + +{% block content %} +<div class="post"> + <h1 class="post-title">{% block heading %}Lost?{% endblock heading %}</h1> + <p>{% block message %}This page does not exist.{% endblock message %}</p> +</div> +{% endblock content %} diff --git a/posixlycorrect/themes/terminimal/templates/archive.html b/posixlycorrect/themes/terminimal/templates/archive.html new file mode 100644 index 0000000..af9df6e --- /dev/null +++ b/posixlycorrect/themes/terminimal/templates/archive.html @@ -0,0 +1,15 @@ +{% extends "index.html" %} + +{%- block title -%} +{{ title_macros::title(page_title=page.title, main_title=config.title) }} +{%- endblock -%} + +{% block content %} + <div class="post"> + <h1 class="post-title">{{ page.title }}</h1> + + {% set section = get_section(path="_index.md") %} + + {{ post_macros::list_posts(pages=section.pages) }} + </div> +{% endblock content %} diff --git a/posixlycorrect/themes/terminimal/templates/index.html b/posixlycorrect/themes/terminimal/templates/index.html new file mode 100644 index 0000000..3d4cb93 --- /dev/null +++ b/posixlycorrect/themes/terminimal/templates/index.html @@ -0,0 +1,95 @@ +{% import "macros/date.html" as date_macros -%} +{% import "macros/head.html" as head_macros -%} +{% import "macros/menu.html" as menu_macros -%} +{% import "macros/post.html" as post_macros -%} +{% import "macros/title.html" as title_macros -%} + +<!DOCTYPE html> +<html lang="{%- if config.default_language -%}{{ config.default_language }}{%- else -%}en{%- endif -%}"> + +<head> + <title>{%- block title %}{{ config.title }}{% endblock title -%} + {{ head_macros::head(config=config) }} + + {%- if config.generate_feed %} + + {% endif -%} + + {%- if config.extra.favicon %} + + {% endif -%} + + {%- block extra_head %} + {% endblock extra_head -%} + + + +
+ {% block header %} +
+
+ +
+ + {% block header_menu %} + {{ menu_macros::menu(config=config, current_path=current_path) }} + {% endblock header_menu %} +
+ {% endblock header %} + +
+ {% block content %} +
+ Hi! Use the above buttons to navigate the site :) + {% set page = get_page(path="about.md") %} + {{ post_macros::content(page=page, summary=false) }} +
+ {% endblock content %} +
+ + {% block footer %} +
+ +
+ {% endblock footer %} + +
+{%- block extra_body %} +{% endblock extra_body -%} + + + diff --git a/posixlycorrect/themes/terminimal/templates/macros/date.html b/posixlycorrect/themes/terminimal/templates/macros/date.html new file mode 100644 index 0000000..e793735 --- /dev/null +++ b/posixlycorrect/themes/terminimal/templates/macros/date.html @@ -0,0 +1,3 @@ +{% macro now_year() %} + {{ now() | date(format="%Y") }} +{% endmacro %} diff --git a/posixlycorrect/themes/terminimal/templates/macros/head.html b/posixlycorrect/themes/terminimal/templates/macros/head.html new file mode 100644 index 0000000..187c57c --- /dev/null +++ b/posixlycorrect/themes/terminimal/templates/macros/head.html @@ -0,0 +1,26 @@ +{% macro head(config) %} + + + + + + +{%- if config.extra.accent_color %} + +{% else %} + +{% endif -%} + +{%- if config.extra.background_color %} + {%- if config.extra.accent_color and config.extra.background_color != config.extra.accent_color %} + + {% endif -%} +{% endif -%} + +{%- if config.extra.use_full_hack_font %} + +{% else %} + +{% endif -%} + +{% endmacro head %} diff --git a/posixlycorrect/themes/terminimal/templates/macros/menu.html b/posixlycorrect/themes/terminimal/templates/macros/menu.html new file mode 100644 index 0000000..090388f --- /dev/null +++ b/posixlycorrect/themes/terminimal/templates/macros/menu.html @@ -0,0 +1,52 @@ +{% macro menu(config, current_path) %} + {%- set current_item = false -%} + {%- if config.extra.menu_items %} + {%- set menu_items = config.extra.menu_items -%} + + {%- for item in menu_items %} + {%- set abs_item_url = item.url | replace(from="$BASE_URL", to=config.base_url) -%} + {%- set is_current = current_url == abs_item_url ~ "/" + or current_url is starting_with(abs_item_url) + -%} + {%- set is_base = abs_item_url == config.base_url + or abs_item_url == config.base_url ~ "/" + -%} + + {%- if is_base %} + {%- set_global base_item = item -%} + {% endif -%} + + {%- if is_current and not is_base %} + {%- set_global current_item = item -%} + {% endif -%} + {% endfor -%} + + {%- if not current_item and base_item %} + {# Did not match any menu URLs -- assume it's a blog post #} + {%- set current_item = base_item -%} + {% endif -%} + + {{ menu_macros::menu_for(config=config, current_item=current_item) }} + {% endif -%} +{% endmacro menu %} + +{% macro menu_for(config, current_item) %} + {%- if config.extra.menu_items %} + {%- set menu_items = config.extra.menu_items -%} + + + {% endif -%} +{% endmacro menu %} + diff --git a/posixlycorrect/themes/terminimal/templates/macros/post.html b/posixlycorrect/themes/terminimal/templates/macros/post.html new file mode 100644 index 0000000..799ab2b --- /dev/null +++ b/posixlycorrect/themes/terminimal/templates/macros/post.html @@ -0,0 +1,103 @@ +{% macro content(page, summary) %} + {%- if summary and page.summary %} +
+ {{ page.summary | safe }} +
+ + {% else %} +
+ {{ page.content | safe }} +
+ {%- endif %} +{% endmacro content %} + + +{% macro date(page) %} + +{% endmacro post_date %} + + +{% macro earlier_later(page) %} + {%- if config.extra.enable_post_view_navigation and page.lower or page.higher %} + + {% endif -%} +{% endmacro earlier_later %} + + +{% macro header(page) %} +

{{ page.title }}

+ + + {{ post_macros::tags(page=page) }} +{% endmacro header %} + + +{% macro list_posts(pages) %} + +{% endmacro list_posts %} + + +{% macro tags(page, short=false) %} + {%- if page.taxonomies and page.taxonomies.tags %} + + {% endif -%} +{% endmacro tags %} diff --git a/posixlycorrect/themes/terminimal/templates/macros/title.html b/posixlycorrect/themes/terminimal/templates/macros/title.html new file mode 100644 index 0000000..56472f9 --- /dev/null +++ b/posixlycorrect/themes/terminimal/templates/macros/title.html @@ -0,0 +1,17 @@ +{% macro title(page_title, main_title) %} + {%- if config.extra.page_titles == "combined" -%} + {%- if page_title -%} + [{{ main_title }}/{{ page_title }}] + {%- else -%} + [{{ main_title }}] + {%- endif -%} + {%- elif config.extra.page_titles == "page_only" -%} + {%- if page_title -%} + {{ page_title }} + {%- else -%} + [{{ main_title }}] + {%- endif -%} + {%- else -%} + [{{ main_title }}] + {%- endif -%} +{% endmacro title %} diff --git a/posixlycorrect/themes/terminimal/templates/page.html b/posixlycorrect/themes/terminimal/templates/page.html new file mode 100644 index 0000000..f59d965 --- /dev/null +++ b/posixlycorrect/themes/terminimal/templates/page.html @@ -0,0 +1,13 @@ +{% extends "index.html" %} + +{%- block title -%} +{{ title_macros::title(page_title=page.title, main_title=config.title) }} +{%- endblock -%} + +{% block content %} +
+ {{ post_macros::header(page=page) }} + {{ post_macros::content(page=page, summary=false) }} + {{ post_macros::earlier_later(page=page) }} +
+{% endblock content %} diff --git a/posixlycorrect/themes/terminimal/templates/shortcodes/figure.html b/posixlycorrect/themes/terminimal/templates/shortcodes/figure.html new file mode 100644 index 0000000..b9de271 --- /dev/null +++ b/posixlycorrect/themes/terminimal/templates/shortcodes/figure.html @@ -0,0 +1,8 @@ +{% if src %} +
+ + {% if caption %} +
{{ caption }}
+ {% endif %} +
+{% endif %} diff --git a/posixlycorrect/themes/terminimal/templates/shortcodes/image.html b/posixlycorrect/themes/terminimal/templates/shortcodes/image.html new file mode 100644 index 0000000..091eeb8 --- /dev/null +++ b/posixlycorrect/themes/terminimal/templates/shortcodes/image.html @@ -0,0 +1,8 @@ +{% if src %} + {# If the image's URL is internal to the site... #} + {% if src is not starting_with("http") %} + {# ... then prepend the site's base URL to the image's URL. #} + {% set src = config.base_url ~ src %} + {% endif %} + +{% endif %} diff --git a/posixlycorrect/themes/terminimal/templates/tags/list.html b/posixlycorrect/themes/terminimal/templates/tags/list.html new file mode 100644 index 0000000..98cd693 --- /dev/null +++ b/posixlycorrect/themes/terminimal/templates/tags/list.html @@ -0,0 +1,21 @@ +{% extends "index.html" %} + +{%- block title -%} +{{ title_macros::title(page_title="Tags", main_title=config.title) }} +{%- endblock -%} + +{% block content %} +
+

all tags

+ + +
+{% endblock content %} diff --git a/posixlycorrect/themes/terminimal/templates/tags/single.html b/posixlycorrect/themes/terminimal/templates/tags/single.html new file mode 100644 index 0000000..92183b6 --- /dev/null +++ b/posixlycorrect/themes/terminimal/templates/tags/single.html @@ -0,0 +1,21 @@ +{% extends "index.html" %} + +{%- block title -%} +{% set title = "Tag: " ~ term.name %} +{{ title_macros::title(page_title=title, main_title=config.title) }} +{%- endblock -%} + +{% block content %} +
+

+ tag: #{{ term.name }} + ({{ term.pages | length }} post{{ term.pages | length | pluralize }}) +

+ + + Show all tags + + + {{ post_macros::list_posts(pages=term.pages) }} +
+{% endblock content %} diff --git a/posixlycorrect/themes/terminimal/theme.toml b/posixlycorrect/themes/terminimal/theme.toml new file mode 100644 index 0000000..5bcbdb0 --- /dev/null +++ b/posixlycorrect/themes/terminimal/theme.toml @@ -0,0 +1,45 @@ +name = "terminimal" +description = "A simple, minimal retro theme" +license = "MIT" +homepage = "https://github.com/pawroman/zola-theme-terminimal" +min_version = "0.11.0" + +# An optional live demo URL +demo = "https://pawroman.github.io/zola-theme-terminimal/" + +[author] +name = "Paweł Romanowski" +homepage = "https://github.com/pawroman" + +# The original theme this one's been forked off. +[original] +author = "Radosław Kozieł" +homepage = "https://radoslawkoziel.pl/" +repo = "https://github.com/panr/hugo-theme-terminal" + +[extra] + +# One of: blue, green, orange, pink, red. +accent_color = "blue" + +# One of: blue, dark, green, orange, pink, red. +# Enabling dark background will also modify primary font color +# to be darker. +# Defaults to accent color (or, if not accent color specified, to blue). +background_color = "blue" + +# The logo text - defaults to 2 non-breaking spaces. +logo_text = "Terminimal theme" + +# Whether to show links to earlier and later posts +# on each post page. +enable_post_view_navigation = true + +# The text shown at the bottom of a post, +# before earlier/later post links. +post_view_navigation_prompt = "Thanks for reading! Read other posts?" + +# Use full Hack character set, not just a subset. +# Switch this to true if you need full unicode support. +# Defaults to false. +use_full_hack_font = false