small fixes

This commit is contained in:
knit 2024-05-06 06:15:10 +02:00
parent ce14d5b637
commit 0bb8b901eb
16 changed files with 507 additions and 41 deletions

View File

@ -3,5 +3,7 @@
emacs --script "publish.el"
# just in case we shitposted a little
rsync -rv org/rss.xml html/rss.xml
rsync -rv css html/css
rsync -rv img html/img

View File

@ -6,6 +6,10 @@ this website is *downloadable*. each page has a minimal inline css, so all you n
this website is *printable*! i think. i hope? i made sure that the inline css was as black-on-white as possible, with no grey / black backgrounds or colorful text. I also strip the navbar / footer using a media query.
* getting this website:
:PROPERTIES:
:ID: 285d6c82-2a2f-4392-8ae8-43d2f14e77a6
:PUBDATE: 2024-05-05 Sun 19:46
:END:
- [[/knit.tar.gz][txt collection]] -- A curated collection of posts as plaintext. (todo)
- [[/knit.texi][knit.info]] -- Some pages in a texinfo file (todo)

29
org/curl-me.org~ Normal file
View File

@ -0,0 +1,29 @@
#+title: you wouldnt download a website
#+description: remember to archive content you enjoy :3
this website is *downloadable*. each page has a minimal inline css, so all you need is the html file itself. there is an external stylesheet too, for additional (but less important) rules.
this website is *printable*! i think. i hope? i made sure that the inline css was as black-on-white as possible, with no grey / black backgrounds or colorful text. I also strip the navbar / footer using a media query.
* getting this website:
:PROPERTIES:
:ID: 285d6c82-2a2f-4392-8ae8-43d2f14e77a6
:PUBDATE: 2024-05-05 Sun 19:46
:END:
- [[/knit.tar.gz][txt collection]] -- A curated collection of posts as plaintext. (todo)
- [[/knit.texi][knit.info]] -- Some pages in a texinfo file (todo)
- [[https://tildegit.org/knit/tilde-site][source code]] -- on tildegit
you can also get a single webpage with curl:
#+begin_src sh
curl https://tilde.green/curl-me.html
#+end_src
or the whole site with wget:
#+begin_src sh
wget -r -np -k https://tilde.green/~knit/
#+end_src

View File

@ -3,7 +3,6 @@
hi :3
uh nothing to say rly. this site is designed to be [[./curl-me.org][downloadable]] and [[./style.org][printable]].
uh nothing to say rly. this site is designed to be [[./curl-me.org][downloadable]] and [[./style.org][printable]]. [[./map.org][see all pages]].
see my web bookmarks in the [[./links.org][links]] section. uwu!

9
org/index.org~ Normal file
View File

@ -0,0 +1,9 @@
#+TITLE: knit 🌌
#+description: professional hot chocolate enjoyer
hi :3
uh nothing to say rly. this site is designed to be [[./curl-me.org][downloadable]] and [[./style.org][printable]].
see my web bookmarks in the [[./links.org][links]] section. uwu!

47
org/knit.org~ Normal file
View File

@ -0,0 +1,47 @@
#+TITLE: about knit
#+description: all about me, uwu
/scheme, poetry, tears, and stars/
#+begin_export html
<!--------------------------------------
a language i cant speak
its written in trees
into sand along the street
& weary, silent words
----------------------------------------
a dogboy and his dogboy
together, out at night
a can of paint, an acid tab
the moon, intoxicating
2024-4-20
---------------------------------------->
#+end_export
hi, im knit! professionally i mostly clean hotel rooms. i used to
clean houses too, but in my spare time i like to use computers :3
i write in scheme and i use emacs. i read a lot of books and i like
oatmeal and hot chocolate. im slow and im conventionally stupid and i
dont know basic math! im also really tall (but i've been told i have small vibes).
lastly, im weird about age and i probably wont write it down, but
ill at least assure you im ancient enough to buy alcohol in any
country.
#+begin_dim
psst: also check out the source code for this web page
#+end_dim
#+begin_export html
<!------------------------------------------
take my hand,
and drink my eyes,
into the night
into the sky
gemini://tilde.green/~knit
--------------------------------------------->
#+end_export

View File

@ -10,13 +10,16 @@ is this an ok format for links like this? maybe i should link to rss rather than
-----
* people
** [[http://philip.greenspun.com/][Phillip Greenspun]]
You know, that guy. The guy who wrote "Any sufficiently large C program contains a buggy implementation of half of commonlisp"
** [[https://mdhughes.tech/scheme/][Mark hughes]]
a lot of scheme stuff and a cute website.
** [[https://gaiwan.org/][noa]]
an old friend im always too shy to reach out to. lots of philosophy, always changes their domain.
-----
@ -32,11 +35,9 @@ about the fall away from "homepages" and the rise of "blogging", and the ease an
A cute website detailing an implementation of haskellian monads in guile, using goops :3
** [[https://bzg.fr/en/blogging-from-emacs/][blogging from emacs]]
by bastien guerry, an article about blogging with vanilla org mode & emacs.
-----
by bastien guerry, an article about blogging with vanilla org mode & emacs.
* findings
** [[https://tildeverse.org/][tildeverse]]

97
org/links.org~ Normal file
View File

@ -0,0 +1,97 @@
#+description: my public list of bookmarks on the web :D
#+title: cool links, bro!!
heres a collection of bookmarks that i really like <3
is this an ok format for links like this? maybe i should link to rss rather than website homes.
#+TOC: headlines 2
-----
* people
:PROPERTIES:
:ID: ed475b36-2532-472b-beec-7a1590bd6568
:PUBDATE: 2024-05-05 Sun 19:48
:END:
** [[http://philip.greenspun.com/][Phillip Greenspun]]
:PROPERTIES:
:ID: 336b4b7c-7d48-41d0-9bf4-cfca0f4072f3
:END:
You know, that guy. The guy who wrote "Any sufficiently large C program contains a buggy implementation of half of commonlisp"
** [[https://mdhughes.tech/scheme/][Mark hughes]]
:PROPERTIES:
:ID: c4d0b68f-a9f4-4508-b374-de32d8b3dc32
:END:
a lot of scheme stuff and a cute website.
** [[https://gaiwan.org/][noa]]
:PROPERTIES:
:ID: baaaf19e-c19b-4e7a-80a7-67d985d3ca43
:END:
an old friend im always too shy to reach out to. lots of philosophy, always changes their domain.
-----
* posts
:PROPERTIES:
:ID: 563e2f67-abfe-4644-8e2d-d08c14af881b
:PUBDATE: 2024-05-05 Sun 19:48
:END:
** [[https://joelhooks.com/digital-garden][my blog is a garden]]
:PROPERTIES:
:ID: d2df728e-0727-43cd-838c-ed21a6b1238f
:END:
joel hooks writes about how blogging should be more about creating good content rather than "timelining" it and pushing down older content in favour of newer content, disregarding quality and effort.
** [[https://stackingthebricks.com/how-blogs-broke-the-web/][how blogs broke the web]]
:PROPERTIES:
:ID: a38ed575-da86-457c-b7b6-cb0fa2becd3c
:END:
about the fall away from "homepages" and the rise of "blogging", and the ease and motivation of publishing more often, rather than better, content.
** [[https://blog.hornquist.se/hugo/?filename=20190410monad.md][Monads in scheme]]
:PROPERTIES:
:ID: cf64c2da-242e-4c48-abda-b7cd510d2dec
:END:
A cute website detailing an implementation of haskellian monads in guile, using goops :3
** [[https://bzg.fr/en/blogging-from-emacs/][blogging from emacs]]
:PROPERTIES:
:ID: 804ea877-8807-4c4e-880b-56504fcb46d9
:END:
by bastien guerry, an article about blogging with vanilla org mode & emacs.
-----
* findings
:PROPERTIES:
:ID: 11153a20-a9c9-40ae-94a9-17168fc68961
:PUBDATE: 2024-05-05 Sun 19:48
:END:
** [[https://tildeverse.org/][tildeverse]]
:PROPERTIES:
:ID: 3bdea448-aa9a-4f81-b84d-507ba51e87df
:END:
a collection of people hosting public access unix systems, where users can log into a system and access different services. my site is currently hosted on [[https://tilde.green/][tilde.green]].
** [[https://scsh.net/contrib/wiki/CodeSnippets.html][scsh code snippets]]
:PROPERTIES:
:ID: a618a43a-915a-4177-971a-2e77214dd990
:END:
just a collection of code to help write in scsh
** [[https://malleable.systems/][Malleable Systems]]
:PROPERTIES:
:ID: 697237ce-1850-46ab-bfc3-b82c656a52e5
:END:
#+begin_quote
This community catalogs and experiments with malleable software and systems that reset the balance of power via several essential principles:
#+end_quote
------

View File

@ -15,6 +15,6 @@
- [[file:style.org][making a good stylesheet]]
/Notes on actually making my website accessable (without sacrificing style)/
- [[file:curl-me.org][you wouldnt download a websit]]
- [[file:curl-me.org][you wouldnt download a website]]
/remember to archive content you enjoy :3/

20
org/map.org~ Normal file
View File

@ -0,0 +1,20 @@
#+TITLE: all pages :3
- [[file:knit.org][about knit]]
/all about me, uwu/
- [[file:links.org][cool links, bro!!]]
/my public list of bookmarks on the web :D/
- [[file:index.org][knit 🌌]]
/professional hot chocolate enjoyer/
- [[file:rss.org][knits knot's]]
/my rss feed!/
- [[file:style.org][making a good stylesheet]]
/Notes on actually making my website accessable (without sacrificing style)/
- [[file:curl-me.org][you wouldnt download a websit]]
/remember to archive content you enjoy :3/

View File

@ -1,16 +1,13 @@
#+TITLE: knits knot's
#+description: my rss feed!
#+blogurl: https://tilde.green/~knit
#+ifile: rss.org
#+publink: https://tilde.green/~knit/rss.xml
#+RSS_EXTENSION: xml
#+RSS_IMAGE_URL: https://tilde.green/~knit/knit.png
#+RSS_FEED_URL: https://tilde.green/~knit
#+RSS_FEED_URL: https://tilde.green/~knit
#+HTML_LINK_HOME: https://tilde.green/~knit
* hello!
:PROPERTIES:
:ID: e7d36e43-600a-477b-a150-40a73052e051
:PUBDATE: 2024-05-04 Sat 21:43
:ID: a23cf0c6-93b3-489d-a410-449a395af0d3
:PUBDATE: 2024-05-05 Sun 21:25
:END:
hi, i'm knit. this is my rss feed. it's not like conventional rss feeds (where you just get notified whenever i update an article). it's different :D
@ -31,15 +28,15 @@ this is a test that will be deleted. i will delete this post a hundred times if
* buffer buffer buffer
:PROPERTIES:
:ID: 060549b7-d8f1-4baa-8470-5c81eba9c001
:PUBDATE: 2024-05-04 Sat 21:43
:ID: 8a5e4b1a-70fd-420f-9646-3fa4fe54402d
:PUBDATE: 2024-05-05 Sun 21:25
:END:
[[help:buffer-base-buffer][buffer-buffer-buffer]] is just a cutely named function in emacs :3c
* live!
:PROPERTIES:
:ID: afa36541-80a0-4569-82e8-9daef1d82213
:PUBDATE: 2024-05-05 Sun 18:06
:ID: 5ef7572f-a3d1-4649-bae5-408c2bb21cdd
:PUBDATE: 2024-05-05 Sun 21:25
:END:
okayyyy! i got my stuff set up :3!
@ -47,3 +44,17 @@ okayyyy! i got my stuff set up :3!
it's a little hacky, but combined with org-agenda and org-capture, posting to the web has become very easy :O!
anyway yeah, yeah! uh mhm yeah ok yeah ok!
* kinda...
:PROPERTIES:
:ID: 5516e1d6-dfc8-40db-9e81-dd60537eab63
:PUBDATE: 2024-05-05 Sun 21:25
:END:
i have no idea how org publish works :D
* anddd nowww it should be all good
:PROPERTIES:
:ID: 5c0bfdea-efc9-4772-99fc-254f6bfe554e
:PUBDATE: 2024-05-05 Sun 21:38
:END:
yeah!

View File

@ -47,3 +47,10 @@ okayyyy! i got my stuff set up :3!
it's a little hacky, but combined with org-agenda and org-capture, posting to the web has become very easy :O!
anyway yeah, yeah! uh mhm yeah ok yeah ok!
* kinda...
:PROPERTIES:
:ID: 12640873-6ee1-4048-9421-bbbebc36d86d
:PUBDATE: 2024-05-05 Sun 18:42
:END:
i have no idea how org publish works :D

123
org/rss.xml Normal file
View File

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:georss="http://www.georss.org/georss"
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
xmlns:media="http://search.yahoo.com/mrss/"><channel>
<title>knits knot's</title>
<atom:link href="https://tilde.green/~knit" rel="self" type="application/rss+xml" />
<link>https://tilde.green/~knit</link>
<description><![CDATA[my rss feed!]]></description>
<language>en</language>
<pubDate>Sun, 05 May 2024 21:38:50 +0200</pubDate>
<lastBuildDate>Sun, 05 May 2024 21:38:50 +0200</lastBuildDate>
<generator>Emacs 29.3 Org-mode 9.6.15</generator>
<webMaster>knit@cock.li (Linen Knitter)</webMaster>
<image>
<url>https://tilde.green/~knit/knit.png</url>
<title>knits knot's</title>
<link>https://tilde.green/~knit</link>
</image>
<item>
<title>hello!</title>
<link>https://tilde.green/~knit/rss.html#org1e4d09f</link>
<author>knit@cock.li (Linen Knitter)</author>
<guid isPermaLink="false">https://tilde.green/~knit/rss.html#org1e4d09f</guid>
<pubDate>Sun, 05 May 2024 21:25:00 +0200</pubDate>
<description><![CDATA[<p>
hi, i'm knit. this is my rss feed. it's not like conventional rss feeds (where you just get notified whenever i update an article). it's different :D
</p>
<p>
i only make a post <b>here</b> when i have something to announce (like, well, a new article (but only one that's worth sharing).
</p>
<p>
because i believe things are always better when care is put into them. so take care.
</p>
<p>
~knit
</p>
]]></description>
</item>
<item>
<title>who goes there</title>
<link>https://tilde.green/~knit/rss.html#org1ff51f4</link>
<author>knit@cock.li (Linen Knitter)</author>
<guid isPermaLink="false">https://tilde.green/~knit/rss.html#org1ff51f4</guid>
<pubDate>Sat, 04 May 2024 21:43:00 +0200</pubDate>
<description><![CDATA[<p>
this is a test that will be deleted. i will delete this post a hundred times if i have to!!!!!
</p>
]]></description>
</item>
<item>
<title>buffer buffer buffer</title>
<link>https://tilde.green/~knit/rss.html#orgca789a1</link>
<author>knit@cock.li (Linen Knitter)</author>
<guid isPermaLink="false">https://tilde.green/~knit/rss.html#orgca789a1</guid>
<pubDate>Sun, 05 May 2024 21:25:00 +0200</pubDate>
<description><![CDATA[<p>
<a href="buffer-base-buffer">buffer-buffer-buffer</a> is just a cutely named function in emacs :3c
</p>
]]></description>
</item>
<item>
<title>live!</title>
<link>https://tilde.green/~knit/rss.html#org695bdde</link>
<author>knit@cock.li (Linen Knitter)</author>
<guid isPermaLink="false">https://tilde.green/~knit/rss.html#org695bdde</guid>
<pubDate>Sun, 05 May 2024 21:25:00 +0200</pubDate>
<description><![CDATA[<p>
okayyyy! i got my stuff set up :3!
</p>
<p>
it's a little hacky, but combined with org-agenda and org-capture, posting to the web has become very easy :O!
</p>
<p>
anyway yeah, yeah! uh mhm yeah ok yeah ok!
</p>
]]></description>
</item>
<item>
<title>kinda...</title>
<link>https://tilde.green/~knit/rss.html#org942dafe</link>
<author>knit@cock.li (Linen Knitter)</author>
<guid isPermaLink="false">https://tilde.green/~knit/rss.html#org942dafe</guid>
<pubDate>Sun, 05 May 2024 21:25:00 +0200</pubDate>
<description><![CDATA[<p>
i have no idea how org publish works :D
</p>
]]></description>
</item>
<item>
<title>anddd nowww it should be all good</title>
<link>https://tilde.green/~knit/rss.html#org8d38861</link>
<author>knit@cock.li (Linen Knitter)</author>
<guid isPermaLink="false">https://tilde.green/~knit/rss.html#org8d38861</guid>
<pubDate>Sun, 05 May 2024 21:38:00 +0200</pubDate>
<description><![CDATA[<p>
yeah!
</p>
]]></description>
</item>
</channel>
</rss>

129
org/style.org~ Normal file
View File

@ -0,0 +1,129 @@
#+title: making a good stylesheet
#+description: Notes on actually making my website accessable (without sacrificing style)
#+options: toc:nil
yeah, ive made a lot of bad websites. i mostly try to be as readable, elegant, and unintrusive to the reader as i can, rather than showing off. im trying to focus on
some requirements this time around:
#+TOC: headlines 1
-----
* it needs to be printable
:PROPERTIES:
:ID: bea4a279-f526-4251-b6aa-a340660dec7c
:PUBDATE: 2024-05-05 Sun 18:42
:END:
when the user wants to print this page to paper, i /strip the navigation and footer links/:
#+begin_src css
@media print {
nav, .status { display: none }
pre { overflow: visible; }
}
#+end_src
not much more needs to be done in this regard, since the site doesn't have a lot going on in the first place.
-----
* its meant to be downloaded
:PROPERTIES:
:ID: f972869b-a803-4d0d-92b0-a9a2332ad063
:PUBDATE: 2024-05-05 Sun 18:42
:END:
you can [[/curl-me.html][download]] any page on this site with a tool like [[https://www.gnu.org/software/wget/][wget]]. each page has a bit of inline css:
#+begin_src css
body,
.string,
.comment {font-family: "Iosevka"}
code, pre {font-family: "IBM Plex Mono"}
body { max-width: 50em; margin: auto; }
hr { border: 2px solid #EEEEEE; }
html { padding: 3%; }
pre { overflow: auto; }
a:hover { color: #338800; }
pre { border-left: 3px solid #000000;
padding-left: 20px; }
#+end_src
i try to keep this style small, so that it doesn't take up disk space. the whole site is also available in ~txt~ format ([[/knit.tar.gz][tarball]]).
-----
* tty friendly
:PROPERTIES:
:ID: 759e5703-a36c-4edb-b76e-d05febbae7ca
:PUBDATE: 2024-05-05 Sun 18:42
:END:
this website is very clean on less featureful clients like [[https://lynx.invisible-island.net/][lynx]] and [[https://www.emacswiki.org/emacs][eww]]. there's not much more to say about it :3
-----
* auto dark/light themes
:PROPERTIES:
:ID: c390cee5-9ece-469f-9fc0-98950b50c60d
:PUBDATE: 2024-05-05 Sun 18:42
:END:
in my ~style.css~ file, i link to ~dark.css~ if the user's machine has a light-mode preference:
#+begin_src css
/* load theme based on system preference */
@import url("/dark.css") (prefers-color-scheme: dark);
@import url("/light.css") (prefers-color-scheme: light);
#+end_src
i use *variables* to store color names, to make creating new color themes easy. for example, ~light.css~ looks like this:
#+begin_src css
/* light.css
,* dark.css looks just like this with
,* different colors. */
:root {
--bg: #FFFFFF;
--fg: #222222;
--bg-dim: #DDDDDD;
--fg-dim: #888888;
--bold: #000000;
--h1: #222222;
--link: #0000BB;
--link-hov: #448800;
}
#+end_src
if the user doesn't set a preference, the default inline stylesheet is cute enough :3!
-----
* color variables
:PROPERTIES:
:ID: 3579154c-1ed8-4fb1-adc0-5a2d0a9c80c7
:PUBDATE: 2024-05-05 Sun 18:42
:END:
the rest of ~style.css~ just uses these color variables and applies them throuought the site:
#+begin_src css
body {
background: var(--bg);
color: var(--text);
}
pre {
background: var(--bg);
color: var(--bold);
}
/* ... */
#+end_src
and so far, that's what i consider to be a good css stylesheet. i'll improve this article in the future, too <3

View File

@ -52,7 +52,7 @@ To be read by 'shr-dom-to-xml'"
;; TODO: i can't seem to properly separate 'green-base' and 'sitemap'
(setq org-publish-project-alist
(list
(list "green-base" ;; 'global inherited variables.
(list "green"
:base-directory input-dir
:publishing-directory output-dir
:html-link-home domain
@ -63,25 +63,12 @@ To be read by 'shr-dom-to-xml'"
:with-toc nil
:auto-sitemap t
:sitemap-filename "map.org"
;; :exclude "index.org\\|rss.org"
:sitemap-title "all pages :3"
:sitemap-format-entry 'my-sitemap
:sitemap-style 'list)
(list "rss"
:base-directory input-dir
:publishing-directory output-dir
:html-link-use-abs-url t
:publishing-function 'org-rss-publish-to-rss
:html-link-home domain
:input-file "rss.org"
:rss-image-url (concat domain "/knit.png")
:rss-feed-url (concat domain "/rss.xml")
:exclude ".*"
:include '("rss.org"))
(list "green"
:components '("rss" "green-base"))))
:sitemap-style 'list)))
(setq
org-export-with-timestamps nil
org-export-with-broken-links t
org-export-with-section-numbers nil
org-export-with-tasks 'done
@ -89,7 +76,9 @@ To be read by 'shr-dom-to-xml'"
org-html-htmlize-output-type 'css
org-html-htmlize-font-prefix ""
org-html-head-include-default-style nil
org-html-link-up domain)
org-html-link-up domain
org-html-link-home domain
org-rss-image-url (concat domain "/knit.png"))
;; Every page has inline CSS:
(setq org-html-head
@ -102,7 +91,7 @@ To be read by 'shr-dom-to-xml'"
(setq org-html-postamble
(shr-dom-to-xml
`(p nil "modified: %C //"
,(link "/curl-me.html" "curl me~"))))
,(link (concat domain "/curl-me.html") "curl me~"))))
;; An HTML link to the index.
(setq org-html-home/up-format
@ -110,7 +99,7 @@ To be read by 'shr-dom-to-xml'"
`(nav nil
(p nil
,(link domain my-name) " - "
,(link (concat domain "/links") "links") " - "
,(link (concat domain "/links.html") "links") " - "
,(link (concat domain "/rss.xml") "rss")))))
;; Linking to additional stylesheet.
@ -119,8 +108,5 @@ To be read by 'shr-dom-to-xml'"
"<link rel=\"stylesheet\" href=\"/css/style.css\" type=\"text/css\" />")
;; Finally, publish the website.
;;(org-publish "sitemap")
;;(org-publish "green-base")
(org-publish "green")
;;(org-publish "rss")

View File

@ -8,4 +8,6 @@ run ~./build.sh~ to run the emacs script, then the outputted files will in ~html
* notes
none yet :3
i generate ~rss.xml~ from ~rss.org~, which is just set to an org-capture shortcut when i want to say something.