Skip to content

Commit

Permalink
Mostly working
Browse files Browse the repository at this point in the history
  • Loading branch information
bmann committed Sep 28, 2020
1 parent aa12192 commit 7e7140c
Show file tree
Hide file tree
Showing 27 changed files with 163 additions and 301 deletions.
17 changes: 10 additions & 7 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: Digital Notes Garden
name: Boris Mann
user_description: "Open Source. Community. Decentralized Web. Building dev tools at Fission. Cooks & eats."
description: "Notes and long term archive for Boris Mann"
description: "Second Brain, Daily Notes, and long term archive of Boris Mann"
notes_url: "https://bmannconsulting.com"
notes_title: Notes, Articles, and Links
notes_tagline: Information gardening
Expand All @@ -12,7 +12,7 @@ baseurl: "/" # the subpath of your site, e.g. /blog
url: "https://bmannconsulting.com" # the base hostname & protocol for your site, e.g. http://example.com
encoding: utf-8

exclude: ['.env', 'fission.yaml', 'gemset.nix', 'pages']
exclude: ['.env', 'fission.yaml', 'gemset.nix', 'pages', 'fission.yaml', 'blog.code-workspace', 'netlify.toml', '_ignore']

markdown: CommonMarkGhPages
# markdown: kramdown
Expand Down Expand Up @@ -40,12 +40,12 @@ sass:
style: compressed

# Default permalink
permalink: /:path/:title
permalink: /:path/:title/

collections:
notes:
output: true
permalink: /:title
permalink: /:title/

disqus:
shortname: raghuveerdotnet
Expand All @@ -56,22 +56,25 @@ defaults:
type: posts
values:
layout: post
permalink: /blog/:year/:month/:day/:title
permalink: /blog/:year/:month/:day/:title/
content-type: post
section: blog
- scope:
path: "_posts/archive/*"
type: posts
values:
layout: post
permalink: /archive/:year/:month/:day/:title
permalink: /archive/:year/:month/:day/:title/
content-type: post
section: archive
- scope:
path: "_posts/journal/*"
type: posts
values:
layout: post
permalink: /journal/:year/:month/:day/:title
permalink: /journal/:year/:month/:day/
content-type: post
section: journal
- scope:
path: "_notes/*"
type: notes
Expand Down
4 changes: 3 additions & 1 deletion _includes/backlinks.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<!-- Add backlinks to the current page -->
{%- unless page.permalink == "/" -%}
{%- assign link_count = 0 -%}
{%- assign wiki_link_title = '[' | append: page.title | append: ']' -%}
{%- for note in site.notes -%}
Expand Down Expand Up @@ -60,4 +61,5 @@ <h4 class="medium-small">Linked References</h4>
</div>
<br/>
</div>
{%- endif -%}
{%- endif -%}
{%- endunless -%}
4 changes: 1 addition & 3 deletions _includes/contextmenu.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{%- if page.permalink == "/" or page.permalink == "/notes" -%}
<nav class="context-menu" id="context-menu">
<ul class="context-menu__items">
<li class="context-menu__item">
Expand All @@ -20,5 +19,4 @@
</nav>
<nav class="context-menu-res" id="context-menu-res">
</nav>
<script src="/assets/js/contextmenu.js"></script>
{%- endif -%}
<script src="/assets/js/contextmenu.js"></script>
33 changes: 33 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta charset="utf-8"/>
<meta content="{{ site.name}}'s {{ site.title }}" property="og:site_name"/>
<meta content="{{ site.description }}" property="og:description">
<meta content="{{ site.url }}/about/" property="article:author">

{%- if page.title -%}
<meta content="{{ page.title }}" property="og:title">
<meta content="article" property="og:type">
<meta content="{{ site.url }}{{ page.url }}" property="og:url">
<title>{{ page.title }} - {{site.title}}</title>
{%- else -%}
<meta content="website" property="og:type">
<meta content="{{ site.url }}{{ page.url }}" property="og:url">
<title>{{ site.name }}'s {{site.title}}</title>
{%- endif -%}

<link rel="canonical" href="{{site.url}}{{page.url}}"/>
<link rel="apple-touch-icon" href="{{site.profile_pic}}">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css"/>

<link rel="icon" href="{{site.favicon}}" type="image/png" sizes="16x16"/>
<link href="{% link assets/css/style.css %}" rel="stylesheet" media="all" class="default"/>

<!--[if IE]>
<link href="/assets/css/ie-target.css" rel="stylesheet" type="text/css"/>
<![endif]-->
<!--<link href="/assets/css/prism.css" rel="stylesheet" />-->
<link rel="alternate" type="application/rss+xml" href="{% link feeds/notes.xml %}">
</head>
17 changes: 14 additions & 3 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h4 class="medium"><a href="/">🌱 {{site.title}} 🌱</a></h4>
</div>
<div class="main-site-subheader menu disable-select">
<div class="home">
<a style="text-decoration: none;" href="/notes">
<a style="text-decoration: none;" href="/notes/">
<svg class="icon-home" width="18" height="19" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M20.9777 21.6138V19.6138C20.9777 18.553 20.5563 17.5356 19.8061 16.7854C19.056 16.0353 18.0386 15.6138 16.9777 15.6138H8.97768C7.91682 15.6138 6.8994 16.0353 6.14926 16.7854C5.39911 17.5356 4.97768 18.553 4.97768 19.6138V21.6138" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M12.9777 11.6138C15.1868 11.6138 16.9777 9.82298 16.9777 7.61385C16.9777 5.40471 15.1868 3.61385 12.9777 3.61385C10.7685 3.61385 8.97768 5.40471 8.97768 7.61385C8.97768 9.82298 10.7685 11.6138 12.9777 11.6138Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
Expand All @@ -28,7 +28,7 @@ <h4 class="medium"><a href="/">🌱 {{site.title}} 🌱</a></h4>
</a>
</div>
<div class="categories">
<a style="text-decoration: none;" href="/links">
<a style="text-decoration: none;" href="/links/">
<svg class="icon-category" width="18" height="19" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M4 9.5H20" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M4 15.5H20" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
Expand All @@ -39,7 +39,18 @@ <h4 class="medium"><a href="/">🌱 {{site.title}} 🌱</a></h4>
</a>
</div>
<div class="categories">
<a style="text-decoration: none;" href="/archive">
<a style="text-decoration: none;" href="/journal/">
<svg class="icon-category" width="18" height="19" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M4 9.5H20" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M4 15.5H20" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M10 3.5L8 21.5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M16 3.5L14 21.5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<p class="categories-p">Journal</p>
</a>
</div>
<div class="categories">
<a style="text-decoration: none;" href="/archive/">
<svg class="icon-category" width="18" height="19" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M4 9.5H20" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M4 15.5H20" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
Expand Down
33 changes: 1 addition & 32 deletions _layouts/feed.html
Original file line number Diff line number Diff line change
@@ -1,38 +1,7 @@
---
---

<!DOCTYPE html>
<html lang="en">
<head>
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta content="Knowledge Continuum" property="og:site_name"/>
<meta content="A non-linear thread of important ideas weaved together to explore and understand the fabric of knowledge." property="og:description">
<meta content="{{ site.url }}/notes/about/" property="article:author">

{%- if page.title -%}
<meta content="{{ page.title }}" property="og:title">
<meta content="article" property="og:type">
<meta content="{{ site.url }}{{ page.url }}" property="og:url">
{%- else -%}
<meta content="website" property="og:type">
<meta content="{{ site.url }}{{ page.url }}" property="og:url">
{%- endif -%}

<title>{{ page.title }} - {{site.title}}</title>

<link rel="canonical" href="{{site.url}}{{page.url}}"/>
<link rel="apple-touch-icon" href="{{site.profile_pic}}">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css"/>

<link rel="icon" href="{{site.favicon}}" type="image/png" sizes="16x16"/>
<link href="/assets/css/style.css" rel="stylesheet" media="all" class="default"/>

<!--[if IE]>
<link href="/assets/css/ie-target.css" rel="stylesheet" type="text/css"/>
<![endif]-->
<!--<link href="/assets/css/prism.css" rel="stylesheet" />-->
<link rel="alternate" type="application/rss+xml" href="{{ site.url }}/feed.xml">
</head>
{%- include head.html -%}

<body>
<div class="container">
Expand Down
42 changes: 7 additions & 35 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,7 @@
---
---

<!DOCTYPE html>
<html lang="en">
<head>
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta content="{{ site.name }}'s {{ site.title }}" property="og:site_name"/>
<meta content="{{ site.description }}" property="og:description">
<meta content="{{ site.url }}/notes/about/" property="article:author">

{%- if page.title -%}
<meta content="{{ page.title }}" property="og:title">
<meta content="article" property="og:type">
<meta content="{{ site.url }}{{ page.url }}" property="og:url">
{%- else -%}
<meta content="website" property="og:type">
<meta content="{{ site.url }}{{ page.url }}" property="og:url">
{%- endif -%}

<title>{{site.title}}</title>

<link rel="canonical" href="{{site.url}}{{page.url}}"/>
<link rel="apple-touch-icon" href="{{site.profile_pic}}">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css"/>

<link rel="icon" href="{{site.favicon}}" type="image/png" sizes="16x16"/>
<link href="/assets/css/style.css" rel="stylesheet" media="all" class="default"/>

<!--[if IE]>
<link href="/assets/css/ie-target.css" rel="stylesheet" type="text/css"/>
<![endif]-->
<!--<link href="/assets/css/prism.css" rel="stylesheet" />-->
<link rel="alternate" type="application/rss+xml" href="{{ site.url }}/feed.xml">
</head>

{%- include head.html -%}
<!-- /head -->
<body>
<div class="container">
<div class = "box">
Expand All @@ -45,12 +13,17 @@
<main>
<h1>{{page.title}}</h1>
{%- include content.html -%}
<!-- /content -->
{%- include backlinks.html -%}
<!-- /backlinks -->
{%- include related.html -%}
<!-- /related -->
</main>
{%- endif -%}
{%- include comments.html -%}
<!-- /comments -->
{%- include footer.html -%}
<!-- /footer -->
</div>
<button class="scroll-to-top" id="scroll-to-top"><i class="fa fa-chevron-up"></i></button>
</div>
Expand All @@ -59,6 +32,5 @@ <h1>{{page.title}}</h1>
window.scrollTo({top: 0, left: 0, behavior: 'smooth'});
});
</script>
{%- include contextmenu.html -%}
</body>
</html>
19 changes: 19 additions & 0 deletions _notes/drupal-decentralized-web-drupalcon.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: Drupal and the Decentralized Web
status: processing
tags:
- presentation
- video
- Drupal
- DrupalCon
---

My [[DrupalCon]] video is up https://www.youtube.com/watch?v=vqrc3XH2Vdc

## Slides

<p data-notist="bmann/3UmZKZ">View <a href="https://noti.st/bmann/3UmZKZ">Drupal and the Decentralized Web</a> on Notist.</p><script async src="https://on.notist.cloud/embed/002.js"></script>

Slides on Notist https://noti.st/bmann/3UmZKZ/drupal-and-the-decentralized-web

Fission Talk Forum post https://talk.fission.codes/t/drupal-and-the-decentralized-web-boris-mann-drupalcon-global-july-14th/729
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
title: Exploring the features of Simply Jekyll
tags: simplyjekyll
status: ongoing
---

Essentiality is the heart of any good software, and this theme is designed to ensure that I don't add things that I won't use on a daily basis or not have things that would be important for my personal usecase. It has been designed carefully to get rid of all the feature creeps, bloatwares, etc. i.e., no bootstrap, no semantic, no jquery, no nothing...
Expand Down

This file was deleted.

7 changes: 7 additions & 0 deletions _notes/how-to-setup-simply-jekyll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: How to setup Simply Jekyll
link: https://simply-jekyll.netlify.app/posts/how-to-setup-simply-jekyll
published:
tags: Jekyll simplyjekyll howto
---
Pretty standard Jekyll setup for [[Simply Jekyll]] [on Netlify](https://simply-jekyll.netlify.app/posts/how-to-setup-simply-jekyll).
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
title: How to use Simply Jekyll features on your website
tags: simplyjekyll
comments: true
---

Welcome to this feature usage tour. This is going to be another short post that describes how to use all the fancy features we saw in [[Exploring the features of Simply Jekyll]]. So without further ado, let's get started.
Expand All @@ -28,9 +27,9 @@ Similarly, for external links all you have to do is add a double colon after the

Example of an internal link that points to a valid post or page, that is, a page with the title (not url) mentioned in the double brackets.

> **Raw Syntax:** **[[**Comparison based on accomplishment does not have a baseline**]]**
> **Raw Syntax:** **[[**Exploring the features of Simply Jekyll**]]**
>
> **Rendered Text:** [[Comparison based on accomplishment does not have a baseline]]
> **Rendered Text:** [[Exploring the features of Simply Jekyll]]

Example of an internal link that do not point to a valid post or page, that is, a page with the title (not url) mentioned in the double brackets.
Expand Down Expand Up @@ -105,14 +104,16 @@ So, all you have to do is type in the keywords of the corresponding type of side

Example of a transclusion to the right side of the page:

> **Raw Syntax:** Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec rutrum tortor in pharetra vehicula. Fusce gravida lacus ac sem luctus congue at id justo. Ut sed tempus ante. **[[**Comparison based on accomplishment does not have a baseline**::rmn-transclude]]** Suspendisse sit amet diam nec justo rhoncus tristique. Ut blandit faucibus nisi vitae rutrum. Vivamus fermentum efficitur justo non facilisis.
> **Raw Syntax:** Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec rutrum tortor in pharetra vehicula. Fusce gravida lacus ac sem luctus congue at id justo. Ut sed tempus ante. **[[**Exploring the features of Simply Jekyll**::rmn-transclude]]** Suspendisse sit amet diam nec justo rhoncus tristique. Ut blandit faucibus nisi vitae rutrum. Vivamus fermentum efficitur justo non facilisis.
>
> **Rendered Text:** Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec rutrum tortor in pharetra vehicula. Fusce gravida lacus ac sem luctus congue at id justo. Ut sed tempus ante. [[Comparison based on accomplishment does not have a baseline::rmn-transclude]] Suspendisse sit amet diam nec justo rhoncus tristique. Ut blandit faucibus nisi vitae rutrum. Vivamus fermentum efficitur justo non facilisis.
> **Rendered Text:** Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec rutrum tortor in pharetra vehicula. Fusce gravida lacus ac sem luctus congue at id justo. Ut sed tempus ante. [[Exploring the features of Simply Jekyll::rmn-transclude]] Suspendisse sit amet diam nec justo rhoncus tristique. Ut blandit faucibus nisi vitae rutrum. Vivamus fermentum efficitur justo non facilisis.
Same goes with `rsn`, `lsn`, `lmn`

### 5. Wrapping a text inside a box

_Note: I've updated the `<blockquote>` to have the box by default_

**<u>General Syntax</u>**

- **[[**Some Text**::wrap]]**
Expand All @@ -137,6 +138,8 @@ Same goes with `rsn`, `lsn`, `lmn`
### 7. Specific classes for changing font-type, font-size, and font-weight

_Note: This is something that [[Kramdown]] supports, but [[CommonMark]] does not. This means HTML syntax will be needed and that none of the examples below will render_

There are classes like very-small, medium-small, small, small-medium, medium, medium-large, large, very-large; that can be used to change the size of your text directly from markdown like this:

> **Raw Syntax:**
Expand All @@ -148,8 +151,8 @@ There are classes like very-small, medium-small, small, small-medium, medium, me
>
> **Rendered Text:**
>
> {:.large}
> Some text here that needs to be enlarged
>
> <p class="large">Some text here that needs to be enlarged</p>
Similarly there are classes like regular-sans, serif, bold, italic, oblique, bolder, etc for formatting the text.
Expand All @@ -166,7 +169,7 @@ Similarly there are classes like regular-sans, serif, bold, italic, oblique, bol
> {:.medium .serif .oblique}
> Some text here that needs to be enlarged
Other common classes are .boxit that is used to wrap the text, .disable-user-select to disallow users from being able to select a particular piece of text by selecting it, etc. There are more classes like these which you can see in the file `style.css`. Once you figure out which class to use, all you have to do is just add the class before the text you want inside a curl brace like this ​{:\<classnames-with-dot-prepended-to-them>​}
Other common classes are `.boxit` that is used to wrap the text, `.disable-user-select` to disallow users from being able to select a particular piece of text by selecting it, etc. There are more classes like these which you can see in the file `style.css`. Once you figure out which class to use, all you have to do is just add the class before the text you want inside a curl brace like this ​{:\<classnames-with-dot-prepended-to-them>​}
### 8. Other implicit features.
Expand All @@ -175,5 +178,4 @@ Features like backlinks, context menu, related posts, page preview are available
#### Note:
When you typeout square brackets, it can be frustrating to type out the entire file title everytime. At least it was for me, so I created a small VSCode plugin, the editor in which I write my essays to autocomplete the titles as soon as I type double squarebrackets. It has been pretty handy for me, if you are interested in using VSCode or already use it, you can find it here: [[Notecomplete::https://github.com/raghuveerdotnet/scratchpad/tree/master/note-complete]]. It is pretty simple to use, all you have to do is just download the note-complete folder and copy it to .vscode directory in your OS to start using it. :)
For setting up the theme on your website checkout [[How to setup Simply Jekyll]]
Loading

0 comments on commit 7e7140c

Please sign in to comment.