From 8ed1790cd2d7d2dce5df1d3da91327d8703b7140 Mon Sep 17 00:00:00 2001 From: Leonora Tindall Date: Wed, 2 Nov 2022 14:35:11 -0500 Subject: [PATCH] Nicer homepage theme --- README.md | 1 + static/index.html | 42 ++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6f7844a..7e1b8a8 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ ports to use for development and deployment. - [x] Disable pagination - [x] HTTP Cacheing - [x] Data cacheing +- [x] Nicer theme - [ ] Read More support - [ ] Dublin Core support - [ ] Media Envelope support diff --git a/static/index.html b/static/index.html index 8a4e6b4..c7c887c 100644 --- a/static/index.html +++ b/static/index.html @@ -20,28 +20,66 @@ line-height: 1.75; font-size: 1.25em; } + h1,h2,h3,h4,h5,h6 { + font-family: sans-serif; + } + h1 { + text-align: center; + } + + code { + font-family: monospace; + background-color: black; + color: white; + display: inline-block; + padding: 0px 4px; + border-radius: 4px; + } + a code { + color: white; + background-color: darkblue; + } + a:hover code { + color: darkblue; + background-color: white; + } +

corobel

-

RSS feeds from Cohost pages

+

Standard Data from Cohost Posts and Projects

+

Project RSS Feeds

Go to /project_name/feed.rss to get a feed for a project. For example, /noracodes/feed.rss will give you the feed for my page.

+

Markdown Extraction

You can also get a particular post's original plain-text body at /project_name/post_id/, such as /noracodes/169186/. (In a Cohost post URL, the ID is the numerical part after /post/. For instance, in https://cohost.org/noracodes/post/169186-october-update, the ID is "169186".) - Or, drag this bookmarklet: + Or, drag this bookmarklet: Cohost: Extract Source to your bookmarks bar and then click on it when you're on a Cohost individual post page to download that post's source.

+

Webfinger Resources

Webfinger resources for accounts are provided at the Webfinger well-known URL /.well-known/webfinger?project_name.

+

+

Technical Details

+ Since 0.5.0, Corobel caches various responses to provide better service. + + This means that if you update a post and then immediately request its source, you might get the old source. Just wait a few seconds. +

Brought to you by Leonora Tindall, written in Rust with Rocket. Code is online, bug reports should go to my email nora@nora.codes.