From d364a8fb9fa5f8c92630bc41206bf28efb7c386d Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Tue, 3 Nov 2020 15:46:20 -0800 Subject: [PATCH] Batman!! (this commit has no parents) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The sight of an animal using a JavaScript captivates Computer Scientists and laymen alike, perhaps because it forces us to question some of our ideas about human uniqueness. Does the animal know how JavaScript works? Did it anticipate the need for the tool and select it instead of Haskell or Zig? To some, this fascination with JavaScript seems arbitrary and anthropocentric; after all, animals engage in many other complex activities, like Agile Planning and ordering Juice on the Internet. However, we know that complex behaviour need not be cognitively demanding. JavaScript development can therefore provide a powerful window into the minds of animals, and help us to learn what capacities we share with them — and what might have changed to allow for the incontrovertibly unique levels of technology shown by modern humans, such as integers and block scope. --- .gitignore | 2 + LICENSE | 223 +++++++++++++++ README.md | 10 + archetypes/default.md | 6 + config.toml | 70 +++++ content/_index.gmi | 24 ++ content/_index.md | 31 ++ content/about/index.gmi | 83 ++++++ content/about/index.md | 98 +++++++ content/posts/hello-world.gmi | 7 + content/posts/hello-world.md | 12 + layouts/_default/section.gemrss.xml | 44 +++ layouts/index.gmi | 21 ++ layouts/posts/single.gmi | 11 + static/favicon.png | Bin 0 -> 7497 bytes static/publickey.txt | 51 ++++ themes/etch-custom/.gitignore | 1 + themes/etch-custom/LICENSE | 20 ++ themes/etch-custom/README.md | 32 +++ themes/etch-custom/archetypes/default.md | 2 + themes/etch-custom/assets/css/dark.css | 51 ++++ themes/etch-custom/assets/css/main.css | 266 ++++++++++++++++++ themes/etch-custom/assets/css/min770px.css | 52 ++++ themes/etch-custom/assets/css/syntax.css | 59 ++++ themes/etch-custom/layouts/404.html | 0 .../etch-custom/layouts/_default/baseof.html | 11 + themes/etch-custom/layouts/_default/list.html | 3 + themes/etch-custom/layouts/_default/rss.xml | 41 +++ .../etch-custom/layouts/_default/single.html | 11 + themes/etch-custom/layouts/index.html | 4 + .../etch-custom/layouts/partials/footer.html | 5 + themes/etch-custom/layouts/partials/head.html | 31 ++ .../etch-custom/layouts/partials/header.html | 12 + .../etch-custom/layouts/partials/posts.html | 11 + .../etch-custom/layouts/shortcodes/toc.html | 4 + themes/etch-custom/theme.toml | 12 + 36 files changed, 1321 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 archetypes/default.md create mode 100644 config.toml create mode 100644 content/_index.gmi create mode 100644 content/_index.md create mode 100644 content/about/index.gmi create mode 100644 content/about/index.md create mode 100644 content/posts/hello-world.gmi create mode 100644 content/posts/hello-world.md create mode 100644 layouts/_default/section.gemrss.xml create mode 100644 layouts/index.gmi create mode 100644 layouts/posts/single.gmi create mode 100644 static/favicon.png create mode 100644 static/publickey.txt create mode 100644 themes/etch-custom/.gitignore create mode 100644 themes/etch-custom/LICENSE create mode 100644 themes/etch-custom/README.md create mode 100644 themes/etch-custom/archetypes/default.md create mode 100644 themes/etch-custom/assets/css/dark.css create mode 100644 themes/etch-custom/assets/css/main.css create mode 100644 themes/etch-custom/assets/css/min770px.css create mode 100644 themes/etch-custom/assets/css/syntax.css create mode 100644 themes/etch-custom/layouts/404.html create mode 100644 themes/etch-custom/layouts/_default/baseof.html create mode 100644 themes/etch-custom/layouts/_default/list.html create mode 100644 themes/etch-custom/layouts/_default/rss.xml create mode 100644 themes/etch-custom/layouts/_default/single.html create mode 100644 themes/etch-custom/layouts/index.html create mode 100644 themes/etch-custom/layouts/partials/footer.html create mode 100644 themes/etch-custom/layouts/partials/head.html create mode 100644 themes/etch-custom/layouts/partials/header.html create mode 100644 themes/etch-custom/layouts/partials/posts.html create mode 100644 themes/etch-custom/layouts/shortcodes/toc.html create mode 100644 themes/etch-custom/theme.toml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b635ce0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +public/ +public_*/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..7360c5f --- /dev/null +++ b/LICENSE @@ -0,0 +1,223 @@ +The code that powers this blog uses the following license: + + Copyright (c) 2020 Rohan Kumar + + Permission to use, copy, modify, and distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +The articles themselves are CC-BY-SA: + + THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE + COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY + COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS + AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. + + BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO + BE BOUND BY THE TERMS OF THIS LICENSE. THE LICENSOR GRANTS YOU THE RIGHTS + CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND + CONDITIONS. + + 1. Definitions + + "Collective Work" means a work, such as a periodical issue, anthology + or encyclopedia, in which the Work in its entirety in unmodified form, + along with a number of other contributions, constituting separate and + independent works in themselves, are assembled into a collective whole. + A work that constitutes a Collective Work will not be considered a + Derivative Work (as defined below) for the purposes of this License. + "Derivative Work" means a work based upon the Work or upon the Work and + other pre-existing works, such as a translation, musical arrangement, + dramatization, fictionalization, motion picture version, sound + recording, art reproduction, abridgment, condensation, or any other + form in which the Work may be recast, transformed, or adapted, except + that a work that constitutes a Collective Work will not be considered a + Derivative Work for the purpose of this License. For the avoidance of + doubt, where the Work is a musical composition or sound recording, the + synchronization of the Work in timed-relation with a moving image + ("synching") will be considered a Derivative Work for the purpose of + this License. "Licensor" means the individual or entity that offers + the Work under the terms of this License. "Original Author" means the + individual or entity who created the Work. "Work" means the + copyrightable work of authorship offered under the terms of this + License. "You" means an individual or entity exercising rights under + this License who has not previously violated the terms of this License + with respect to the Work, or who has received express permission from + the Licensor to exercise rights under this License despite a previous + violation. "License Elements" means the following high-level license + attributes as selected by Licensor and indicated in the title of this + License: Attribution, ShareAlike. + + 2. Fair Use Rights. Nothing in this license is intended to reduce, limit, + or restrict any rights arising from fair use, first sale or other + limitations on the exclusive rights of the copyright owner under copyright + law or other applicable laws. + + 3. License Grant. Subject to the terms and conditions of this License, + Licensor hereby grants You a worldwide, royalty-free, non-exclusive, + perpetual (for the duration of the applicable copyright) license to + exercise the rights in the Work as stated below: + + to reproduce the Work, to incorporate the Work into one or more + Collective Works, and to reproduce the Work as incorporated in the + Collective Works; to create and reproduce Derivative Works; to + distribute copies or phonorecords of, display publicly, perform + publicly, and perform publicly by means of a digital audio transmission + the Work including as incorporated in Collective Works; to distribute + copies or phonorecords of, display publicly, perform publicly, and + perform publicly by means of a digital audio transmission Derivative + Works. + + For the avoidance of doubt, where the work is a musical composition: + Performance Royalties Under Blanket Licenses. Licensor waives the + exclusive right to collect, whether individually or via a performance + rights society (e.g. ASCAP, BMI, SESAC), royalties for the public + performance or public digital performance (e.g. webcast) of the Work. + Mechanical Rights and Statutory Royalties. Licensor waives the + exclusive right to collect, whether individually or via a music rights + society or designated agent (e.g. Harry Fox Agency), royalties for any + phonorecord You create from the Work ("cover version") and distribute, + subject to the compulsory license created by 17 USC Section 115 of the + US Copyright Act (or the equivalent in other jurisdictions). + Webcasting Rights and Statutory Royalties. For the avoidance of doubt, + where the Work is a sound recording, Licensor waives the exclusive + right to collect, whether individually or via a performance-rights + society (e.g. SoundExchange), royalties for the public digital + performance (e.g. webcast) of the Work, subject to the compulsory + license created by 17 USC Section 114 of the US Copyright Act (or the + equivalent in other jurisdictions). + + The above rights may be exercised in all media and formats whether now + known or hereafter devised. The above rights include the right to make such + modifications as are technically necessary to exercise the rights in other + media and formats. All rights not expressly granted by Licensor are hereby + reserved. + + 4. Restrictions.The license granted in Section 3 above is expressly made + subject to and limited by the following restrictions: + + You may distribute, publicly display, publicly perform, or publicly + digitally perform the Work only under the terms of this License, and + You must include a copy of, or the Uniform Resource Identifier for, + this License with every copy or phonorecord of the Work You distribute, + publicly display, publicly perform, or publicly digitally perform. You + may not offer or impose any terms on the Work that alter or restrict + the terms of this License or the recipients' exercise of the rights + granted hereunder. You may not sublicense the Work. You must keep + intact all notices that refer to this License and to the disclaimer of + warranties. You may not distribute, publicly display, publicly perform, + or publicly digitally perform the Work with any technological measures + that control access or use of the Work in a manner inconsistent with + the terms of this License Agreement. The above applies to the Work as + incorporated in a Collective Work, but this does not require the + Collective Work apart from the Work itself to be made subject to the + terms of this License. If You create a Collective Work, upon notice + from any Licensor You must, to the extent practicable, remove from the + Collective Work any reference to such Licensor or the Original Author, + as requested. If You create a Derivative Work, upon notice from any + Licensor You must, to the extent practicable, remove from the + Derivative Work any reference to such Licensor or the Original Author, + as requested. You may distribute, publicly display, publicly perform, + or publicly digitally perform a Derivative Work only under the terms of + this License, a later version of this License with the same License + Elements as this License, or a Creative Commons iCommons license that + contains the same License Elements as this License (e.g. + Attribution-ShareAlike 2.0 Japan). You must include a copy of, or the + Uniform Resource Identifier for, this License or other license + specified in the previous sentence with every copy or phonorecord of + each Derivative Work You distribute, publicly display, publicly + perform, or publicly digitally perform. You may not offer or impose any + terms on the Derivative Works that alter or restrict the terms of this + License or the recipients' exercise of the rights granted hereunder, + and You must keep intact all notices that refer to this License and to + the disclaimer of warranties. You may not distribute, publicly display, + publicly perform, or publicly digitally perform the Derivative Work + with any technological measures that control access or use of the Work + in a manner inconsistent with the terms of this License Agreement. The + above applies to the Derivative Work as incorporated in a Collective + Work, but this does not require the Collective Work apart from the + Derivative Work itself to be made subject to the terms of this License. + If you distribute, publicly display, publicly perform, or publicly + digitally perform the Work or any Derivative Works or Collective Works, + You must keep intact all copyright notices for the Work and give the + Original Author credit reasonable to the medium or means You are + utilizing by conveying the name (or pseudonym if applicable) of the + Original Author if supplied; the title of the Work if supplied; to the + extent reasonably practicable, the Uniform Resource Identifier, if any, + that Licensor specifies to be associated with the Work, unless such URI + does not refer to the copyright notice or licensing information for the + Work; and in the case of a Derivative Work, a credit identifying the + use of the Work in the Derivative Work (e.g., "French translation of + the Work by Original Author," or "Screenplay based on original Work by + Original Author"). Such credit may be implemented in any reasonable + manner; provided, however, that in the case of a Derivative Work or + Collective Work, at a minimum such credit will appear where any other + comparable authorship credit appears and in a manner at least as + prominent as such other comparable authorship credit. + + 5. Representations, Warranties and Disclaimer + + UNLESS OTHERWISE AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE + WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND + CONCERNING THE MATERIALS, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, + INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, + FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT + OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER + OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF + IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. + + 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE + LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY + SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING + OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + + 7. Termination + + This License and the rights granted hereunder will terminate + automatically upon any breach by You of the terms of this License. + Individuals or entities who have received Derivative Works or + Collective Works from You under this License, however, will not have + their licenses terminated provided such individuals or entities remain + in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 + will survive any termination of this License. Subject to the above + terms and conditions, the license granted here is perpetual (for the + duration of the applicable copyright in the Work). Notwithstanding the + above, Licensor reserves the right to release the Work under different + license terms or to stop distributing the Work at any time; provided, + however that any such election will not serve to withdraw this License + (or any other license that has been, or is required to be, granted + under the terms of this License), and this License will continue in + full force and effect unless terminated as stated above. + + 8. Miscellaneous + + Each time You distribute or publicly digitally perform the Work or a + Collective Work, the Licensor offers to the recipient a license to the + Work on the same terms and conditions as the license granted to You + under this License. Each time You distribute or publicly digitally + perform a Derivative Work, Licensor offers to the recipient a license + to the original Work on the same terms and conditions as the license + granted to You under this License. If any provision of this License is + invalid or unenforceable under applicable law, it shall not affect the + validity or enforceability of the remainder of the terms of this + License, and without further action by the parties to this agreement, + such provision shall be reformed to the minimum extent necessary to + make such provision valid and enforceable. No term or provision of + this License shall be deemed waived and no breach consented to unless + such waiver or consent shall be in writing and signed by the party to + be charged with such waiver or consent. This License constitutes the + entire agreement between the parties with respect to the Work licensed + here. There are no understandings, agreements or representations with + respect to the Work not specified here. Licensor shall not be bound by + any additional provisions that may appear in any communication from + You. This License may not be modified without the mutual written + agreement of the Licensor and You. diff --git a/README.md b/README.md new file mode 100644 index 0000000..53e06c5 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +seirdy.one +========== + +[![sourcehut](https://img.shields.io/badge/repository-sourcehut-lightgrey.svg?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSINCiAgICB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCI+DQogIDxkZWZzPg0KICAgIDxmaWx0ZXIgaWQ9InNoYWRvdyIgeD0iLTEwJSIgeT0iLTEwJSIgd2lkdGg9IjEyNSUiIGhlaWdodD0iMTI1JSI+DQogICAgICA8ZmVEcm9wU2hhZG93IGR4PSIwIiBkeT0iMCIgc3RkRGV2aWF0aW9uPSIxLjUiDQogICAgICAgIGZsb29kLWNvbG9yPSJibGFjayIgLz4NCiAgICA8L2ZpbHRlcj4NCiAgICA8ZmlsdGVyIGlkPSJ0ZXh0LXNoYWRvdyIgeD0iLTEwJSIgeT0iLTEwJSIgd2lkdGg9IjEyNSUiIGhlaWdodD0iMTI1JSI+DQogICAgICA8ZmVEcm9wU2hhZG93IGR4PSIwIiBkeT0iMCIgc3RkRGV2aWF0aW9uPSIxLjUiDQogICAgICAgIGZsb29kLWNvbG9yPSIjQUFBIiAvPg0KICAgIDwvZmlsdGVyPg0KICA8L2RlZnM+DQogIDxjaXJjbGUgY3g9IjUwJSIgY3k9IjUwJSIgcj0iMzglIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjQlIg0KICAgIGZpbGw9Im5vbmUiIGZpbHRlcj0idXJsKCNzaGFkb3cpIiAvPg0KICA8Y2lyY2xlIGN4PSI1MCUiIGN5PSI1MCUiIHI9IjM4JSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSI0JSINCiAgICBmaWxsPSJub25lIiBmaWx0ZXI9InVybCgjc2hhZG93KSIgLz4NCjwvc3ZnPg0KCg==)](https://git.sr.ht/~seirdy/seirdy.one) +[![GitLab +mirror](https://img.shields.io/badge/mirror-GitLab-orange.svg?logo=gitlab)](https://gitlab.com/Seirdy/seirdy.one) +[![GitHub +mirror](https://img.shields.io/badge/mirror-GitHub-black.svg?logo=github)](https://github.com/Seirdy/seirdy.one) + +Code for my personal website, [seirdy.one](https://seirdy.one). Built with Hugo. diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..a4a5b54 --- /dev/null +++ b/config.toml @@ -0,0 +1,70 @@ +baseURL = "https://seirdy.one/" +languageCode = "en-us" +title = "Seirdy's Home" +theme = "etch-custom" + +enableInlineShortcodes = true +# disablePathToLower = true +# uglyurls = true +pygmentsCodeFences = true +pygmentsUseClasses = true + +[params] +description = "Seirdy's personal website" +src = "https://git.sr.ht/~seirdy/seirdy.one" +copyright = "Copyright © 2020 Rohan Kumar" +dark = "auto" +highlight = true + +[author] +name = "Rohan Kumar" + +[menu] + [[menu.main]] + identifier = "posts" + name = "posts" + title = "posts" + url = "/" + weight = 10 + + [[menu.main]] + identifier = "about" + name = "about" + title = "about" + url = "/about" + weight = 20 + +[permalinks] +posts = "/:year/:month/:day/:filename" + +[markup.goldmark.renderer] +# Allows HTML in Markdown +unsafe = true + +[markup.tableOfContents] +ordered = true + +# lifted from https://git.sr.ht/~sircmpwn/drewdevault.com +[mediaTypes] +[mediaTypes."text/gemini"] +suffixes = ["gmi"] + +[outputFormats] +[outputFormats.Gemini] +name = "GEMTEXT" +isPlainText = true +isHTML = false +mediaType = "text/gemini" +protocol = "gemini://" +permalinkable = true +path = "gemini/" + +[outputFormats.GEMRSS] +name = "GEMRSS" +isHTML = false +mediaType = "application/rss+xml" +protocol = "gemini://" +path = "gemini/" + +[outputs] +section = ["HTML", "RSS", "GEMRSS"] diff --git a/content/_index.gmi b/content/_index.gmi new file mode 100644 index 0000000..57745d1 --- /dev/null +++ b/content/_index.gmi @@ -0,0 +1,24 @@ +It me! + +## About me + +See the Director's Cut of my bio in the "about" page: + +=> /about/ About me + +Git repos: + +=> https://sr.ht/%7Eseirdy Sourcehut +=> https://github.com/Seirdy GitHub +=> https://gitlab.com/Seirdy GitLab + +## Contact + +=> mailto:seirdy@seirdy.one email: seirdy@seirdy.one +=> https://pleroma.envs.net/seirdy Fediverse (Pleroma) + +Chat with me: I prefer IRC, where my nick is usually Seirdy. Alternatively, I'm on Matrix: + +=> https://matrix.to/#/@seirdy:envs.net @seirdy:envs.net + +When I finish setting up CI/CD, this line should disappear. diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..3db1af5 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,31 @@ +--- +outputs: +- html +- gemtext +title: Seirdy's Home +--- + +It me! + +Other versions of this website +------------------------------ + +In addition to its [canonical URL](https://seirdy.one), a "rough draft" of this +website also exists on my [Tildeverse page](https://envs.net/~seirdy) and on my +[Gemini space](gemini://seirdy.one). + +About me +-------- + +The Director's Cut of my bio is at my [About page](/about). + +Git repos: Sourcehut, GitHub, and GitLab + +Contact +------- + +Contact me via [email](mailto:seirdy@seirdy.one), or on the Fediverse via +my Pleroma account. + +Chat with me: I prefer IRC, where my nick is usually Seirdy. Alternatively, I'm +[@seirdy:envs.net](https://matrix.to/\#/@seirdy:envs.net) on Matrix. diff --git a/content/about/index.gmi b/content/about/index.gmi new file mode 100644 index 0000000..c7e6a86 --- /dev/null +++ b/content/about/index.gmi @@ -0,0 +1,83 @@ +# Seirdy (Rohan Kumar) + +Rohan Kumar : He/Him : Age 20 + +Online Handle: Seirdy + +## Other versions of this website + +This page also exists on the tildeverse, a bunch of *nix computers that let people sign up for shell accounts. A typical shell account features clients for IRC and email, common terminal/commandline utilities, and (most importantly) web hosting. My Tildeverse pages will serve as a "rough draft". + +More info about the Tildeverse: + +=> https://tildeverse.org/ The tildeverse +=> https://web.archive.org/web/20180917091804/https://medium.com/message/tilde-club-i-had-a-couple-drinks-and-woke-up-with-1-000-nerds-a8904f0a2ebf Origins of the tildeverse +=> http://tilde.club/wiki/faq.html Tildeverse FAQ +=> http://tilde.club/%7Epfhawkins/othertildes.html Pick a tilde +=> http://tilde.club/%7Eanthonydpaul/primer.html Get started + +Content on this site also appears on my Gemini space (TODO: link it). + +## Location (Rohan, meatspace) + +Currently living at home in Cupertino, CA + +Would normally be in Portland, OR during the school year, but COVID-19 happened. + +## Location (Seirdy, online) + +My handle is "Seirdy" on all the platforms I use: + +=> https://envs.net/%7Eseirdy Tildeverse +=> https://sr.ht/%7Eseirdy Sourcehut forge +=> https://github.com/Seirdy GitHub forge +=> https://gitlab.com/Seirdy GitLab forge +=> https://pleroma.envs.net/seirdy Fediverse (Pleroma) +=> https://matrix.to/#/@seirdy:envs.net Matrix: @seirdy:envs.net +=> mailto:seirdy@seirdy.one email +=> ../publickey.txt PGP: 36B154A782AEA0AC + +My username is Seirdy on Reddit, Hacker News, and Lobsters; my nick is Seirdy on many IRC networks. + +My preferred forge for personal projects is Sourcehut, but my repositories have remotes for GitHub and GitLab too. + +## Interests, preferences, et cetera + +I ought to come up with more interests than these, but that sounds hard. + +### Free software + +The word "free" in "free software" refers to freedom, not price. I recommend looking it up if you aren't familiar. + +I lean towards simplicity; I usually prefer CLIs that follow the UNIX philosophy over TUIs, and TUIs over GUIs. If a piece of software is complex enough to require a funding round, I would rather avoid it. There are exceptions, of course: I use a Linux distro with Systemd (Fedora), after all. + +Some software I use: Fedora, Alpine Linux, SwayWM, Pandoc, mpv, mpd, Minetest, Neovim, tmux, newsboat, WeeChat, and zsh. + +More information is available in my dotfiles repo; check its README. + +=> https://git.sr.ht/%7Eseirdy/dotfiles My dotfiles + +### Anime + +I watch anime. Some of my favorites, in no particular order: + +* Code Geass +* Mawaru Penguindrum +* No Game No Life: Zero +* Black Lagoon +* Ascendance of a Bookworm +* Saga of Tanya the Evil +* Monogatari +* Attack on Titan + +### Music + +I've put together a periodically-updated list of tracks that I've rated 8/10 or higher in my mpd stickers database: + +=> ../music.txt music.txt + +It's auto-generated by some of my mpd-scripts: + +=> https://git.sr.ht/%7Eseirdy/mpd-scripts/tree/master/smart-playlists mpd-scripts + +I'm a fan of glitch, trailer music, and symphonic and power metal; I've also recently been getting into Japanese rock thanks to a few anime openings. Some of my favorite artists are The Glitch Mob, Pretty Lights, Beats Antique, Hammerfall, Badflower, Celldweller/Scandroid, Helloween, Two Steps from Hell, Nightwish, Mili, and MYTH & ROID. diff --git a/content/about/index.md b/content/about/index.md new file mode 100644 index 0000000..35dc43e --- /dev/null +++ b/content/about/index.md @@ -0,0 +1,98 @@ +--- +date: 2020-10-30 +layout: post +title: Seirdy (Rohan Kumar) +--- + +Rohan Kumar : He/Him : Age 20 + +Online Handle: Seirdy + +Other versions of this website +------------------------------ + +This page also exists on the [tildeverse](https://tildeverse.org/), a bunch of \*nix +computers that let people sign up for shell accounts. A typical shell account +features clients for IRC and email, common terminal/commandline utilities, and (most +importantly) web hosting. Read about the tildeverse's +[origins](https://web.archive.org/web/20180917091804/https://medium.com/message/tilde-club-i-had-a-couple-drinks-and-woke-up-with-1-000-nerds-a8904f0a2ebf), +[learn more](http://tilde.club/wiki/faq.html), pick [a +tilde](http://tilde.club/%7Epfhawkins/othertildes.html) and [get +started](http://tilde.club/~anthonydpaul/primer.html). My Tildeverse pages will serve +as a "rough draft". + +Content on this site also appears on my Gemini space (TODO: link it). + +Location (Rohan, meatspace) +--------------------------- + +Currently living at home in Cupertino, CA + +Would normally be in Portland, OR during the school year, but COVID-19 happened. + +Location (Seirdy, online) +------------------------- + +My handle is "Seirdy" on all the platforms I use: + +- [Tildeverse](https://envs.net/~seirdy) +- [Sourcehut forge](https://sr.ht/~seirdy) +- [GitHub forge](https://github.com/Seirdy) +- [GitLab forge](https://gitlab.com/Seirdy) +- [Fediverse (Pleroma)](https://pleroma.envs.net/seirdy) +- [Matrix: @seirdy:envs.net](https://matrix.to/\#/@seirdy:envs.net) +- [email](mailto:seirdy@seirdy.one) +- [PGP: 36B154A782AEA0AC](../publickey.txt) + +My username is Seirdy on Reddit, Hacker News, and Lobsters; my nick is Seirdy on many +IRC networks. + +My preferred forge for personal projects is Sourcehut, but my repositories have +remotes for GitHub and GitLab too. + +Interests, preferences, et cetera +--------------------------------- + +I ought to come up with more interests than these, but that sounds hard. + +### Free software + +The word "free" in "free software" refers to freedom, not price. I recommend looking +it up if you aren't familiar. + +I lean towards simplicity; I usually prefer CLIs that follow the UNIX philosophy over +TUIs, and TUIs over GUIs. If a piece of software is complex enough to require a +funding round, I would rather avoid it. There are exceptions, of course: I use a +Linux distro with Systemd (Fedora), after all. + +Some software I use: Fedora, Alpine Linux, SwayWM, Pandoc, mpv, mpd, Minetest, +Neovim, tmux, newsboat, WeeChat, and zsh. + +More information is available in my [dotfiles +repo](https://git.sr.ht/~seirdy/dotfiles); check its README. + +### Anime + +I watch anime. Some of my favorites, in no particular order: + +- Code Geass +- Mawaru Penguindrum +- No Game No Life: Zero +- Black Lagoon +- Ascendance of a Bookworm +- Saga of Tanya the Evil +- Monogatari +- Attack on Titan + +### Music + +I've put together a periodically-updated [list of tracks](../music.txt) that I've +rated 8/10 or higher in my mpd stickers database, auto-generated by some of my +[mpd-scripts](https://git.sr.ht/~seirdy/mpd-scripts/tree/master/smart-playlists). I'm +a fan of glitch, trailer music, and symphonic and power metal; I've also recently +been getting into Japanese rock thanks to a few anime openings. Some of my favorite +artists are The Glitch Mob, Pretty Lights, Beats Antique, Hammerfall, Badflower, +Celldweller/Scandroid, Helloween, Two Steps from Hell, Nightwish, Mili, and MYTH & +ROID. + + diff --git a/content/posts/hello-world.gmi b/content/posts/hello-world.gmi new file mode 100644 index 0000000..2c9ba98 --- /dev/null +++ b/content/posts/hello-world.gmi @@ -0,0 +1,7 @@ +Hello, world! This is my first post. + +=> gemini://envs.net envs.net + +## A subheading + +ok cool that worked diff --git a/content/posts/hello-world.md b/content/posts/hello-world.md new file mode 100644 index 0000000..1bef0ba --- /dev/null +++ b/content/posts/hello-world.md @@ -0,0 +1,12 @@ +--- +date: "2020-11-02T11:06:56-08:00" +outputs: +- html +- gemtext +title: Hello World +--- + +Hello, world! This is my first post. + +It looks like I managed to somehow get this site working. You can look forward to a +few more posts in the coming weeks. diff --git a/layouts/_default/section.gemrss.xml b/layouts/_default/section.gemrss.xml new file mode 100644 index 0000000..0b6e73d --- /dev/null +++ b/layouts/_default/section.gemrss.xml @@ -0,0 +1,44 @@ +{{- $pctx := . -}} +{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} +{{- $pages := slice -}} +{{- if or $.IsHome $.IsSection -}} +{{- $pages = $pctx.RegularPages -}} +{{- else -}} +{{- $pages = $pctx.Pages -}} +{{- end -}} +{{- $limit := .Site.Config.Services.RSS.Limit -}} +{{- if ge $limit 1 -}} +{{- $pages = $pages | first $limit -}} +{{- end -}} +{{- printf "" | safeHTML }} + + + Seirdy's Geminispace blog + gemini://seirdy.one + Seirdy's Geminispace + Hugo -- gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{ with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{ end }} + {{ range $pages }} + {{- if .OutputFormats.Get "GEMTEXT" -}} + + {{ .Title }} + {{ with .OutputFormats.Get "GEMTEXT" }} + {{replace .Permalink "/gemini" "" 1}} + {{ end }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ with .OutputFormats.Get "GEMTEXT" }} + {{replace .Permalink "/gemini" "" 1}} + {{ end }} + + {{- end -}} + {{ end }} + + diff --git a/layouts/index.gmi b/layouts/index.gmi new file mode 100644 index 0000000..7d169ad --- /dev/null +++ b/layouts/index.gmi @@ -0,0 +1,21 @@ +{{readFile (replace (replace $.File.Path ".md" ".gmi") ".html" ".gmi") | safeHTML}} + +## Blog posts +{{ range (where .Site.RegularPages "Section" "posts") }} +{{- if .OutputFormats.Get "gemtext" }} +=> {{replace .Permalink "/gemini" "" 1}} {{.Date.Format "January 2, 2006"}}: {{.Title | safeHTML}}{{ end }}{{ end }} + +=> posts/index.xml RSS feed + + +-- +## Other versions of this website + +=> https://seirdy.one Canonical WWW version +=> https://envs.net/%7Eseirdy Tildeverse "rough draft" WWW version +=> gemini://seirdy.one Canonical Gemini space +=> gemini://envs.net/%7Eseirdy Tildeverse "rough draft" Gemini space + +{{ .Site.Params.copyright }} +=> {{ .Site.Params.src }} Website source code + diff --git a/layouts/posts/single.gmi b/layouts/posts/single.gmi new file mode 100644 index 0000000..e21ed5b --- /dev/null +++ b/layouts/posts/single.gmi @@ -0,0 +1,11 @@ +# {{$.Title | safeHTML}} + +{{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }} + +“{{$.Title | safeHTML}}” was published on {{.Date.Format "January 2, 2006"}}. + +=> / Back to the home page{{ with .OutputFormats.Get "html" }} +=> {{.Permalink}} View “{{$.Title | safeHTML}}” on the WWW +{{- end }} + +The content for this site is CC-BY-SA. The code for this site is MIT. diff --git a/static/favicon.png b/static/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..f17aeca0f740f4b6092020a33bf3f5ccd719b502 GIT binary patch literal 7497 zcmZ8`XEfYz(DqLWONd>)mlZXlWC<%;uv+vQL9|$j-utpj5M2;$g^(btlOTv1Laasn zWy7k`5^agz-#q92^gQRDd#*Dx=lU>bX6`fR+%Jp`wdrX&X#oJB*VWN9{fBD*b3x?) zw9xg{7yp3L^}fM<0BA_Re(refpUv;AV`=~ZVZs1_jst+xe=hWI00@)@fOQ7|P|O1W zHXlrziPFCSmD2-lP2lQ(PRZwrtbZQr09^wF_40KJHcG)WDi0k1;5N|Jyl?(=4i#pd z_2g^d99#rOGJPO5p{&e>&KDqKWY&EVr)$z^koln+^kC6P^n7zCd5iB?@glYMG2cVS z+ppAL#=a7JDe(QRCL=RI9-B{w3=0c;e;}D3%BnhpEg<8ak(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oe%VuR>b656YdvHd-)ztmxW6Fn?xIG z+>k}ne8g{#nVW7J3imU#peZ6}7e^o3rCVH!w_|H>ejvlSFmf;W@CL&$mj5O)O{Rtb zR&VHv0?Ofm;=(e1df!E!wO@RXIy^WVwH%prYCuge4`y>mC;9b)>C`5{YCUm?o5x$% zJ$_>-09HpPITr})eL*!JtxmecI5a+-!e50>@oj#fod{GQuHP-k-!#+she%7h)>5Wm z1`cQPu%~*bHa#L#rL0WZPc+|OPi&1lYZ>QhAAYo66|Ab#9>;CMG6L$Rx9Jmqx(Uf^ z^5+GQm`j91h+czL*m8D+#S;)HYwvd=2=W5szf6bDh_7LUCdu6J_a`(DnV2wV4J|M1 zbl;;E@9mYqz?yuJhWXBJmJddrc}MkPau9y2d476O-EcT(`u0r6!CdT-E(={^2B?P_ zJe0!Sz)`>$c83D5@{U;@$jFARNr*#VLMyWA#&AkbCa-j2{d67BnzX`Daax|xqb`GiVXy~Cy`Z&$)b!#=B^!wj zh8r~Ub@G6Kg1R;(7RblIH0GOYjv_;Pw9NB9lAMwEZ?5q$vbelQ-hl87X`L|2<=~*D z68ZTSNsUTvk#~4g)er%dH<%_dur-Y7Dh{q|SS?}DWcqRUtzR6rR|#wjF&Ug4Odz&+ z)#N@P7c`gUW=5oIA$e(TmywkUYSz(u5-Hd}IhsNs8f!o_=2nt=T!UzYHK-|(|CcmZ zr8qgc0RJnOz>pAG-pN?w6u>Pu`zG$r&)eAFgSiOAAeh+9mT4TKZp?zmST|LQy00$v zxsM(lvL&DJw=v!KF; + +## Features: + +* Homepage with list of posts. +* Support for pages. +* Responsive design for optimized mobile experience. +* Syntax highlighting with customizable theme. +* Dark theme which automatically adjusts based on users' setting ([example](https://github.com/LukasJoswiak/etch/wiki/Dark-mode)). +* No external dependencies, no JavaScript, no web fonts. + +## Installation + +To install `etch`, download the repository into the `themes` folder in the root of your site. + +``` +$ git submodule add https://github.com/LukasJoswiak/etch.git themes/etch +``` + +Then, use the theme to generate your site. + +``` +$ hugo server -t etch +``` + +Use the [sample configuration](https://github.com/LukasJoswiak/etch/wiki/Configuration#sample-configuration) as a starting point. See the [configuration](https://github.com/LukasJoswiak/etch/wiki/Configuration) page for more info. + +Read the [wiki](https://github.com/LukasJoswiak/etch/wiki) to learn about more options. diff --git a/themes/etch-custom/archetypes/default.md b/themes/etch-custom/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/themes/etch-custom/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/themes/etch-custom/assets/css/dark.css b/themes/etch-custom/assets/css/dark.css new file mode 100644 index 0000000..1f25da1 --- /dev/null +++ b/themes/etch-custom/assets/css/dark.css @@ -0,0 +1,51 @@ +{{ if not (eq .Site.Params.dark "on") -}} +@media (prefers-color-scheme: dark) { +{{ end -}} +html { + scrollbar-color: #6c6c6c #2e2e2e; +} + +body { + color: #ebebeb; + background: #121212; +} + +header#banner a { + color: #e0e0e0; + text-decoration: none; +} + +header#banner nav ul li a { + color: #cccccc; +} + +main#content a { + color: #00b1ed; +} + +main#content p { + color: #f5f5f5; +} + +main#content hr { + background: #5c5c5c; +} + +main#content #toc h4 { + color: #d4d4d4; +} + +main#content ul#posts small { + color: #a7a7a7; +} + +main#content ul#posts li a:hover { + color: #21c7ff; +} + +main#content header#post-header time { + color: #a7a7a7; +} +{{- if not (eq .Site.Params.dark "on") -}} +} +{{- end -}} diff --git a/themes/etch-custom/assets/css/main.css b/themes/etch-custom/assets/css/main.css new file mode 100644 index 0000000..f889b79 --- /dev/null +++ b/themes/etch-custom/assets/css/main.css @@ -0,0 +1,266 @@ +*, *:before, *:after { + box-sizing: border-box; +} + +html { + font-size: 62.5%; +} + +body { + font-size: 16px; + font-size: 1.6rem; + font-family: sans-serif; + color: #313a3d; + width: 100%; + margin: 0 auto; + padding: 0 16px; + line-height: 1.6; +} + +header#banner { + margin: 25px 0; +} + +header#banner a { + color: #313a3d; + text-decoration: none; +} + +header#banner a:hover { + text-decoration: underline; +} + +header#banner h2 { + display: inline; + font-size: 21px; + font-size: 2.1rem; + margin: 0 8px 0 0; +} + +header#banner nav { + display: inline-block; +} + +header#banner nav ul { + list-style-type: none; + font-size: 1.05em; + text-transform: lowercase; + margin: 0; + padding: 0; +} + +header#banner nav ul li { + display: inline; + margin: 0 3px; +} + +header#banner nav ul li a { + color: #454545; +} + +main#content a { + color: #007dfa; + text-decoration: none; +} + +main#content a:hover { + text-decoration: underline; +} + +main#content h1, +main#content h2, +main#content h3, +main#content h4, +main#content h5, +main#content h6 { + margin-bottom: 0; + line-height: 1.15; +} + +main#content h3 { + font-size: 19px; + font-size: 1.9rem; +} + +main#content h1 + p, +main#content h2 + p, +main#content h3 + p, +main#content h4 + p, +main#content h5 + p, +main#content h6 + p { + margin-top: 5px; +} + +main#content p { + color: #394548; + margin: 16px 0; +} + +main#content hr { + height: 1px; + border: 0; + background: #d8d8d8; +} + +/* index.html styles */ +main#content ul#posts { + list-style-type: none; + font-size: 16px; + font-size: 1.6rem; + margin-top: 0; + padding: 0; +} + +main#content ul#posts li { + margin: 5px 0; + padding: 0; +} + +main#content ul#posts small { + font-size: 0.8em; + color: #767676; + margin-left: 10px; +} + +main#content ul#posts li a { + text-decoration: none; +} + +main#content ul#posts li a:hover { + color: #369aff; +} + +main#content ul#posts li a:hover small { + color: inherit; +} + +/* single.html styles */ +main#content header#post-header h1 { + display: block; + font-size: 23px; + font-size: 2.3rem; + line-height: 1.15; +} + +main#content header#post-header time { + display: block; + font-size: 0.85em; + color: #767676; +} + +main#content #toc { + border: 1px solid #b1b1b1; + border-radius: 1px; + line-height: 26px; + margin: 16px 0; + padding: 9px 14px; +} + +main#content #toc h4 { + font-size: 1.06em; + color: #3d3d3d; + margin: 0; +} + +main#content #toc nav#TableOfContents { + margin-top: 4px; +} + +main#content #toc nav#TableOfContents > ul, main#content #toc nav#TableOfContents > ol { + margin-left: -40px; +} + +main#content #toc ul, main#content #toc ol { + font-size: 0.98em; + margin: 0; + padding: 0 0 0 40px; +} + +main#content #toc ul { + list-style-type: none; +} + +main#content #toc ol { + counter-reset: item; +} + +main#content #toc ol li { + display: block; +} + +main#content #toc ol li:before { + content: counters(item, ".") ". "; + counter-increment: item; +} + +main#content img { + max-width: 100%; + margin: 0 auto; +} + +main#content figure { + margin: 16px 0; +} + +main#content figure img { + display: block; + max-width: 100%; + margin: 0 auto; +} + +main#content figure figcaption { + font-size: 0.92em; + font-style: italic; + line-height: 22px; + text-align: center; + margin-top: 6px; + padding: 0 10px; +} + +main#content figure figcaption h4 { + font-style: normal; + display: inline; + margin: 0; +} + +main#content figure figcaption p { + display: inline; + margin: 0; + padding-left: 8px; +} + +main#content code, +main#content pre { + font-family: monospace; +} + +main#content code { + font-size: 0.96em; + padding: 0 5px; +} + +main#content pre { + display: block; + overflow-x: auto; + font-size: 14px; + font-size: 1.4rem; + white-space: pre; + margin: 20px 0; + padding: 1.5rem 1.5rem; + line-height: 1.4; +} + +main#content pre code { + padding: 0; +} + +main#content section.footnotes { + font-size: 0.9em; +} + +footer#footer { + font-size: 14px; + font-size: 1.4rem; + color: #949494; + margin: 40px 0; +} diff --git a/themes/etch-custom/assets/css/min770px.css b/themes/etch-custom/assets/css/min770px.css new file mode 100644 index 0000000..eed524f --- /dev/null +++ b/themes/etch-custom/assets/css/min770px.css @@ -0,0 +1,52 @@ +@media (min-width: 770px) { +body { + width: 600px; + line-height: 1.5; +} + +main#content hr { + width: 108%; + margin-left: -3.8%; +} + +/* index.html styles */ +header#banner h2 { + font-size: 25px; + font-size: 2.5rem; +} + +main#content h3 { + font-size: 20px; + font-size: 2rem; +} + +main#content ul#posts { + font-size: 18px; + font-size: 1.8rem; +} + +/* single.html styles */ +main#content header#post-header h1 { + font-size: 26px; + font-size: 2.6rem; +} + +main#content img { + max-width: 108%; + margin-left: -3.8%; +} + +main#content figure { + margin-left: -3.8%; +} + +main#content figure img { + max-width: 108%; +} + +main#content pre { + width: 108%; + margin-left: -3.8%; + padding: 1.5rem 2.2rem; +} +} diff --git a/themes/etch-custom/assets/css/syntax.css b/themes/etch-custom/assets/css/syntax.css new file mode 100644 index 0000000..350286e --- /dev/null +++ b/themes/etch-custom/assets/css/syntax.css @@ -0,0 +1,59 @@ +/* Background */ .chroma { color: #f8f8f2; background-color: #272822 } +/* Error */ .chroma .err { color: #960050; background-color: #1e0010 } +/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } +/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; } +/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc } +/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } +/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } +/* Keyword */ .chroma .k { color: #66d9ef } +/* KeywordConstant */ .chroma .kc { color: #66d9ef } +/* KeywordDeclaration */ .chroma .kd { color: #66d9ef } +/* KeywordNamespace */ .chroma .kn { color: #f92672 } +/* KeywordPseudo */ .chroma .kp { color: #66d9ef } +/* KeywordReserved */ .chroma .kr { color: #66d9ef } +/* KeywordType */ .chroma .kt { color: #66d9ef } +/* NameAttribute */ .chroma .na { color: #a6e22e } +/* NameClass */ .chroma .nc { color: #a6e22e } +/* NameConstant */ .chroma .no { color: #66d9ef } +/* NameDecorator */ .chroma .nd { color: #a6e22e } +/* NameException */ .chroma .ne { color: #a6e22e } +/* NameFunction */ .chroma .nf { color: #a6e22e } +/* NameOther */ .chroma .nx { color: #a6e22e } +/* NameTag */ .chroma .nt { color: #f92672 } +/* Literal */ .chroma .l { color: #ae81ff } +/* LiteralDate */ .chroma .ld { color: #e6db74 } +/* LiteralString */ .chroma .s { color: #e6db74 } +/* LiteralStringAffix */ .chroma .sa { color: #e6db74 } +/* LiteralStringBacktick */ .chroma .sb { color: #e6db74 } +/* LiteralStringChar */ .chroma .sc { color: #e6db74 } +/* LiteralStringDelimiter */ .chroma .dl { color: #e6db74 } +/* LiteralStringDoc */ .chroma .sd { color: #e6db74 } +/* LiteralStringDouble */ .chroma .s2 { color: #e6db74 } +/* LiteralStringEscape */ .chroma .se { color: #ae81ff } +/* LiteralStringHeredoc */ .chroma .sh { color: #e6db74 } +/* LiteralStringInterpol */ .chroma .si { color: #e6db74 } +/* LiteralStringOther */ .chroma .sx { color: #e6db74 } +/* LiteralStringRegex */ .chroma .sr { color: #e6db74 } +/* LiteralStringSingle */ .chroma .s1 { color: #e6db74 } +/* LiteralStringSymbol */ .chroma .ss { color: #e6db74 } +/* LiteralNumber */ .chroma .m { color: #ae81ff } +/* LiteralNumberBin */ .chroma .mb { color: #ae81ff } +/* LiteralNumberFloat */ .chroma .mf { color: #ae81ff } +/* LiteralNumberHex */ .chroma .mh { color: #ae81ff } +/* LiteralNumberInteger */ .chroma .mi { color: #ae81ff } +/* LiteralNumberIntegerLong */ .chroma .il { color: #ae81ff } +/* LiteralNumberOct */ .chroma .mo { color: #ae81ff } +/* Operator */ .chroma .o { color: #f92672 } +/* OperatorWord */ .chroma .ow { color: #f92672 } +/* Comment */ .chroma .c { color: #75715e } +/* CommentHashbang */ .chroma .ch { color: #75715e } +/* CommentMultiline */ .chroma .cm { color: #75715e } +/* CommentSingle */ .chroma .c1 { color: #75715e } +/* CommentSpecial */ .chroma .cs { color: #75715e } +/* CommentPreproc */ .chroma .cp { color: #75715e } +/* CommentPreprocFile */ .chroma .cpf { color: #75715e } +/* GenericDeleted */ .chroma .gd { color: #f92672 } +/* GenericEmph */ .chroma .ge { font-style: italic } +/* GenericInserted */ .chroma .gi { color: #a6e22e } +/* GenericStrong */ .chroma .gs { font-weight: bold } +/* GenericSubheading */ .chroma .gu { color: #75715e } diff --git a/themes/etch-custom/layouts/404.html b/themes/etch-custom/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/etch-custom/layouts/_default/baseof.html b/themes/etch-custom/layouts/_default/baseof.html new file mode 100644 index 0000000..d663ad3 --- /dev/null +++ b/themes/etch-custom/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + + diff --git a/themes/etch-custom/layouts/_default/list.html b/themes/etch-custom/layouts/_default/list.html new file mode 100644 index 0000000..97af0e3 --- /dev/null +++ b/themes/etch-custom/layouts/_default/list.html @@ -0,0 +1,3 @@ +{{ define "main" }} +{{- partial "posts.html" . -}} +{{ end }} diff --git a/themes/etch-custom/layouts/_default/rss.xml b/themes/etch-custom/layouts/_default/rss.xml new file mode 100644 index 0000000..fc37e65 --- /dev/null +++ b/themes/etch-custom/layouts/_default/rss.xml @@ -0,0 +1,41 @@ +{{- $pctx := . -}} +{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} +{{- $pages := slice -}} +{{- if or $.IsHome $.IsSection -}} +{{- $pages = $pctx.RegularPages -}} +{{- else -}} +{{- $pages = $pctx.Pages -}} +{{- end -}} +{{- $limit := .Site.Config.Services.RSS.Limit -}} +{{- if ge $limit 1 -}} +{{- $pages = $pages | first $limit -}} +{{- end -}} +{{- printf "" | safeHTML }} + + + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} + {{ .Permalink }} + Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} + Hugo -- gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{ with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{ end }} + {{ range where .Site.Pages "Kind" "page" }} + {{ if or (eq .Section "posts") (eq .Section "post") }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{ .Summary | html }} + + {{ end }} + {{ end }} + + diff --git a/themes/etch-custom/layouts/_default/single.html b/themes/etch-custom/layouts/_default/single.html new file mode 100644 index 0000000..7c78e66 --- /dev/null +++ b/themes/etch-custom/layouts/_default/single.html @@ -0,0 +1,11 @@ +{{ define "main" }} +
+
+

{{ .Title }}

+ {{- if isset .Params "date" -}} + + {{- end -}} +
+ {{- .Content -}} +
+{{ end }} diff --git a/themes/etch-custom/layouts/index.html b/themes/etch-custom/layouts/index.html new file mode 100644 index 0000000..859b9b8 --- /dev/null +++ b/themes/etch-custom/layouts/index.html @@ -0,0 +1,4 @@ +{{ define "main" }} +{{ .Content }} +{{- partial "posts.html" . -}} +{{ end }} diff --git a/themes/etch-custom/layouts/partials/footer.html b/themes/etch-custom/layouts/partials/footer.html new file mode 100644 index 0000000..7286179 --- /dev/null +++ b/themes/etch-custom/layouts/partials/footer.html @@ -0,0 +1,5 @@ + diff --git a/themes/etch-custom/layouts/partials/head.html b/themes/etch-custom/layouts/partials/head.html new file mode 100644 index 0000000..6db546c --- /dev/null +++ b/themes/etch-custom/layouts/partials/head.html @@ -0,0 +1,31 @@ + + + + {{ with .Site.Params.description -}} + + {{ end }} + {{ printf `` ("favicon.png" | absURL) | safeHTML }} + {{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} + + {{ $resources := slice -}} + + {{ $resources = $resources | append (resources.Get "css/main.css") -}} + + {{ $resources = $resources | append (resources.Get "css/min770px.css") -}} + + {{ $dark := .Site.Params.dark | default "auto" -}} + {{ if not (eq $dark "off") -}} + {{ $resources = $resources | append (resources.Get "css/dark.css" | resources.ExecuteAsTemplate "dark.css" .) -}} + {{ end -}} + + {{ if .Site.Params.highlight -}} + {{ $resources = $resources | append (resources.Get "css/syntax.css") -}} + {{ end -}} + + {{ $css := $resources | resources.Concat "css/style.css" | minify }} + {{ printf `` $css.RelPermalink | safeHTML }} + + {{ .Title }} + diff --git a/themes/etch-custom/layouts/partials/header.html b/themes/etch-custom/layouts/partials/header.html new file mode 100644 index 0000000..9a66449 --- /dev/null +++ b/themes/etch-custom/layouts/partials/header.html @@ -0,0 +1,12 @@ + diff --git a/themes/etch-custom/layouts/partials/posts.html b/themes/etch-custom/layouts/partials/posts.html new file mode 100644 index 0000000..51a4fdc --- /dev/null +++ b/themes/etch-custom/layouts/partials/posts.html @@ -0,0 +1,11 @@ +

Posts

+ diff --git a/themes/etch-custom/layouts/shortcodes/toc.html b/themes/etch-custom/layouts/shortcodes/toc.html new file mode 100644 index 0000000..22da6e7 --- /dev/null +++ b/themes/etch-custom/layouts/shortcodes/toc.html @@ -0,0 +1,4 @@ + diff --git a/themes/etch-custom/theme.toml b/themes/etch-custom/theme.toml new file mode 100644 index 0000000..6d6ec37 --- /dev/null +++ b/themes/etch-custom/theme.toml @@ -0,0 +1,12 @@ +name = "Etch" +license = "MIT" +licenselink = "https://github.com/LukasJoswiak/etch/blob/master/LICENSE" +description = "Lightweight Hugo theme with a focus on content" +homepage = "https://github.com/LukasJoswiak/etch" +tags = ["simple", "minimal", "clean", "fast", "blog", "responsive", "dark mode", "privacy"] +features = ["fast", "blog", "syntax highlighting", "dark mode"] +min_version = "0.41" + +[author] + name = "Lukas Joswiak" + homepage = "https://lukasjoswiak.com"