The bmannconsulting.com website

journal design

+2
Gemfile
··· 8 gem "jekyll", "~> 4.1" 9 gem "jekyll-last-modified-at" 10 11 gem "nokogiri" 12 # gem "jekyll-commonmark-ghpages"
··· 8 gem "jekyll", "~> 4.1" 9 gem "jekyll-last-modified-at" 10 11 + gem "jekyll-paginate-v2" 12 + 13 gem "nokogiri" 14 # gem "jekyll-commonmark-ghpages"
+3
Gemfile.lock
··· 34 jekyll-last-modified-at (1.3.0) 35 jekyll (>= 3.7, < 5.0) 36 posix-spawn (~> 0.3.9) 37 jekyll-sass-converter (3.0.0) 38 sass-embedded (~> 1.54) 39 jekyll-watch (2.2.1) ··· 77 DEPENDENCIES 78 jekyll (~> 4.1) 79 jekyll-last-modified-at 80 nokogiri 81 82 RUBY VERSION
··· 34 jekyll-last-modified-at (1.3.0) 35 jekyll (>= 3.7, < 5.0) 36 posix-spawn (~> 0.3.9) 37 + jekyll-paginate-v2 (3.0.0) 38 + jekyll (>= 3.0, < 5.0) 39 jekyll-sass-converter (3.0.0) 40 sass-embedded (~> 1.54) 41 jekyll-watch (2.2.1) ··· 79 DEPENDENCIES 80 jekyll (~> 4.1) 81 jekyll-last-modified-at 82 + jekyll-paginate-v2 83 nokogiri 84 85 RUBY VERSION
+59
_config.yml
··· 87 layout: "journal" 88 section: journal 89
··· 87 layout: "journal" 88 section: journal 89 90 + ############################################################ 91 + # Site configuration for the Jekyll 3 Pagination Gem 92 + # The values here represent the defaults if nothing is set 93 + pagination: 94 + 95 + # Site-wide kill switch, disabled here it doesn't run at all 96 + enabled: true 97 + 98 + # Set to 'true' to enable pagination debugging. This can be enabled in the site config or only for individual pagination pages 99 + debug: true 100 + 101 + # The default document collection to paginate if nothing is specified ('posts' is default) 102 + collection: 'journals' 103 + 104 + # How many objects per paginated page, used to be `paginate` (default: 0, means all) 105 + per_page: 20 106 + 107 + # The permalink structure for the paginated pages (this can be any level deep) 108 + permalink: '/journal/:num/' # Pages are index.html inside this folder (default) 109 + #permalink: '/page/:num.html' # Pages are simple html files 110 + #permalink: '/page/:num' # Pages are html files, linked jekyll extensionless permalink style. 111 + 112 + # Optional the title format for the paginated pages (supports :title for original page title, :num for pagination page number, :max for total number of pages) 113 + title: ':title - page :num' 114 + 115 + # Limit how many pagenated pages to create (default: 0, means all) 116 + limit: 0 117 + 118 + # Optional, defines the field that the posts should be sorted on (omit to default to 'date') 119 + sort_field: 'date' 120 + 121 + # Optional, sorts the posts in reverse order (omit to default decending or sort_reverse: true) 122 + sort_reverse: true 123 + 124 + # Optional, the default category to use, omit or just leave this as 'posts' to get a backwards-compatible behavior (all posts) 125 + # category: 'posts' 126 + 127 + # Optional, the default tag to use, omit to disable 128 + # tag: '' 129 + 130 + # Optional, the default locale to use, omit to disable (depends on a field 'locale' to be specified in the posts, 131 + # in reality this can be any value, suggested are the Microsoft locale-codes (e.g. en_US, en_GB) or simply the ISO-639 language code ) 132 + locale: '' 133 + 134 + # Optional,omit or set both before and after to zero to disable. 135 + # Controls how the pagination trail for the paginated pages look like. 136 + trail: 137 + before: 2 138 + after: 2 139 + 140 + # Optional, the default file extension for generated pages (e.g html, json, xml). 141 + # Internally this is set to html by default 142 + extension: html 143 + 144 + # Optional, the default name of the index file for generated pages (e.g. 'index.html') 145 + # Without file extension 146 + indexpage: 'index' 147 + 148 + ############################################################
+3
_notes/Threadstorm Builder.md
··· 1 I wrote up the design for this many years ago now, when I called it a [Tweetstorm Builder and Blog](https://talk.fission.codes/t/tweetstorm-builder-and-blog/433). I'm copying that write up here. 2 3 In our post Twitter era, both [[ActivityPub]] and [[ATProtocol]] would be good choices. [[Micropub]] really isn't widely used and I think tying it more social platforms makes more sense.
··· 1 + --- 2 + --- 3 + 4 I wrote up the design for this many years ago now, when I called it a [Tweetstorm Builder and Blog](https://talk.fission.codes/t/tweetstorm-builder-and-blog/433). I'm copying that write up here. 5 6 In our post Twitter era, both [[ActivityPub]] and [[ATProtocol]] would be good choices. [[Micropub]] really isn't widely used and I think tying it more social platforms makes more sense.
+13 -21
_pages/index.md
··· 13 a.journal-link { 14 all: unset; 15 cursor: pointer; 16 - text-decoration: underline; 17 - 18 } 19 a.journal-link::after { 20 all: unset; ··· 25 26 I'm interested in [[Open Source Licensing]], community, co-operative models. Pooling capital and collaboration. I'm the founder of [[Fission]]. In Canada I help run the [[CoSocial]] Community Co-op. In Vancouver, I'm one of the organizers of [[DWebYVR]]. I like to cook & eat and have a [[FoodWiki]]. 27 28 - ## Blog Posts 29 30 <ul> 31 {% for blog in site.posts limit:3 %} ··· 35 {% endfor %} 36 </ul> 37 38 - Choose <a href="/feeds/" class="internal-link">feeds to subscribe to »</a> 39 - 40 - ## Digital Garden 🌱 41 42 {% assign notehtml = '' %} 43 {% assign recentnotes = site.notes | sort: 'last_modified_at' | reverse %} ··· 54 {% endif %} 55 {% endfor %} 56 57 - Browse the local <a class="internal-link" href="../notes/">Notes graph</a>. These are the ten most recently modified local notes: {{ notehtml }}. 58 - 59 - ## Journal Entries 60 61 - The last five [Journal](/journal) entries: 62 - 63 - {% comment %}<!-- https://stackoverflow.com/questions/46672231/in-jekyll-how-to-show-posts-from-last-week -->{% endcomment %} 64 65 {% assign journalposts = site.journals | reverse %} 66 67 - <ul> 68 - {% for post in journalposts limit: 5 %} 69 - <li style="padding-bottom: 0.5em;"><a href="{{ post.url }}" class="journal-link"><time datetime="post.date | date_to_xmlschema">{{ post.date | date: '%A %l:%M%P' }}</time></a>&nbsp;{{ post.content | strip_html | truncate: 500 }}&nbsp;</li> 70 {% endfor %} 71 - </ul> 72 73 <hr /> 74 - 75 - <!-- 76 - <a href="https://cosocial.ca/@boris" rel="me">@boris@cosocial.ca</a> 77 - <a href="https://toolsforthought.social/@boris" rel="me">@boris@toolsforthought.social</a> 78 - -->
··· 13 a.journal-link { 14 all: unset; 15 cursor: pointer; 16 } 17 a.journal-link::after { 18 all: unset; ··· 23 24 I'm interested in [[Open Source Licensing]], community, co-operative models. Pooling capital and collaboration. I'm the founder of [[Fission]]. In Canada I help run the [[CoSocial]] Community Co-op. In Vancouver, I'm one of the organizers of [[DWebYVR]]. I like to cook & eat and have a [[FoodWiki]]. 25 26 + The [[Feeds]] page has ways to subscribe. My personal Mastodon account is <a href="https://cosocial.ca/@boris" rel="me">@boris@cosocial.ca</a>. Journal items are cross-posted to <a href="https://toolsforthought.social/@boris" rel="me">@boris@toolsforthought.social</a>. 27 + 28 + ## [Blog Posts 🖊](../blog/) 29 30 <ul> 31 {% for blog in site.posts limit:3 %} ··· 35 {% endfor %} 36 </ul> 37 38 + ## [Digital Garden 🌱](../notes/) 39 40 {% assign notehtml = '' %} 41 {% assign recentnotes = site.notes | sort: 'last_modified_at' | reverse %} ··· 52 {% endif %} 53 {% endfor %} 54 55 + These are the ten most recently modified local notes: {{ notehtml }}. 56 57 + ## [Journal Entries 📓](../journal/) 58 59 {% assign journalposts = site.journals | reverse %} 60 61 + {% assign linksposted = 0 %} 62 + {% for post in journalposts %} 63 + {% if post.link %} 64 + <p style="padding-bottom: 0.5em;">{{ post.content | strip_html | truncate: 100 }}&nbsp;<a href="{{ post.url }}" class="journal-link" style="font-size: x-small">#</a><br /><a href="{{ post.link }}">{{ post.link }}</a></p> 65 + {% assign linksposted = linksposted | plus: 1 %} 66 + {% endif %} 67 + {% if linksposted >= 5 %}{% break %}{% endif %} 68 {% endfor %} 69 70 <hr />
-33
_pages/journal.html
··· 1 - --- 2 - layout: page 3 - title: Daily Journal 4 - permalink: /journal/ 5 - --- 6 - <style> 7 - article p:last-of-type { 8 - display:inline; 9 - } 10 - a.permalink { 11 - all: unset; 12 - cursor: pointer; 13 - font-size: x-small; 14 - } 15 - a.permalink::after { 16 - all: unset; 17 - } 18 - 19 - .wrapper { 20 - max-width: 46em; 21 - } 22 - </style> 23 - {% assign postsByDay = 24 - site.journals | group_by_exp:"post", "post.date | date: '%B %e, %Y'" | reverse %} 25 - 26 - {% for day in postsByDay %} 27 - <h2 style="padding-bottom: 0.25em;">{{ day.name }}</h2> 28 - {% for post in day.items %} 29 - <article style="padding: 0 0 1em 0.5em"> 30 - {{ post.content }}&nbsp;<a class="permalink" href="{{ post.url }}">{{ post.date | date: '%l:%M%P' }}</a> 31 - </article> 32 - {% endfor %} 33 - {% endfor %}
···
-26
_pages/journal_archive.html
··· 1 - --- 2 - layout: page 3 - title: Daily Journal 4 - permalink: /journal/archive/ 5 - --- 6 - <style> 7 - a.permalink { 8 - all: unset; 9 - cursor: pointer; 10 - text-decoration: underline; 11 - } 12 - a.permalink::after { 13 - all: unset; 14 - } 15 - </style> 16 - {% assign postsByDay = 17 - site.journals | group_by_exp:"post", "post.date | date: '%B %Y'" | reverse %} 18 - 19 - {% for day in postsByDay %} 20 - <h1 style="padding-bottom: 0.25em;">{{ day.name }}</h1> 21 - <ul> 22 - {% for post in day.items %} 23 - <li><a class="permalink" href="{{ post.url }}">{{ post.date | date: '%A %e %l:%M%P' }}</a></li> 24 - {% endfor %} 25 - </ul> 26 - {% endfor %}
···
journal.json _drafts/journal.json
journal.links.json _drafts/journal.links.json
+71
journal/index.html
···
··· 1 + --- 2 + layout: page 3 + title: Daily Journal 📓 4 + pagination: 5 + enabled: true 6 + --- 7 + 8 + <style> 9 + a.permalink::after, a.u-url::after { 10 + all: unset; 11 + } 12 + 13 + .wrapper { 14 + max-width: 46em; 15 + 16 + } 17 + 18 + .post-header { 19 + display: flex; 20 + } 21 + .post-header .meta .date { 22 + margin-right: 30px; 23 + width: 64px; 24 + text-align: center; 25 + } 26 + .post-header .meta .date .day { 27 + font-family: "Playfair Display", serif; 28 + font-weight: 700; 29 + line-height: 0.45em; 30 + font-size: 3em; 31 + display: block; 32 + margin-bottom: 20px; 33 + color: black; 34 + } 35 + .post-header .meta .date .rest { 36 + display: block; 37 + font-size: 0.75em; 38 + } 39 + 40 + .post-header h1.title { 41 + margin: -10px 0 0 0; 42 + } 43 + </style> 44 + 45 + {% comment %}<!-- https://stackoverflow.com/questions/46672231/in-jekyll-how-to-show-posts-from-last-week -->{% endcomment %} 46 + 47 + {% assign sortedjournals = site.journals | reverse %} 48 + {% for post in sortedjournals %} 49 + 50 + <div class="post-header" style="padding-top: 1em;"> 51 + <div class="meta"> 52 + <div class="date"> 53 + <time datetime="{{ post.date | date_to_xmlschema }}" class="day dt-published">{{ post.date | date: "%d"}}</time> 54 + <span class="rest">{{ post.date | date: "%b %Y"}}</span> 55 + <span class="rest"><a href="{{ post.url }}" class="u-url">{{ post.date | date: "%l:%M%P"}}</a></span> 56 + 57 + </div> 58 + </div> 59 + <div class="matter"> 60 + 61 + <span class="description e-content"> 62 + 63 + {{ post.content }} 64 + 65 + </span> 66 + <hr /> 67 + </div> 68 + </div> 69 + 70 + {% endfor %} 71 +