Skip to content

Commit

Permalink
Seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
bmann committed Aug 2, 2023
1 parent b6e2cf8 commit d043306
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 18 deletions.
5 changes: 1 addition & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ source "https://rubygems.org"
# https://andycroll.com/ruby/read-ruby-version-in-your-gemfile/
ruby File.read(".ruby-version").strip

git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }

gem "jekyll", "~> 4.1"
gem "liquid-c"
gem "jekyll-last-modified-at", git: "https://github.com/maximevaillancourt/jekyll-last-modified-at", branch: "add-support-for-files-in-git-submodules"
gem "jekyll-last-modified-at"

gem "nokogiri"
# gem "jekyll-commonmark-ghpages"
17 changes: 4 additions & 13 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
GIT
remote: https://github.com/maximevaillancourt/jekyll-last-modified-at
revision: e0c918691db625401ef5850a030da59d0124d356
branch: add-support-for-files-in-git-submodules
specs:
jekyll-last-modified-at (1.3.0)
jekyll (>= 3.7, < 5.0)
posix-spawn (~> 0.3.9)

GEM
remote: https://rubygems.org/
specs:
Expand Down Expand Up @@ -40,6 +31,9 @@ GEM
safe_yaml (~> 1.0)
terminal-table (>= 1.8, < 4.0)
webrick (~> 1.7)
jekyll-last-modified-at (1.3.0)
jekyll (>= 3.7, < 5.0)
posix-spawn (~> 0.3.9)
jekyll-sass-converter (3.0.0)
sass-embedded (~> 1.54)
jekyll-watch (2.2.1)
Expand All @@ -49,8 +43,6 @@ GEM
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.4)
liquid-c (4.0.1)
liquid (>= 3.0.0)
listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
Expand Down Expand Up @@ -84,8 +76,7 @@ PLATFORMS

DEPENDENCIES
jekyll (~> 4.1)
jekyll-last-modified-at!
liquid-c
jekyll-last-modified-at
nokogiri

RUBY VERSION
Expand Down
5 changes: 5 additions & 0 deletions _layouts/note.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ <h3 style="margin-bottom: 1em">Notes mentioning this note</h3>
<div style="font-size: 0.9em">{{ backlink.excerpt | strip_html | truncatewords: 20 }}</div>
</div>
{% endfor %}
{% if page.seed %}
<div class="backlink-box" style="background-color: #fff;">
Original article <a href="{{ page.link }}">{{ page.title }}</a>, by {{ page.author }}. <a href="{{ page.noteslink }}" class="noteslink" target="_notes">{{ page.title }}</a>
</div>
{% endif %}
</div>
{% else %}

Expand Down
9 changes: 9 additions & 0 deletions _notes/Internet Transition.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: The Internet Transition
author: Robin Berjon
link: https://berjon.com/internet-transition/
noteslink: https://notes.bmannconsulting.com/#/page/The%20Internet%20Transition
seed: true;
---

> To sum things up, we’re trying to run a planetary society that needs to solarpunk the fuck out of itself in a hurry on the collective intelligence of an 18th century principality that’s heard of the Enlightenment from some guy at the pub.
19 changes: 18 additions & 1 deletion _pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,24 @@ permalink: /

<h2>Digital Garden</h2>

<p>As of July 2023, I moved my Digital Garden Notes to their own site. There's a <a class="internal-link" href="/notes/seeds/">Seeds page</a> with links into various themes and recommended articles, or you can browse the minimal <a class="internal-link" href="/notes/">Notes graph</a>.</p>
{% assign notehtml = '' %}
{% assign recentnotes = site.notes | sort: 'last_modified_at' | reverse %}
{% for note in recentnotes limit:3 %}
{% assign notehtml = notehtml | append: "<a class='internal-link' href='" | append: note.url | append: "'>" | append: note.title | append: "</a>" %}
{% unless forloop.last %}{% assign notehtml = notehtml | append: ", " %}{% endunless %}
{% endfor %}

<p>As of July 2023, I moved my Digital Garden Notes to their own site. There's a <a class="internal-link" href="/notes/seeds/">Seeds page</a> with links into various themes and recommended articles, or you can browse the minimal <a class="internal-link" href="/notes/">Notes graph</a>. These are the three most recently modified notes: {{ notehtml }}.</p>

<div style="margin-top: 0.5em">
{% assign seednotes = site.notes | where_exp: "note", "note.seed" %}
{% for seednote in seednotes %}
<div>
<div style="margin-bottom: 0.5em;">{{ seednote.content }}</div>
<cite><a href="{{ seednote.link }}">{{ seednote.title }} by {{ seednote.author }}</a></cite>
</div>
{% endfor %}
</div>

<h2>Personal microblog</h2>

Expand Down

0 comments on commit d043306

Please sign in to comment.