~misterio/misterio.me

15e78a400fe9c6de0fe4e7c1e7b191e630f6ff5f — Gabriel Fontes a month ago ba77298
improve gmi  note listing, hardcode lma
M Gemfile => Gemfile +0 -1
@@ 3,7 3,6 @@ source "https://rubygems.org"
gem "jekyll", "~>4.2"

group :jekyll_plugins do
  gem "jekyll-last-modified-at"
  gem "jekyll-relative-links", git: 'https://github.com/misterio77/jekyll-relative-links', branch: 'main'
  gem "jekyll-extlinks", git: 'https://github.com/misterio77/jekyll-extlinks'
end

M Gemfile.lock => Gemfile.lock +0 -5
@@ 45,9 45,6 @@ GEM
      rouge (~> 3.0)
      safe_yaml (~> 1.0)
      terminal-table (~> 2.0)
    jekyll-last-modified-at (1.3.0)
      jekyll (>= 3.7, < 5.0)
      posix-spawn (~> 0.3.9)
    jekyll-sass-converter (2.2.0)
      sassc (> 2.0.1, < 3.0)
    jekyll-watch (2.2.1)


@@ 67,7 64,6 @@ GEM
      racc (~> 1.4)
    pathutil (0.16.2)
      forwardable-extended (~> 2.6)
    posix-spawn (0.3.15)
    public_suffix (4.0.7)
    racc (1.6.0)
    rb-fsevent (0.11.1)


@@ 88,7 84,6 @@ PLATFORMS
DEPENDENCIES
  jekyll (~> 4.2)
  jekyll-extlinks!
  jekyll-last-modified-at
  jekyll-relative-links!

BUNDLED WITH

M _config.yml => _config.yml +0 -4
@@ 7,13 7,9 @@ default_themes:
  light: sakura

plugins:
  - jekyll-last-modified-at
  - jekyll-extlinks
  - jekyll-relative-links

last-modified-at:
  date-format: "%F %z" # ISO 8601

extlinks:
  attributes: {class: external}


M _main/_notes/c-nix-boilerplate.md => _main/_notes/c-nix-boilerplate.md +1 -0
@@ 1,6 1,7 @@
---
title: "C Nix boilerplate"
tags: nix
last_modified_at: 2022-06-17 03:23
---

Looking to start out a C (or C++) project and wanna some cool and nifty commands to manage it through both `make` and `nix`? As a plus, you'll also get nice out of tree builds.

M _main/_notes/gemini.md => _main/_notes/gemini.md +1 -0
@@ 1,2 1,3 @@
---
last_modified_at: 2022-06-17
---

M _main/_notes/jekyll.md => _main/_notes/jekyll.md +1 -0
@@ 1,2 1,3 @@
---
last_modified_at: 2022-06-17
---

M _main/_notes/nix.md => _main/_notes/nix.md +1 -0
@@ 1,2 1,3 @@
---
last_modified_at: 2022-06-17
---

M _main/_notes/sourcehut-nix.md => _main/_notes/sourcehut-nix.md +1 -0
@@ 1,6 1,7 @@
---
title: "Use builds.sr.ht with nix flakes"
tags: nix sourcehut
last_modified_at: 2022-06-18 10:54
---

I've recently started migrating from github to sourcehut, and i've been having a blast.

M _main/_notes/start-here.md => _main/_notes/start-here.md +1 -0
@@ 1,5 1,6 @@
---
tags: digital-garden
last_modified_at: 2022-06-18 06:33
---

Hey! Welcome to my website and personal wiki.

M _main/notes.gmi => _main/notes.gmi +14 -9
@@ 3,14 3,11 @@ title: Personal notes
description: Personal wiki and digital garden
permalink: /notes/index.gmi
---
{%- assign tags = site.notes | map: 'tags' | uniq -%}
{%- for tag in tags -%}
{%- if site.data.tags[tag] %}
## {{ site.data.tags[tag] }}
{%- else %}
## {{ tag }}
{%- endif -%}
{%- assign notes = site.notes | where: "gemini", true %}
{%- assign notes = site.notes | where: "gemini", true  | sort: "last_modified_at" | reverse -%}
## Tags
{% assign tags = site.notes | map: 'tags' | sort | uniq -%}
{% for tag in tags %}
### {{ tag }}
{% for note in notes -%}
{%- if note.tags contains tag %}
=> {{ note.url }} {{ note.title }} ({{ note.language }})


@@ 19,4 16,12 @@ permalink: /notes/index.gmi
{{ note.excerpt }}
{%- endif -%}
{% endfor %}
{% endfor -%}
{% endfor %}

## All notes

{% for note in notes -%}
=>  {{ note.url }} {{ note.title }} ({{ note.language }})
{{ note.last_modified_at | date: "%d/%m/%y" }}
{%- if note.tags.size > 0 %} | tags: {% for tag in note.tags %}{{ tag }} {% endfor %}{% endif %}
{% endfor %}

M _main/notes.html => _main/notes.html +7 -4
@@ 63,10 63,13 @@ has_gemini: true
  {% for note in notes %}
    <li>
      <p>
      {{ note.last_modified_at | date: "%d/%m/%y" }}
      -
      <a href="{{ note.url }}">{{ note.title }} ({{ note.language }})</a> <br />
      Tags: {% for tag in note.tags %}<a href="#{{ tag }}">{{ tag }}</a>; {% else %}<small>None yet!</small>{% endfor %}
        <a href="{{ note.url }}">{{ note.title }} ({{ note.language }})</a> <br />
        {{ note.last_modified_at | date: "%d/%m/%y" }}
        {% if note.tags.size > 0 %} |
          {% for tag in note.tags %}
            <a href="#{{ tag }}">{{ tag }}</a>;
          {% endfor %}
        {% endif %}
      </p>
    </li>
  {% endfor %}

M gemset.nix => gemset.nix +0 -21
@@ 116,17 116,6 @@
    };
    version = "0.0.5";
  };
  jekyll-last-modified-at = {
    dependencies = ["jekyll" "posix-spawn"];
    groups = ["jekyll_plugins"];
    platforms = [];
    source = {
      remotes = ["https://rubygems.org"];
      sha256 = "0wwz023k2z5w5hlphxdzyyy6k3xqrrr541fasvqic8m80zmivirr";
      type = "gem";
    };
    version = "1.3.0";
  };
  jekyll-relative-links = {
    dependencies = ["jekyll"];
    groups = ["jekyll_plugins"];


@@ 247,16 236,6 @@
    };
    version = "0.16.2";
  };
  posix-spawn = {
    groups = ["default" "jekyll_plugins"];
    platforms = [];
    source = {
      remotes = ["https://rubygems.org"];
      sha256 = "0cmb0svalqcxfzlzc5fvrci12b79x7bakasr8gkl3q5rz6di1q52";
      type = "gem";
    };
    version = "0.3.15";
  };
  public_suffix = {
    groups = ["default" "jekyll_plugins"];
    platforms = [];