add webring, cleanup css, add rss link

This commit is contained in:
Gabriel Fontes
2022-02-11 02:12:51 -03:00
parent 2125161ad0
commit 136bda3693
14 changed files with 122 additions and 123 deletions
-2
View File
@@ -1,6 +1,4 @@
image: nixos/unstable
packages:
- nixos.nixUnstable
environment:
NIX_CONFIG: "experimental-features = nix-command flakes"
site: misterio.me
+15
View File
@@ -0,0 +1,15 @@
- title: Drew DeVault's blog
link: https://drewdevault.com
feed: https://drewdevault.com/blog/index.xml
- title: myme.no tech blog
link: https://myme.no
feed: https://myme.no/feed.xml
- title: ~elis/blog
link: https://elis.nu
feed: https://elis.nu/blog/rss.xml
- title: Graham Christensen
link: https://grahamc.com
feed: https://grahamc.com/feed/
- title: Sumner Evans
link: https://sumnerevans.com
feed: https://sumnerevans.com/index.xml
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
openring -S <( yq -r '.[].feed' blogs.yml ) \
< webring-in.yml \
> webring.yml
+8
View File
@@ -0,0 +1,8 @@
{{range .Articles}}
- title: "{{.Title}}"
link: "{{.Link}}"
date: "{{.Date}}"
summary: "{{.Summary}}"
sourcelink: "{{.SourceLink}}"
sourcetitle: "{{.SourceTitle}}"
{{end}}
+38
View File
@@ -0,0 +1,38 @@
- title: "Free software licenses explained: MIT"
link: "https://drewdevault.com/2022/02/07/Free-software-licenses-MIT.html"
date: "2022-02-07 00:00:00 &#43;0000 &#43;0000"
summary: "This is the first in a series of posts I intend to write explaining how various
free and open source software licenses work, and what that means for you as a
user or developer of that software. Today well look at the MIT license, also
sometimes referred to …"
sourcelink: "https://drewdevault.com"
sourcetitle: "Drew DeVault&#39;s blog"
- title: "Advent of Code 2021"
link: "https://sumnerevans.com/posts/programming/2021-advent-of-code/"
date: "2021-12-01 09:00:00 -0600 -0600"
summary: "Every year since 2015, Eric Wastl creates a two-part programming problem for each of the 25 days of Advent. He publishes a new problem every day at adventofcode.com at exactly midnight EST which is 22:00 the day before for me in MST. Last year, I decided …"
sourcelink: "https://sumnerevans.com/"
sourcetitle: "Sumner Evans"
- title: "First impressions of Purism Librem 5"
link: "https://elis.nu/blog/2021/10/first-impressions-of-purism-librem-5/index.html"
date: "2021-10-15 00:00:00 &#43;0000 &#43;0000"
summary: "
Table of Contents
Delays and more delays
Delivery
First Impressions
Packaging
Wall plug &amp; USB-cable
The Librem 5 hardware
The PureOS phone software
Some photos of the device in use
Had some problem downloading updates in the GUI applic…"
sourcelink: "https://elis.nu/"
sourcetitle: "~elis/blog/"
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="{{- include.class -}}" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path d="M19.199 24C19.199 13.467 10.533 4.8 0 4.8V0c13.165 0 24 10.835 24 24h-4.801zM3.291 17.415c1.814 0 3.293 1.479 3.293 3.295 0 1.813-1.485 3.29-3.301 3.29C1.47 24 0 22.526 0 20.71s1.475-3.294 3.291-3.295zM15.909 24h-4.665c0-6.169-5.075-11.245-11.244-11.245V8.09c8.727 0 15.909 7.184 15.909 15.91z" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 556 B

+1 -3
View File
@@ -1,7 +1,5 @@
<nav>
<div class="row extremes">
<span class="title">{ <a href="/">Gabriel Fontes</a> }</span>
</div>
<div class="title">{ <a href="/">Gabriel Fontes</a> }</div>
<ul>
{% for item in site.data.navigation %}
<li>
+20
View File
@@ -0,0 +1,20 @@
<hr />
<h2>Articles from blogs I like :)</h2>
<ul>
{% for article in site.data.webring %}
<li>
<h3>
<a href="{{ article.link }}" target="_blank" rel="noopener">{{ article.title }}</a>
</h3>
<p><small>
{{ article.date | date: "%d/%m/%y" }}
via <a href="{{ article.sourcelink }}">{{ article.sourcetitle }}</a>
</small></p>
<p>{{ article.summary }}</p>
</li>
{% endfor %}
</ul>
<p class="attribution"><small>
Generated by <a href="https://git.sr.ht/~sircmpwn/openring">openring</a>
</small></p>
+2
View File
@@ -6,3 +6,5 @@ layout: default
<hr />
{{ content }}
{% include webring.html %}
-1
View File
@@ -8,7 +8,6 @@ permalink: /blog/index.gmi
{% for post in gmi_posts %}
=> {{ post.url }} {{ post.title }}
{{ post.date | date: "%d/%m/%y" }}
{% if post.category.size %}({{ post.category }}){% endif -%}
tags: {% for tag in post.tags %}{{ tag }} {% endfor %}
{{ post.excerpt }}
{% endfor %}
+8 -6
View File
@@ -4,19 +4,21 @@ description: My personal thoughts, rants, and occasional guide
permalink: /blog/
---
{% assign html_posts = site.posts | where: "gemini", false %}
<ul class="posts">
<ul>
<a href="/feed.xml">Feed <small>{% include icons/simple-icons/rss.svg %}</small></a>
{% for post in html_posts %}
<li>
<h2 class="item-title">
<h2>
<small>{% include icons/languages/{{ post.language }}.svg %}</small>
<a href="{{ post.url }}">
{{ post.title }}
</a>
</h2>
<small>{{ post.date | date: "%d/%m/%y" }} {% if post.category.size %}({{ post.category }}){% endif %}</small>
<br />
<small>{% for tag in post.tags %}#{{ tag }} {% endfor %}</small>
{{ post.excerpt }}
<p><small>
{{ post.date | date: "%d/%m/%y" }} |
{% for tag in post.tags %}#{{ tag }} {% endfor %}
</small></p>
<p>{{ post.excerpt }}</p>
</li>
{% endfor %}
</ul>
+17 -105
View File
@@ -121,17 +121,6 @@ code {
font-size: .95em;
}
// Flex ro
.row {
align-items: center;
display: flex;
flex-wrap: wrap;
&.extremes {
justify-content: space-between;
}
}
// Dialog styling
dialog {
background-color: var(--background-body);
@@ -161,25 +150,6 @@ dialog {
}
}
// Top right close butto
.close-button {
background-color: inherit;
border: 0;
color: inherit;
cursor: pointer;
display: inline-block;
margin-right: 0;
overflow: hidden;
padding: 8px 16px;
position: absolute;
right: 0;
text-align: center;
text-decoration: none;
top: 0;
vertical-align: middle;
white-space: nowrap;
}
// Nav bar
nav ul {
list-style: none;
@@ -199,8 +169,8 @@ nav ul {
color: var(--text-muted);
font-size: 2.2em;
font-weight: 600;
margin-bottom: 12px;
margin-top: 8px;
margin-bottom: 0.8em;
margin-top: 1em;
a {
color: var(--variable);
@@ -232,20 +202,6 @@ nav ul {
// scss-lint:disable ImportantRule
content: '' !important;
}
// Smaller buttons
.small-button {
&[type="button"],
&[type="submit"] {
padding-left: 12px;
padding-right: 12px;
}
}
// Hide button without jumping around
.hidden {
visibility: hidden;
}
// Expanding PGP
.pgp {
vertical-align: bottom;
@@ -258,12 +214,12 @@ nav ul {
vertical-align: bottom;
white-space: nowrap;
}
&:hover span {
max-width: 200px;
text-decoration: underline;
}
}
.pgp:hover span {
max-width: 200px;
text-decoration: underline;
}
// Current item in navigation
[aria-current="page"] {
color: var(--text-main);
@@ -280,61 +236,17 @@ nav ul {
}
}
// Increase bottom margin label
input,
select {
margin: .8em;
}
// Increase icon size
.icon.medium {
font-size: 1.4em;
}
// Remove bullets from post list
.posts,
.notes {
list-style: none;
.item-title {
margin-bottom: 0;
}
.tags {
margin-top: 0;
}
}
// Flex fieldset
fieldset {
display: flex;
flex-flow: wrap;
div {
display: block;
&.total {
align-self: center;
margin-bottom: 3%;
margin-left: 5%;
margin-right: 5%;
margin-top: 3%;
// Posts listing
h1 + ul,
h2 + ul {
li {
list-style: none;
h2,
h3 {
margin-bottom: 0;
& + p {
margin-top: 0;
}
}
}
}
.failed {
color: var(--error);
}
.succeeded {
color: var(--variable);
}
input:invalid {
box-shadow: 0 0 0 2px var(--error);
}
form {
padding: 15px;
}
+6 -6
View File
@@ -2,11 +2,11 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1643169865,
"narHash": "sha256-+KIpNRazbc8Gac9jdWCKQkFv9bjceaLaLhlwqUEYu8c=",
"lastModified": 1644420267,
"narHash": "sha256-rFJuctggkjM412OC6OGPdXogFp7czGDW05ueWqpJbj8=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "945ec499041db73043f745fad3b2a3a01e826081",
"rev": "98bb5b77c8c6666824a4c13d23befa1e07210ef1",
"type": "github"
},
"original": {
@@ -24,11 +24,11 @@
},
"utils": {
"locked": {
"lastModified": 1642700792,
"narHash": "sha256-XqHrk7hFb+zBvRg6Ghl+AZDq03ov6OshJLiSWOoX5es=",
"lastModified": 1644229661,
"narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "846b2ae0fc4cc943637d3d1def4454213e203cba",
"rev": "3cecb5b042f7f209c56ffd8371b2711a290ec797",
"type": "github"
},
"original": {
+1
View File
@@ -37,6 +37,7 @@
devShell = pkgs.mkShell {
inputsFrom = [ defaultPackage ];
buildInputs = with pkgs; [ yq openring ];
};
}
);