Compare commits
No commits in common. "17d7b71448a4a3c52accc96e742671fb0914ad74" and "1d02540fa4f422fa5e24683209f057fc3a2dbc7d" have entirely different histories.
17d7b71448
...
1d02540fa4
4
Makefile
4
Makefile
@ -37,9 +37,11 @@ temp/openring.html: temp templates/openring.html scripts/openring/openring
|
||||
scripts/openring/openring -l 256\
|
||||
-s http://jakob.space/feed.xml \
|
||||
-s https://drewdevault.com/feed.xml \
|
||||
-s https://alwayslivid.com/feed/blog.xml\
|
||||
-s http://mjsstuf.x10host.com/wp49/feed/ \
|
||||
-s https://cadence.moe/blog/rss.xml?limit=4 \
|
||||
-s https://blag.nicolor.tech/feed/feed.xml \
|
||||
-s https://cricket.piapiac.org/blog/atom.xml \
|
||||
-s https://jazz.cro.wtf/rss.xml \
|
||||
< templates/openring.html \
|
||||
> temp/openring.html
|
||||
|
||||
|
@ -1,11 +1,4 @@
|
||||
[
|
||||
{
|
||||
"id": "scrap_13",
|
||||
"name": "Scrap #13",
|
||||
"description": "I don't like this one",
|
||||
"group": "Scraps",
|
||||
"timestamp": 1636314430
|
||||
},
|
||||
{
|
||||
"id": "scrap_12",
|
||||
"name": "Scrap #12",
|
||||
|
@ -1,37 +0,0 @@
|
||||
template: post
|
||||
title: Diversity in git hosting
|
||||
author: flewkey
|
||||
timestamp: 1636061911
|
||||
license: CC-BY
|
||||
|
||||
I recently ran a quick & dirty[^1] scan of the packages on my laptop to figure
|
||||
out where their git repositories are hosted. The full log of it is
|
||||
[here](https://pastebin.com/qruXskVf), if anyone is interested.
|
||||
|
||||
[^1]: Because most packages don't seem to include an EGIT_REPO_URI, my script
|
||||
could only check 10% of them
|
||||
|
||||
Going into this, I expected GitHub to be host 80% of the packages, GitLab to
|
||||
host 10% of the packages, and other sites to host the remaining 10%.
|
||||
|
||||
I was correct about GitHub. However, I was pleasantly surprised to see that more
|
||||
packages lived on project-specific hosts than I'd thought. Conversely, GitLab
|
||||
turned out to be smaller than I'd thought.
|
||||
|
||||
I might try to get more accurate results in the future by including more
|
||||
packages.
|
||||
|
||||
### Top 10 git hosts
|
||||
|
||||
```
|
||||
github.com: 1769 (81.26%)
|
||||
gitlab.com: 76 (3.49%)
|
||||
anongit.gentoo.org: 36 (1.65%)
|
||||
gitlab.freedesktop.org: 31 (1.42%)
|
||||
git.code.sf.net: 24 (1.10%)
|
||||
git.sr.ht: 20 (0.92%)
|
||||
git.kernel.org: 16 (0.73%)
|
||||
git.savannah.gnu.org: 15 (0.69%)
|
||||
anongit.freedesktop.org: 14 (0.64%)
|
||||
gitlab.gnome.org: 11 (0.51%)
|
||||
```
|
@ -1,28 +0,0 @@
|
||||
template: post
|
||||
title: Respect my damn color scheme preference
|
||||
author: flewkey
|
||||
timestamp: 1636400000
|
||||
license: CC-BY
|
||||
|
||||
I recently switched from light themes to dark themes. Dark themes seem to be
|
||||
supported enough that most applications seem to work with them. Many
|
||||
websites don’t, but it’s not the end of the world. Theming is hard and I do not
|
||||
expect developers to support it.
|
||||
|
||||
However, I find it inexcusable and frustrating when a website already has a dark
|
||||
theme, but ignores the user’s preferences. Especially if they have a stupid
|
||||
little theme selector that writes to a value in localStorage or something.
|
||||
|
||||
![That’s _not_ how you do that!]({root}images/theme-selector.png)
|
||||
|
||||
If you must use JavaScript to set your themes, consider taking your user’s color
|
||||
scheme preference into consideration when choosing which theme to default to. We
|
||||
will be grateful.
|
||||
|
||||
```
|
||||
if (window.matchMedia("(prefers-color-scheme: dark)").matches)
|
||||
/* Set theme */
|
||||
```
|
||||
|
||||
Even better, you can just use a media query like a normal person. If you need
|
||||
to override it with JavaScript later, you can do that.
|
@ -6,7 +6,7 @@ from template import template
|
||||
from pymdownx.superfences import SuperFencesCodeExtension
|
||||
|
||||
def main():
|
||||
md = markdown.Markdown(extensions = ["meta", "extra", "toc", "markdown_captions", SuperFencesCodeExtension(preserve_tabs=True)])
|
||||
md = markdown.Markdown(extensions = ["meta", "extra", "toc", SuperFencesCodeExtension(preserve_tabs=True)])
|
||||
with open(sys.argv[1], "r", encoding="utf-8") as file_in:
|
||||
html = md.convert(file_in.read())
|
||||
output = template(html, sys.argv[2], ".html", md.Meta) if "template" in md.Meta else html
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 3.5 KiB |
@ -38,11 +38,6 @@
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
:root {
|
||||
--color-fg-faded: #555;
|
||||
--color-bg-faded: #EEE;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Fira Sans', sans-serif;
|
||||
font-size: 18px;
|
||||
@ -216,13 +211,14 @@ div.block:first-of-type, div.block-small {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
pre, code {
|
||||
background-color: var(--color-bg-faded);
|
||||
code {
|
||||
background-color: #EEEEEE;
|
||||
}
|
||||
|
||||
pre {
|
||||
line-height: 1.5;
|
||||
font-size: 14px;
|
||||
background-color: #EEEEEE;
|
||||
padding: 6px;
|
||||
overflow: auto;
|
||||
}
|
||||
@ -276,15 +272,6 @@ p.openring {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
figure {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
figure figcaption {
|
||||
line-height: 1;
|
||||
color: var(--color-faded);
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 950px) {
|
||||
header {
|
||||
height: 172px;
|
||||
@ -436,10 +423,6 @@ figure figcaption {
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--color-fg-faded: #BBB;
|
||||
--color-bg-faded: #222;
|
||||
}
|
||||
body {
|
||||
background-color: #111111;
|
||||
color: #DDDDDD;
|
||||
@ -458,7 +441,7 @@ figure figcaption {
|
||||
border-left: solid 2px #444444;
|
||||
}
|
||||
|
||||
p.faded, span.faded, div.post-head span.subtext, div.article p.extra, p.openring {
|
||||
div.post-head span.subtext, div.article p.extra, p.openring {
|
||||
color: #BBBBBB;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user