From 689b1ad4e55342e3fa32a4b57963da4a75fdfd13 Mon Sep 17 00:00:00 2001 From: Tommi Date: Thu, 31 Dec 2020 20:03:57 +0100 Subject: [PATCH] MAJOR --- .gitignore | 34 - 404.html | 37 +- Gemfile | 42 +- Gemfile.lock | 100 ++- README.md | 10 +- SECURITY.md | 4 +- _config.yml | 60 +- _data/resources.csv | 15 + _includes/about.html | 45 + _includes/anchor-parser.html | 60 +- _includes/backlinks.html | 90 ++ _includes/banner.html | 3 + _includes/comments.html | 16 + _includes/draft.html | 10 + _includes/edit.html | 3 + _includes/footer.html | 125 +-- _includes/head.html | 35 + _includes/header.html | 80 -- _includes/latest-post.html | 16 + _includes/listen-on.html | 21 + _includes/menu.html | 14 + _includes/nav.html | 45 + _includes/post-tags.html | 11 + _includes/sconnesso.html | 12 + _includes/share.html | 39 + _includes/stuff.html | 26 + _includes/tags.html | 11 + _includes/theme-toggle.html | 20 + _includes/toc.html | 155 ++-- _includes/zettelkasten-content.html | 216 +++++ _layouts/blankee.html | 24 + _layouts/category.html | 34 + _layouts/compress.html | 10 + _layouts/full.html | 29 + _layouts/jar.html | 38 + _layouts/level.html | 30 + _layouts/page.html | 26 +- _layouts/poetry.html | 18 + _layouts/post.html | 160 +--- _layouts/sconnesso.html | 31 + _layouts/white.html | 21 + _layouts/wrapper.html | 51 +- _levels/L01-Learn.md | 32 + _levels/L02-Share.md | 17 + _sass/_highlight.scss | 64 ++ _sass/_nav.scss | 167 ++++ _sass/_root.scss | 42 + _sass/_search.scss | 117 +++ assets/Humane Technology for Students.pdf | Bin 0 -> 2086750 bytes assets/Internet-Freedom-Manifesto.pdf | Bin 0 -> 97940 bytes ... DILEMMA - Discussion and Action Guide.pdf | Bin 0 -> 5441905 bytes assets/online privacy 1.jpg | Bin 0 -> 701248 bytes assets/online privacy 2.jpg | Bin 0 -> 669861 bytes assets/online privacy 3.jpg | Bin 0 -> 621246 bytes assets/online privacy 4.jpg | Bin 0 -> 748292 bytes .../Ubuntu-Mono/Ubuntu-Mono-Bold-Italic.woff | Bin 123788 -> 0 bytes .../Ubuntu-Mono/Ubuntu-Mono-Bold-Italic.woff2 | Bin 97972 -> 0 bytes fonts/Ubuntu-Mono/Ubuntu-Mono-Bold.woff | Bin 102500 -> 0 bytes fonts/Ubuntu-Mono/Ubuntu-Mono-Bold.woff2 | Bin 79328 -> 0 bytes .../Ubuntu-Mono-Regular-Italic.woff | Bin 109524 -> 0 bytes .../Ubuntu-Mono-Regular-Italic.woff2 | Bin 83224 -> 0 bytes fonts/Ubuntu-Mono/Ubuntu-Mono-Regular.woff | Bin 106628 -> 0 bytes fonts/Ubuntu-Mono/Ubuntu-Mono-Regular.woff2 | Bin 81288 -> 0 bytes fonts/Ubuntu-Mono/ubuntu-mono.css | 33 - fonts/inter/Inter-Black.woff | Bin 140204 -> 0 bytes fonts/inter/Inter-Black.woff2 | Bin 104712 -> 0 bytes fonts/inter/Inter-BlackItalic.woff | Bin 146424 -> 0 bytes fonts/inter/Inter-BlackItalic.woff2 | Bin 110208 -> 0 bytes fonts/inter/Inter-Bold.woff | Bin 144112 -> 0 bytes fonts/inter/Inter-Bold.woff2 | Bin 107644 -> 0 bytes fonts/inter/Inter-BoldItalic.woff | Bin 150108 -> 0 bytes fonts/inter/Inter-BoldItalic.woff2 | Bin 112944 -> 0 bytes fonts/inter/Inter-ExtraBold.woff | Bin 143836 -> 0 bytes fonts/inter/Inter-ExtraBold.woff2 | Bin 107408 -> 0 bytes fonts/inter/Inter-ExtraBoldItalic.woff | Bin 149724 -> 0 bytes fonts/inter/Inter-ExtraBoldItalic.woff2 | Bin 112840 -> 0 bytes fonts/inter/Inter-ExtraLight.woff | Bin 141884 -> 0 bytes fonts/inter/Inter-ExtraLight.woff2 | Bin 105836 -> 0 bytes fonts/inter/Inter-ExtraLightItalic.woff | Bin 149068 -> 0 bytes fonts/inter/Inter-ExtraLightItalic.woff2 | Bin 111964 -> 0 bytes fonts/inter/Inter-Italic.woff | Bin 144140 -> 0 bytes fonts/inter/Inter-Italic.woff2 | Bin 108468 -> 0 bytes fonts/inter/Inter-Light.woff | Bin 141848 -> 0 bytes fonts/inter/Inter-Light.woff2 | Bin 105740 -> 0 bytes fonts/inter/Inter-LightItalic.woff | Bin 149112 -> 0 bytes fonts/inter/Inter-LightItalic.woff2 | Bin 112348 -> 0 bytes fonts/inter/Inter-Medium.woff | Bin 143372 -> 0 bytes fonts/inter/Inter-Medium.woff2 | Bin 107072 -> 0 bytes fonts/inter/Inter-MediumItalic.woff | Bin 149996 -> 0 bytes fonts/inter/Inter-MediumItalic.woff2 | Bin 113012 -> 0 bytes fonts/inter/Inter-Regular.woff | Bin 135620 -> 0 bytes fonts/inter/Inter-Regular.woff2 | Bin 100816 -> 0 bytes fonts/inter/Inter-SemiBold.woff | Bin 143748 -> 0 bytes fonts/inter/Inter-SemiBold.woff2 | Bin 107248 -> 0 bytes fonts/inter/Inter-SemiBoldItalic.woff | Bin 150092 -> 0 bytes fonts/inter/Inter-SemiBoldItalic.woff2 | Bin 113168 -> 0 bytes fonts/inter/Inter-Thin.woff | Bin 137628 -> 0 bytes fonts/inter/Inter-Thin.woff2 | Bin 101260 -> 0 bytes fonts/inter/Inter-ThinItalic.woff | Bin 145096 -> 0 bytes fonts/inter/Inter-ThinItalic.woff2 | Bin 107656 -> 0 bytes fonts/inter/Inter-italic.var.woff2 | Bin 242076 -> 0 bytes fonts/inter/Inter-roman.var.woff2 | Bin 226904 -> 0 bytes fonts/inter/Inter.var.woff2 | Bin 318972 -> 0 bytes fonts/inter/inter.css | 200 ----- index.html | 42 + logos/cc.svg | 1 - logos/cursor-hover.svg | 1 - logos/cursor.svg | 1 - logos/favicon.svg | 1 - logos/rss.svg | 1 - pages/Contribute.md | 18 + pages/Contributors.md | 13 + pages/Localization.md | 38 + pages/Path.html | 71 ++ pages/Quick.md | 13 + pages/Resources.html | 16 + pages/Solution.md | 58 ++ pages/Why.md | 231 +++++ pages/about.md | 37 +- pages/home.html | 53 -- pages/index.html | 30 - pages/{about-it.md => it/About.md} | 1 + pages/notes.md | 127 --- pages/privacy-it.html | 24 - pages/roadmap.md | 1 + pages/zibenglish.html | 50 -- style.css | 720 --------------- style.scss | 834 ++++++++++++++++++ 128 files changed, 3042 insertions(+), 1839 deletions(-) delete mode 100644 .gitignore create mode 100644 _data/resources.csv create mode 100644 _includes/about.html create mode 100644 _includes/backlinks.html create mode 100644 _includes/banner.html create mode 100644 _includes/comments.html create mode 100644 _includes/draft.html create mode 100644 _includes/edit.html create mode 100644 _includes/head.html delete mode 100644 _includes/header.html create mode 100644 _includes/latest-post.html create mode 100644 _includes/listen-on.html create mode 100644 _includes/menu.html create mode 100644 _includes/nav.html create mode 100644 _includes/post-tags.html create mode 100644 _includes/sconnesso.html create mode 100644 _includes/share.html create mode 100644 _includes/stuff.html create mode 100644 _includes/tags.html create mode 100644 _includes/theme-toggle.html create mode 100644 _includes/zettelkasten-content.html create mode 100644 _layouts/blankee.html create mode 100644 _layouts/category.html create mode 100644 _layouts/compress.html create mode 100644 _layouts/full.html create mode 100644 _layouts/jar.html create mode 100644 _layouts/level.html create mode 100644 _layouts/poetry.html create mode 100644 _layouts/sconnesso.html create mode 100644 _layouts/white.html create mode 100644 _levels/L01-Learn.md create mode 100644 _levels/L02-Share.md create mode 100644 _sass/_highlight.scss create mode 100644 _sass/_nav.scss create mode 100644 _sass/_root.scss create mode 100644 _sass/_search.scss create mode 100644 assets/Humane Technology for Students.pdf create mode 100644 assets/Internet-Freedom-Manifesto.pdf create mode 100644 assets/THE SOCIAL DILEMMA - Discussion and Action Guide.pdf create mode 100644 assets/online privacy 1.jpg create mode 100644 assets/online privacy 2.jpg create mode 100644 assets/online privacy 3.jpg create mode 100644 assets/online privacy 4.jpg delete mode 100644 fonts/Ubuntu-Mono/Ubuntu-Mono-Bold-Italic.woff delete mode 100644 fonts/Ubuntu-Mono/Ubuntu-Mono-Bold-Italic.woff2 delete mode 100644 fonts/Ubuntu-Mono/Ubuntu-Mono-Bold.woff delete mode 100644 fonts/Ubuntu-Mono/Ubuntu-Mono-Bold.woff2 delete mode 100644 fonts/Ubuntu-Mono/Ubuntu-Mono-Regular-Italic.woff delete mode 100644 fonts/Ubuntu-Mono/Ubuntu-Mono-Regular-Italic.woff2 delete mode 100644 fonts/Ubuntu-Mono/Ubuntu-Mono-Regular.woff delete mode 100644 fonts/Ubuntu-Mono/Ubuntu-Mono-Regular.woff2 delete mode 100644 fonts/Ubuntu-Mono/ubuntu-mono.css delete mode 100644 fonts/inter/Inter-Black.woff delete mode 100644 fonts/inter/Inter-Black.woff2 delete mode 100644 fonts/inter/Inter-BlackItalic.woff delete mode 100644 fonts/inter/Inter-BlackItalic.woff2 delete mode 100644 fonts/inter/Inter-Bold.woff delete mode 100644 fonts/inter/Inter-Bold.woff2 delete mode 100644 fonts/inter/Inter-BoldItalic.woff delete mode 100644 fonts/inter/Inter-BoldItalic.woff2 delete mode 100644 fonts/inter/Inter-ExtraBold.woff delete mode 100644 fonts/inter/Inter-ExtraBold.woff2 delete mode 100644 fonts/inter/Inter-ExtraBoldItalic.woff delete mode 100644 fonts/inter/Inter-ExtraBoldItalic.woff2 delete mode 100644 fonts/inter/Inter-ExtraLight.woff delete mode 100644 fonts/inter/Inter-ExtraLight.woff2 delete mode 100644 fonts/inter/Inter-ExtraLightItalic.woff delete mode 100644 fonts/inter/Inter-ExtraLightItalic.woff2 delete mode 100644 fonts/inter/Inter-Italic.woff delete mode 100644 fonts/inter/Inter-Italic.woff2 delete mode 100644 fonts/inter/Inter-Light.woff delete mode 100644 fonts/inter/Inter-Light.woff2 delete mode 100644 fonts/inter/Inter-LightItalic.woff delete mode 100644 fonts/inter/Inter-LightItalic.woff2 delete mode 100644 fonts/inter/Inter-Medium.woff delete mode 100644 fonts/inter/Inter-Medium.woff2 delete mode 100644 fonts/inter/Inter-MediumItalic.woff delete mode 100644 fonts/inter/Inter-MediumItalic.woff2 delete mode 100644 fonts/inter/Inter-Regular.woff delete mode 100644 fonts/inter/Inter-Regular.woff2 delete mode 100644 fonts/inter/Inter-SemiBold.woff delete mode 100644 fonts/inter/Inter-SemiBold.woff2 delete mode 100644 fonts/inter/Inter-SemiBoldItalic.woff delete mode 100644 fonts/inter/Inter-SemiBoldItalic.woff2 delete mode 100644 fonts/inter/Inter-Thin.woff delete mode 100644 fonts/inter/Inter-Thin.woff2 delete mode 100644 fonts/inter/Inter-ThinItalic.woff delete mode 100644 fonts/inter/Inter-ThinItalic.woff2 delete mode 100644 fonts/inter/Inter-italic.var.woff2 delete mode 100644 fonts/inter/Inter-roman.var.woff2 delete mode 100644 fonts/inter/Inter.var.woff2 delete mode 100644 fonts/inter/inter.css create mode 100644 index.html delete mode 100644 logos/cc.svg delete mode 100644 logos/cursor-hover.svg delete mode 100644 logos/cursor.svg delete mode 100644 logos/favicon.svg delete mode 100644 logos/rss.svg create mode 100644 pages/Contribute.md create mode 100644 pages/Contributors.md create mode 100644 pages/Localization.md create mode 100644 pages/Path.html create mode 100644 pages/Quick.md create mode 100644 pages/Resources.html create mode 100644 pages/Solution.md create mode 100644 pages/Why.md delete mode 100644 pages/home.html delete mode 100644 pages/index.html rename pages/{about-it.md => it/About.md} (99%) delete mode 100644 pages/notes.md delete mode 100644 pages/privacy-it.html delete mode 100644 pages/zibenglish.html delete mode 100644 style.css create mode 100644 style.scss diff --git a/.gitignore b/.gitignore deleted file mode 100644 index a5a498a..0000000 --- a/.gitignore +++ /dev/null @@ -1,34 +0,0 @@ -_site/ -.sass-cache/ -.jekyll-cache/ -.jekyll-metadata - -# Ignore ruby files -.ruby-version -.bundle -vendor - -# Numerous always-ignore extensions -*.diff -*.err -*.log -*.orig -*.rej -*.swo -*.swp -*.vi -*~ - -# OS or Editor folders -._* -.cache -.DS_Store -.idea -.project -.settings -.tmproj -.publish -*.esproj -nbproject -Thumbs.db -.vscode diff --git a/404.html b/404.html index 92dff5d..c58b3a8 100644 --- a/404.html +++ b/404.html @@ -1,34 +1,11 @@ --- permalink: /404.html -layout: none +layout: full sitemap: false +title: "404" +link: "/home" +image: "https://assets.tommi.space/logos/404.jpg" --- - - - - - - 404 | XPLOSIONMIND - - - - -
-

404

-
page not found. Click anywhere to go back
-
-
- - +Page not found. +Click anywhere to go back home. +{:.center} diff --git a/Gemfile b/Gemfile index 4cbf601..0f85969 100644 --- a/Gemfile +++ b/Gemfile @@ -8,20 +8,48 @@ source "https://rubygems.org" # This will help ensure the proper Jekyll version is running. # Happy Jekylling! gem "jekyll" + +# Add Liquid-C for faster rendering of Liquid +gem "liquid-c" + # If you want to use GitHub Pages, remove the "gem "jekyll"" above and # uncomment the line below. To upgrade, run `bundle update github-pages`. # gem "github-pages", group: :jekyll_plugins # If you have any plugins, put them here! group :jekyll_plugins do + gem "webrick" gem "jekyll-feed" gem "jekyll-seo-tag" gem "jekyll-sitemap" + gem "jekyll-last-modified-at" gem "jekyll-target-blank" -end - -# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem -# and associated library. -install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do - gem "tzinfo" - gem "tzinfo-data" + gem "jekyll-watch" + gem "jekyll-redirect-from" + gem "jekyll-email-protect" + gem "jekyll-datapage-generator" + gem "jekyll-debug" + gem "jekyll-mentions" + gem "jekyll-liquify" + gem "jekyll-auto-image" + gem "html-proofer" +# gem "jekyll-admin" +# gem "jekyll-optional-front-matter" +# gem "jekyll-paginate" +# gem "jekyll-paginate-v2" +# gem "jekyll-archives" +# gem "jekyll-youtube" +# gem "jekyll-spaceship" +# gem "jekyll-pdf-embed" +# gem "jekyll-giphy" +# gem "jekyll-timeago" +# gem "liquid_pluralize" +# gem "liquid_reading_time" +# gem "jekyll-gist" +# gem "jekyll-twitter-plugin" +# gem "jekyll-news-sitemap" +# gem "jekyll-git_metadata" +# gem "jekyll-auto-image" +# gem "jekyll-tagging" +# gem "jekyll-auto-image" +# gem "premonition" end diff --git a/Gemfile.lock b/Gemfile.lock index e2c4652..4ed6003 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,40 +1,79 @@ GEM remote: https://rubygems.org/ specs: + activesupport (6.1.0) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + zeitwerk (~> 2.3) addressable (2.7.0) public_suffix (>= 2.0.2, < 5.0) + coderay (1.1.3) colorator (1.1.0) concurrent-ruby (1.1.7) - em-websocket (0.5.1) + em-websocket (0.5.2) eventmachine (>= 0.12.9) http_parser.rb (~> 0.6.0) + ethon (0.12.0) + ffi (>= 1.3.0) eventmachine (1.2.7) - ffi (1.13.1) + ffi (1.14.2) forwardable-extended (2.6.0) + html-pipeline (2.14.0) + activesupport (>= 2) + nokogiri (>= 1.4) + html-proofer (3.18.3) + addressable (~> 2.3) + mercenary (~> 0.3) + nokogumbo (~> 2.0) + parallel (~> 1.3) + rainbow (~> 3.0) + typhoeus (~> 1.3) + yell (~> 2.0) http_parser.rb (0.6.0) i18n (1.8.5) concurrent-ruby (~> 1.0) - jekyll (4.1.1) + jekyll (4.2.0) addressable (~> 2.4) colorator (~> 1.0) em-websocket (~> 0.5) i18n (~> 1.0) jekyll-sass-converter (~> 2.0) jekyll-watch (~> 2.0) - kramdown (~> 2.1) + kramdown (~> 2.3) kramdown-parser-gfm (~> 1.0) liquid (~> 4.0) mercenary (~> 0.4.0) pathutil (~> 0.9) rouge (~> 3.0) safe_yaml (~> 1.0) - terminal-table (~> 1.8) - jekyll-feed (0.15.0) + terminal-table (~> 2.0) + jekyll-auto-image (1.1.3) + jekyll + jekyll-datapage-generator (1.3.0) + jekyll-debug (0.0.2) + liquid (>= 2.5, < 5.0) + pry (~> 0.10) + rb-readline (~> 0.5) + jekyll-email-protect (1.1.0) + jekyll-feed (0.15.1) jekyll (>= 3.7, < 5.0) + jekyll-last-modified-at (1.3.0) + jekyll (>= 3.7, < 5.0) + posix-spawn (~> 0.3.9) + jekyll-liquify (0.0.2) + liquid (>= 2.5, < 5.0) + redcarpet (~> 3.1) + jekyll-mentions (1.6.0) + html-pipeline (~> 2.3) + jekyll (>= 3.7, < 5.0) + jekyll-redirect-from (0.16.0) + jekyll (>= 3.3, < 5.0) jekyll-sass-converter (2.1.0) sassc (> 2.0.1, < 3.0) - jekyll-seo-tag (2.6.1) - jekyll (>= 3.3, < 5.0) + jekyll-seo-tag (2.7.1) + jekyll (>= 3.8, < 5.0) jekyll-sitemap (1.4.0) jekyll (>= 3.7, < 5.0) jekyll-target-blank (2.0.0) @@ -47,43 +86,70 @@ GEM kramdown-parser-gfm (1.1.0) kramdown (~> 2.0) liquid (4.0.3) - listen (3.2.1) + liquid-c (4.0.0) + liquid (>= 3.0.0) + listen (3.3.3) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) mercenary (0.4.0) + method_source (1.0.0) mini_portile2 (2.4.0) + minitest (5.14.2) nokogiri (1.10.10) mini_portile2 (~> 2.4.0) + nokogumbo (2.0.4) + nokogiri (~> 1.8, >= 1.8.4) + parallel (1.20.1) pathutil (0.16.2) forwardable-extended (~> 2.6) + posix-spawn (0.3.15) + pry (0.13.1) + coderay (~> 1.1) + method_source (~> 1.0) public_suffix (4.0.6) + rainbow (3.0.0) rb-fsevent (0.10.4) rb-inotify (0.10.1) ffi (~> 1.0) + rb-readline (0.5.5) + redcarpet (3.5.1) rexml (3.2.4) - rouge (3.23.0) + rouge (3.26.0) safe_yaml (1.0.5) sassc (2.4.0) ffi (~> 1.9) - terminal-table (1.8.0) + terminal-table (2.0.0) unicode-display_width (~> 1.1, >= 1.1.1) - tzinfo (2.0.2) + typhoeus (1.4.0) + ethon (>= 0.9.0) + tzinfo (2.0.4) concurrent-ruby (~> 1.0) - tzinfo-data (1.2020.1) - tzinfo (>= 1.0.0) unicode-display_width (1.7.0) + webrick (1.7.0) + yell (2.2.2) + zeitwerk (2.4.2) PLATFORMS ruby DEPENDENCIES + html-proofer jekyll + jekyll-auto-image + jekyll-datapage-generator + jekyll-debug + jekyll-email-protect jekyll-feed + jekyll-last-modified-at + jekyll-liquify + jekyll-mentions + jekyll-redirect-from jekyll-seo-tag jekyll-sitemap jekyll-target-blank - tzinfo - tzinfo-data + jekyll-watch + liquid-c + webrick BUNDLED WITH - 2.1.4 + 2.2.3 diff --git a/README.md b/README.md index 005531f..a6ffe2b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ -[![Netlify Status](https://api.netlify.com/api/v1/badges/c5a2f8f0-e22a-4ae4-82e4-bcdea06adf7c/deploy-status)](https://app.netlify.com/sites/quirky-gates-75f190/deploys) +[![Netlify Status](https://api.netlify.com/api/v1/badges/c5a2f8f0-e22a-4ae4-82e4-bcdea06adf7c/deploy-status)](https://app.netlify.com/sites/quit-social-media/deploys) | [![LiberaPay Patrons](https://img.shields.io/liberapay/patrons/tommi.svg?logo=liberapay")](https://liberapay.com/tommi/) | [![Awesome Humane Tech badge](https://raw.githubusercontent.com/humanetech-community/awesome-humane-tech/main/humane-tech-badge.svg?sanitize=true)](https://www.humanetech.com/) -# QUIT SOCIAL MEDIA +# Quit Social Media -Notes are [here](./pages/notes), roadmap is [here](./pages/roadmap) +Notes are [here](https://tommi.space/qsm), roadmap is [here](./pages/roadmap) + +## Contribution + +This project warmly welcomes any contributor or supporter. Please visit the [contribution page](/contribute). diff --git a/SECURITY.md b/SECURITY.md index 3b6383c..ae6c010 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,3 +1 @@ -# Security Policy - -Actually this should be just a basic static website. No tracking, no annoying stuff, no possible security breaches. Nevertheless, there's a tiny little part of back-end cloud computing if you subscribe to the newsletter. If you encounter any problem in this process, please send an email to tommiboom+website at protonmail dot com. +This website has no tracking, no ads, no analytics, no annoying stuff, therefore no possible security breaches. Nevertheless, there's a tiny little part of back-end cloud computing if you subscribe to the newsletter. If you encounter any problem in this process, please send an email to [security@quitsocialmedia.club](mailto:security@quitsocialmedia.club). diff --git a/_config.yml b/_config.yml index 99aed1a..d372851 100644 --- a/_config.yml +++ b/_config.yml @@ -1,50 +1,72 @@ -title: "Quit Social Media" -email: tommiboom@protonmail.com +title: Quit Social Media +email: hi@quitsocialmedia.club description: >- # this means to ignore newlines until "baseurl:" - Enjoying the internet and social life independently from big intrusive and addictive platforms + Whys and hows about quitting Social Media baseurl: "" # the subpath of your site, e.g. /blog url: "https://quitsocialmedia.club" # the base hostname & protocol for your site, e.g. http://example.com +author: Tommi +publisher: Tommi twitter_username: xplosionmind github_username: xplosionmind -git_repository: "quit-social-media" +git_repository: "quitsocialmedia.club" future: true profile: true livereload: true strict_front_matter: true - +images: "https://assets.tommi.space/images" +post-images: "https://assets.tommi.space/images/posts" +assets: "https://assets.tommi.space/assets" +video: "https://assets.tommi.space/video" +audio: "https://assets.tommi.space/audio" +logos: "https://assets.tommi.space/logos" +fonts: "https://assets.tommi.space/fonts" +exclude: + - riordinare/ +keep_files: + - images/ + - assets/ collections: - posts: - excerpt_separator: "" + levels: + output: false + +social: + name: xplosionmind +tagline: "Living a healthier life on the web" +twitter: + username: xplosionmind + card: summary plugins: - jekyll-feed - jekyll-seo-tag - jekyll-sitemap + - jekyll-last-modified-at - jekyll-target-blank + - jekyll-watch + - jekyll-redirect-from + - jekyll-debug + - jekyll-watch + - jekyll-email-protect sass: - style: compressed - -permalink: "/:title" -ref: ":title" - + style: compressed +permalink: /:title defaults: - scope: path: "" values: layout: "wrapper" - ref: ":title" lang: "en" img: "/images/preview.gif" - primary: "#FCC920" + comments: true - scope: path: "" - type: "posts" + type: levels values: - layout: "post" - lang: "it" - permalink: "/:title" - excerpt_separator: "" + layout: level + lang: en + permalink: /:title + hide: 0 diff --git a/_data/resources.csv b/_data/resources.csv new file mode 100644 index 0000000..212c25a --- /dev/null +++ b/_data/resources.csv @@ -0,0 +1,15 @@ +name,link,lang,where,video,article,book,website,other +Ten Arguments for Deleting Your Social Media Accounts,http://jaronlanier.com/tenarguments.html,en,,0,0,1,0,0 +What is Free Software,https://fsfe.org/freesoftware/freesoftware.en.html,en,,0,1,0,0,0 +Cos'è il Software Libero,https://fsfe.org/freesoftware/freesoftware.it.html,it,,0,1,0,0,0 +AlternativeTo,https://alternativeto.net/,en,,0,0,0,1,0 +Switching Software,https://switching.software/,en,,0,0,0,1,0 +PrivacyTools,https://privacytools.io/,en,,0,0,0,1,0 +PrivacyTools,https://privacytools-it.github.io/,it,,0,0,0,1,0 +Tommi's website,https://tommi.space,it,/about,0,0,0,1,0 +Intervista a Jaron Lanier - Il Tascabile,https://www.iltascabile.com/scienze/intervista-lanier/,it,,0,1,0,0,0 +,,,,0,0,0,0,0 +,,,,0,0,0,0,0 +,,,,0,0,0,0,0 +,,,,0,0,0,0,0 +,,,,0,0,0,0,0 diff --git a/_includes/about.html b/_includes/about.html new file mode 100644 index 0000000..30ccdeb --- /dev/null +++ b/_includes/about.html @@ -0,0 +1,45 @@ +
+

{% if page.lang == 'it' %}Chi è questo tipo{% else %}About this weirdo{% endif %}

+
+ a photo of me conducting a live show +
+
+ + + {% if page.lang == 'it' %} + +

Mi chiamo Tommi,

+ +

è possibile vedermi campeggiare sul pianeta Terra ma sono perennemente in viaggio in una dimensione parallela dominata dall'entusiasmo, dalla curiosità e dalla confusione.

+ +

Mi capita spesso di perdermi, ma mi muovo continuamente (in tutti i sensi) per conoscere nuove persone e scoprire le loro storie. Il mio ipercinetismo rende un allegro individuo perennemente saltellante, talvolta insopportabile. Finora, come scrive il sommo Leibniz, nella mia vita ho cominciato tutto e concluso nulla.

+ +

Lo ammetto, non sono bravo a rispondere alla domanda “chi sei”, ma, diciamocelo, nessuno ne è davvero capace. Chi sono veramente lo raccontano i miei “articoli”, quello che sto facendo ora e tutto quello che faccio nella vita. Tuttavia, per capire meglio il caos che regna nella mia testa, di cui questo sito è la rappresentazione virtuale, bisogna assaggiare La Marmellata.

+ +

Cose pratiche utili: +

+

+ + + {% else %} + + +

Hi, I’m Tommi.

+ +

I’m an enthusiast. I love getting involved in everything which involves human interactions and I’m overthinking addicted. I’m an happy guy, but this doesn’t mean I don’t cry (just make me watch the right movie).

+

The purpose of my whole exsistence is meeting all the people in the world. This is why, When I’m not studying, I try to be as busy as I can. This means, as the great Leibnitz said, that in my life I started everything and concluded nothing. You can know more about something of this messy everything by browsing around. If the stuff here is too confused and you get lost, well… welcome to my mind.

+

Things that wander around in my head are written on my blog or they are thrown in The Jar.

+

Some useful data: +

+

+ {% endif %} +
+
diff --git a/_includes/anchor-parser.html b/_includes/anchor-parser.html index 4a8b32f..c6f77f0 100644 --- a/_includes/anchor-parser.html +++ b/_includes/anchor-parser.html @@ -1,35 +1,8 @@ {% capture headingsWorkspace %} - {% comment %} - Version 1.0.6 - https://github.com/allejo/jekyll-anchor-headings - "Be the pull request you wish to see in the world." ~Ben Balter - - Usage: - {% include anchor_headings.html html=content %} - - Parameters: - * html (string) - the HTML of compiled markdown generated by kramdown in Jekyll - - Optional Parameters: - * beforeHeading (bool) : false - Set to true if the anchor should be placed _before_ the heading's content - * anchorAttrs (string) : '' - Any custom HTML attributes that will be added to the `` tag; you may NOT use `href`, `class` or `title`; - the `%heading%` placeholder is available - * anchorBody (string) : '' - The content that will be placed inside the anchor; the `%heading%` placeholder is available - * anchorClass (string) : '' - The class(es) that will be used for each anchor. Separate multiple classes with a space - * anchorTitle (string) : '' - The `title` attribute that will be used for anchors - * h_min (int) : 1 - The minimum header level to build an anchor for; any header lower than this value will be ignored - * h_max (int) : 6 - The maximum header level to build an anchor for; any header greater than this value will be ignored - * bodyPrefix (string) : '' - Anything that should be inserted inside of the heading tag _before_ its anchor and content - * bodySuffix (string) : '' - Anything that should be inserted inside of the heading tag _after_ its anchor and content - - Output: - The original HTML with the addition of anchors inside of all of the h1-h6 headings. - {% endcomment %} - - {% assign minHeader = include.h_min | default: 1 %} - {% assign maxHeader = include.h_max | default: 6 %} - {% assign beforeHeading = include.beforeHeading %} + {% assign minHeader = 2 %} + {% assign maxHeader = 6 %} + {% assign beforeHeading = 1 %} {% assign nodes = include.html | split: '{% endcapture %} + {% assign _workspace = node | split: _closingTag %} {% assign _idWorkspace = _workspace[0] | split: 'id="' %} {% assign _idWorkspace = _idWorkspace[1] | split: '"' %} {% assign html_id = _idWorkspace[0] %} @@ -70,21 +44,24 @@ {% capture anchor %}{% endcapture %} {% if html_id and headerLevel >= minHeader and headerLevel <= maxHeader %} + {% if include.headerAttrs %} + {% capture _hAttrToStrip %}{{ _hAttrToStrip | split: '>' | first }} {{ include.headerAttrs | replace: '%heading%', header | replace: '%html_id%', html_id }}>{% endcapture %} + {% endif %} + {% capture anchor %}href="#{{ html_id }}"{% endcapture %} {% if include.anchorClass %} {% capture anchor %}{{ anchor }} class="{{ include.anchorClass }}"{% endcapture %} {% endif %} - {% if include.anchorTitle %} - {% capture anchor %}{{ anchor }} title="{{ include.anchorTitle | replace: '%heading%', header }}"{% endcapture %} - {% endif %} + {% capture anchor %}{{ anchor }} title="{{ header }}"{% endcapture %} {% if include.anchorAttrs %} - {% capture anchor %}{{ anchor }} {{ include.anchorAttrs | replace: '%heading%', header }}{% endcapture %} + {% capture anchor %}{{ anchor }} {{ include.anchorAttrs | replace: '%heading%', header | replace: '%html_id%', html_id }}{% endcapture %} {% endif %} - {% capture anchor %}{{ include.anchorBody | replace: '%heading%', header | default: '' }}{% endcapture %} + {% capture anchor %}{{ ' +' | replace: '%heading%', header | default: '' }}{% endcapture %} {% if beforeHeading %} @@ -103,8 +80,17 @@ {{ header }}{{ anchor }} {% endif %} {{ include.bodySuffix }} - {% endcapture %} + + + {% assign chunkCount = _workspace | size %} + {% if chunkCount > 1 %} + {% capture new_heading %}{{ new_heading }}{{ _workspace | last }}{% endcapture %} + {% endif %} + {% capture edited_headings %}{{ edited_headings }}{{ new_heading }}{% endcapture %} {% endfor %} {% endcapture %}{% assign headingsWorkspace = '' %}{{ edited_headings | strip }} diff --git a/_includes/backlinks.html b/_includes/backlinks.html new file mode 100644 index 0000000..195e0c5 --- /dev/null +++ b/_includes/backlinks.html @@ -0,0 +1,90 @@ + diff --git a/_includes/banner.html b/_includes/banner.html new file mode 100644 index 0000000..3927e8a --- /dev/null +++ b/_includes/banner.html @@ -0,0 +1,3 @@ + diff --git a/_includes/comments.html b/_includes/comments.html new file mode 100644 index 0000000..d5a9bda --- /dev/null +++ b/_includes/comments.html @@ -0,0 +1,16 @@ +{% unless page.comments == false %} +
+
+

{% case page.lang %}{% when 'it' %}Commenti{% else %}Comments{% endcase %}

+ +
+
+ +{% endunless %} diff --git a/_includes/draft.html b/_includes/draft.html new file mode 100644 index 0000000..caddeb9 --- /dev/null +++ b/_includes/draft.html @@ -0,0 +1,10 @@ +
+ +
diff --git a/_includes/edit.html b/_includes/edit.html new file mode 100644 index 0000000..4fd06a1 --- /dev/null +++ b/_includes/edit.html @@ -0,0 +1,3 @@ +
+

{% if page.lang == 'it' %}suggerisci modifica o correzione{% else %}suggest edit{% endif %}

+
diff --git a/_includes/footer.html b/_includes/footer.html index 505bfa3..159c455 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,117 +1,24 @@ -{% case include.lang %} - -{% when 'it' %} - -{% else %} - - -{% endcase %} diff --git a/_includes/head.html b/_includes/head.html new file mode 100644 index 0000000..e19556f --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,35 @@ + + + + {% seo %} + + + + + {{ page.title }} | Quit Social Media + + + + + + + + + + + + + + + + + diff --git a/_includes/header.html b/_includes/header.html deleted file mode 100644 index 4dbaf46..0000000 --- a/_includes/header.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - {% case include.lang %} - {% when 'it' %} - - {% else %} - - {% endcase %} - diff --git a/_includes/latest-post.html b/_includes/latest-post.html new file mode 100644 index 0000000..d97271a --- /dev/null +++ b/_includes/latest-post.html @@ -0,0 +1,16 @@ +{% for post in site.posts limit:1 %} +
+

{% if page.lang == 'it'%}Ultimo articolo{% else %}Latest post{% endif %}

+
+ {{ post.title }} +
+
+

{{ post.title }}

+

{{ post.date | date_to_long_string }}

+
+ {{ post.excerpt | truncatewords: 80 }} +
+ {% if page.lang == 'it' %}Leggi{% else %}Read{% endif %} +
+
+{% endfor %} diff --git a/_includes/listen-on.html b/_includes/listen-on.html new file mode 100644 index 0000000..4b73eb3 --- /dev/null +++ b/_includes/listen-on.html @@ -0,0 +1,21 @@ +
+ +

{% if page.lang == 'it' %}Puoi ascoltare anche su{% else %}Listen also on{% endif %}

+ +
+ + + Spotify logo + + + + + + + + + + + +
+
diff --git a/_includes/menu.html b/_includes/menu.html new file mode 100644 index 0000000..45dbdb9 --- /dev/null +++ b/_includes/menu.html @@ -0,0 +1,14 @@ +--- +layout: blank +lang: it +title: "Menu provvisorio" +description: "Tutto a un tratto il menu su mobile ha smesso di funzionare. Mentre cerco di capire come sistemare la cosa con JavaScript, questa è l'alternativa. Da desktop dovrebbe essere tutto normale" +--- + diff --git a/_includes/nav.html b/_includes/nav.html new file mode 100644 index 0000000..1790f9e --- /dev/null +++ b/_includes/nav.html @@ -0,0 +1,45 @@ + + + diff --git a/_includes/post-tags.html b/_includes/post-tags.html new file mode 100644 index 0000000..d9cde09 --- /dev/null +++ b/_includes/post-tags.html @@ -0,0 +1,11 @@ +
+ {% for tagg in site.data.tags %} + {% for present in page.tags %} + {% capture tag %}{{ tagg.title | downcase | slugify }}{% endcapture %} + {% capture post-tag %}{{ present | downcase | slugify }}{% endcapture %} + {% if tag == post-tag %} + + {% endif %} + {% endfor %} + {% endfor %} +
diff --git a/_includes/sconnesso.html b/_includes/sconnesso.html new file mode 100644 index 0000000..a2cad5a --- /dev/null +++ b/_includes/sconnesso.html @@ -0,0 +1,12 @@ +

Sconnesso

+
+
+ Logo Sconnesso +
+ +
diff --git a/_includes/share.html b/_includes/share.html new file mode 100644 index 0000000..3a1e7f1 --- /dev/null +++ b/_includes/share.html @@ -0,0 +1,39 @@ +
+ +

{% if page.lang == 'it' %}Condividi{% else %}Share{% endif %}

+ + +
diff --git a/_includes/stuff.html b/_includes/stuff.html new file mode 100644 index 0000000..ccab1e1 --- /dev/null +++ b/_includes/stuff.html @@ -0,0 +1,26 @@ +{% assign stuff=site.data.stuff %} +{% for thing in stuff %} + {% if page.lang == 'it' %} +
+
+ {{ thing.alt-it }} +
+
+ +

{{ thing.description-it | markdownify }}

+ {{ thing.button-it }} +
+
+ {% else %} +
+
+ {{ thing.alt }} +
+
+ +

{{ thing.description | markdownify }}

+ {{ thing.button }} +
+
+ {% endif %} +{% endfor %} diff --git a/_includes/tags.html b/_includes/tags.html new file mode 100644 index 0000000..6372ef0 --- /dev/null +++ b/_includes/tags.html @@ -0,0 +1,11 @@ +
+

Tags

+
+ Pasticci + Filosofia + {% assign tags = site.data.tags %} + {% for tag in tags %} + {{ tag.title }} + {% endfor %} +
+
diff --git a/_includes/theme-toggle.html b/_includes/theme-toggle.html new file mode 100644 index 0000000..dd8f4fa --- /dev/null +++ b/_includes/theme-toggle.html @@ -0,0 +1,20 @@ + + + diff --git a/_includes/toc.html b/_includes/toc.html index 6971739..9612513 100644 --- a/_includes/toc.html +++ b/_includes/toc.html @@ -1,112 +1,129 @@ {% capture tocWorkspace %} - {% comment %} - Version 1.0.11 - https://github.com/allejo/jekyll-toc - "...like all things liquid - where there's a will, and ~36 hours to spare, there's usually a/some way" ~jaybe + {% capture newline %} + {% endcapture %} + {% assign newline = newline | rstrip %} - Usage: - {% include toc.html html=content sanitize=true class="inline_toc" id="my_toc" h_min=2 h_max=3 %} + {% capture deprecation_warnings %}{% endcapture %} - Parameters: - * html (string) - the HTML of compiled markdown generated by kramdown in Jekyll + {% if include.baseurl %} + {% capture deprecation_warnings %}{{ deprecation_warnings }}{{ newline }}{% endcapture %} + {% endif %} - Optional Parameters: - * sanitize (bool) : false - when set to true, the headers will be stripped of any HTML in the TOC - * class (string) : '' - a CSS class assigned to the TOC - * id (string) : '' - an ID to assigned to the TOC - * h_min (int) : 1 - the minimum TOC header level to use; any header lower than this value will be ignored - * h_max (int) : 6 - the maximum TOC header level to use; any header greater than this value will be ignored - * ordered (bool) : false - when set to true, an ordered list will be outputted instead of an unordered list - * item_class (string) : '' - add custom class(es) for each list item; has support for '%level%' placeholder, which is the current heading level - * baseurl (string) : '' - add a base url to the TOC links for when your TOC is on another page than the actual content - * anchor_class (string) : '' - add custom class(es) for each anchor element - * skipNoIDs (bool) : false - skip headers that do not have an `id` attribute + {% if include.skipNoIDs %} + {% capture deprecation_warnings %}{{ deprecation_warnings }}{{ newline }}{% endcapture %} + {% endif %} - Output: - An ordered or unordered list representing the table of contents of a markdown block. This snippet will only - generate the table of contents and will NOT output the markdown given to it - {% endcomment %} - - {% capture my_toc %}{% endcapture %} + {% capture jekyll_toc %}{% endcapture %} {% assign orderedList = include.ordered | default: false %} - {% assign skipNoIDs = include.skipNoIDs | default: false %} - {% assign minHeader = include.h_min | default: 1 %} - {% assign maxHeader = include.h_max | default: 6 %} - {% assign nodes = include.html | split: ' maxHeader %} + {% if currLevel < minHeader or currLevel > maxHeader %} {% continue %} {% endif %} - {% if firstHeader %} - {% assign firstHeader = false %} - {% assign minHeader = headerLevel %} - {% endif %} - - {% assign indentAmount = headerLevel | minus: minHeader %} {% assign _workspace = node | split: '' | first }}>{% endcapture %} {% assign header = _workspace[0] | replace: _hAttrToStrip, '' %} - {% assign space = '' %} - {% for i in (1..indentAmount) %} - {% assign space = space | prepend: ' ' %} - {% endfor %} - {% if include.item_class and include.item_class != blank %} - {% capture listItemClass %}{:.{{ include.item_class | replace: '%level%', headerLevel }}}{% endcapture %} + {% capture listItemClass %} class="{{ include.item_class | replace: '%level%', currLevel | split: '.' | join: ' ' }}"{% endcapture %} {% endif %} - {% capture anchor_body %}{% if include.sanitize %}{{ header | strip_html }}{% else %}{{ header }}{% endif %}{% endcapture %} - {% capture anchor_body %}{{ anchor_body | replace: "|", "\|" }}{% endcapture %} + {% if include.submenu_class and include.submenu_class != blank %} + {% assign subMenuLevel = currLevel | minus: 1 %} + {% capture subMenuClass %} class="{{ include.submenu_class | replace: '%level%', subMenuLevel | split: '.' | join: ' ' }}"{% endcapture %} + {% endif %} - {% if html_id %} - {% capture list_item %}[{{ anchor_body }}]({% if include.baseurl %}{{ include.baseurl }}{% endif %}#{{ html_id }}){% endcapture %} + {% capture anchorBody %}{% if include.sanitize %}{{ header | strip_html }}{% else %}{{ header }}{% endif %}{% endcapture %} + + {% if htmlID %} + {% capture anchorAttributes %} href="{% if baseURL %}{{ baseURL }}{% endif %}#{{ htmlID }}"{% endcapture %} + + {% if include.anchor_class %} + {% capture anchorAttributes %}{{ anchorAttributes }} class="{{ include.anchor_class | split: '.' | join: ' ' }}"{% endcapture %} + {% endif %} + + {% capture listItem %}{{ anchorBody }}{% endcapture %} + {% elsif skipNoIDs == true %} + {% continue %} {% else %} - {% capture list_item %}{{ anchor_body }}{% endcapture %} + {% capture listItem %}{{ anchorBody }}{% endcapture %} {% endif %} - {% capture my_toc %}{{ my_toc }} -{{ space }}{{ listModifier }} {{ listItemClass }} {{ list_item }}{% if include.anchor_class %}{:.{{ include.anchor_class }}}{% endif %}{% endcapture %} + {% if currLevel > lastLevel %} + {% capture jekyll_toc %}{{ jekyll_toc }}<{{ listModifier }}{{ subMenuClass }}>{% endcapture %} + {% elsif currLevel < lastLevel %} + {% assign repeatCount = lastLevel | minus: currLevel %} + + {% for i in (1..repeatCount) %} + {% capture jekyll_toc %}{{ jekyll_toc }}{% endcapture %} + {% endfor %} + + {% capture jekyll_toc %}{{ jekyll_toc }}{% endcapture %} + {% else %} + {% capture jekyll_toc %}{{ jekyll_toc }}{% endcapture %} + {% endif %} + + {% capture jekyll_toc %}{{ jekyll_toc }}{{ listItem }}{% endcapture %} + + {% assign lastLevel = currLevel %} + {% assign firstHeader = false %} {% endfor %} - {% if include.class and include.class != blank %} - {% capture my_toc %}{:.{{ include.class }}} -{{ my_toc | lstrip }}{% endcapture %} - {% endif %} + {% assign repeatCount = minHeader | minus: 1 %} + {% assign repeatCount = lastLevel | minus: repeatCount %} + {% for i in (1..repeatCount) %} + {% capture jekyll_toc %}{{ jekyll_toc }}{% endcapture %} + {% endfor %} - {% if include.id %} - {% capture my_toc %}{: #{{ include.id }}} -{{ my_toc | lstrip }}{% endcapture %} + {% if jekyll_toc != '' %} + {% assign rootAttributes = '' %} + {% if include.class and include.class != blank %} + {% capture rootAttributes %} class="{{ include.class | split: '.' | join: ' ' }}"{% endcapture %} + {% endif %} + + {% if include.id and include.id != blank %} + {% capture rootAttributes %}{{ rootAttributes }} id="{{ include.id }}"{% endcapture %} + {% endif %} + + {% if rootAttributes %} + {% assign nodes = jekyll_toc | split: '>' %} + {% capture jekyll_toc %}<{{ listModifier }}{{ rootAttributes }}>{{ nodes | shift | join: '>' }}>{% endcapture %} + {% endif %} {% endif %} -{% endcapture %}{% assign tocWorkspace = '' %}{{ my_toc | markdownify | strip }} +{% endcapture %}{% assign tocWorkspace = '' %}{{ deprecation_warnings }}{{ jekyll_toc }} diff --git a/_includes/zettelkasten-content.html b/_includes/zettelkasten-content.html new file mode 100644 index 0000000..a5f15a3 --- /dev/null +++ b/_includes/zettelkasten-content.html @@ -0,0 +1,216 @@ + +{%- if page.content-type == "notes" -%} +
    + {%- if page.season != nil and page.season != empty -%} +
  • Season: {{page.season | capitalize}}
  • + {%- endif -%} + + {%- if page.tags != empty and page.tags !=nil -%} + {%- for tag in page.tags -%} +
  • {{ tag }}
  • + {%- endfor -%} + {%- endif -%} +
+{%- endif -%} +{%- include toc.html -%} +
+ + {%- assign content_array = content | split:'[[' -%} + {%- assign external_link_delimiter = '::' -%} + {%- assign internal_link_delimiter = '|' -%} + + + {%- assign link_joiner_delimiter = '$@' -%} + + {%- for item in content_array -%} + + {%- if forloop.index > 1 -%} + {%- assign itemparts = item | split:']]' -%} + + {%- assign internal_link = itemparts[0] | split:internal_link_delimiter -%} + + {%- assign external_link = itemparts[0] | split:external_link_delimiter -%} + {%- assign sidenote = itemparts[0] | split:sidenote_delimiter -%} + + {%- if external_link[1] == nil -%} + + {%- if internal_link[1] == nil -%} + + {%- assign result_notes = site.notes | where: 'title',internal_link[0] -%} + {%- assign result_posts = site.posts | where: 'title',internal_link[0] -%} + {%- assign result_pages = site.pages | where: 'title',internal_link[0] -%} + + {%- assign internal_links = internal_links | append: link_joiner_delimiter | append: internal_link[0] -%} + {%- assign internal_urls = internal_urls | append: link_joiner_delimiter | append: result_notes[0].url | append: result_posts[0].url | append: result_pages[0].url -%} + + {%- else -%} + {%- assign result_notes = site.notes | where: 'title',internal_link[0] -%} + {%- assign result_posts = site.posts | where: 'title',internal_link[0] -%} + {%- assign result_pages = site.pages | where: 'title',internal_link[0] -%} + + {%- assign internal_links_alt = internal_links_alt | append: link_joiner_delimiter | append: internal_link[0] -%} + {%- assign internal_urls_alt = internal_urls_alt | append: link_joiner_delimiter | append: result_notes[0].url | append: result_posts[0].url | append: result_pages[0].url -%} + {%- assign internal_titles_alt = internal_titles_alt | append: link_joiner_delimiter | append: internal_link[1] -%} + {%- endif -%} + {%- else -%} + + {%- assign external_links = external_links | append: link_joiner_delimiter | append: external_link[0] -%} + {%- assign external_urls = external_urls | append: link_joiner_delimiter | append: external_link[1] -%} + + {%- endif -%} + {%- endif -%} + {%- endfor -%} + + + {%- assign internal_url_array = internal_urls | split:link_joiner_delimiter -%} + {%- assign internal_link_array = internal_links | split:link_joiner_delimiter -%} + + {%- assign external_url_array = external_urls | split:link_joiner_delimiter -%} + {%- assign external_link_array = external_links | split:link_joiner_delimiter -%} + {%- assign replaced_content = content -%} + + {%- for title in internal_link_array -%} + + {%- assign url = internal_url_array[forloop.index0] -%} + + {%- if url == nil -%} + + {%- assign link_text = '' | append: title | append: '' -%} + {%- elsif url == empty -%} + + {%- assign link_text = '' | append: title | append: '' -%} + + {%- else -%} + + {%- assign post = site.notes | where: 'title',title -%} + + {%- if post[0].title == nil -%} + + {%- assign post = site.posts | where: 'title',title -%} + + {%- endif -%} + + {%- assign excerpt = post[0].content | markdownify | strip_html | truncate: 500 | newline_to_br -%} + + {%- assign link_text = '' | append: title | append: '' | append: title | append: '
' | append: excerpt | append: '
' -%} + {%- endif -%} + + {%- assign bracket_link = '[[' | append: title | append: ']]' -%} + {%- assign replaced_content = replaced_content | replace: bracket_link,link_text -%} + + + {%- endfor -%} + + + + + {%- assign internal_url_alt_array = internal_urls_alt | split:link_joiner_delimiter -%} + {%- assign internal_link_alt_array = internal_links_alt | split:link_joiner_delimiter -%} + {%- assign internal_titles_alt_array = internal_titles_alt | split:link_joiner_delimiter -%} + + + + {%- for title in internal_link_alt_array -%} + + {%- assign url = internal_url_alt_array[forloop.index0] -%} + {%- assign alt_title = internal_titles_alt_array[forloop.index0] -%} + + {%- if url == nil -%} + + {%- assign link_text = '' | append: alt_title | append: '' -%} + + {%- elsif url == empty -%} + + {%- assign link_text = '' | append: alt_title | append: '' -%} + + {%- else -%} + + {%- assign post = site.notes | where: 'title',title -%} + {%- assign gggg = site.notes | where: 'title', 'pd.cut() - créer une variable catégorielle'-%} + + {%- assign excerpt = post[0].content | markdownify | strip_html | truncate: 500 | newline_to_br -%} + + {%- assign link_text = '' | append: alt_title | append: '' | append: post[0].title | append: '
' | append: excerpt | append: '
' -%} + + {%- endif -%} + + {%- assign bracket_link = '[[' | append: title | append: '|' | append: alt_title | append: ']]' -%} + {%- assign replaced_content = replaced_content | replace: bracket_link, link_text -%} + + {%- endfor -%} + + + + + {%- assign sideNoteCounter = 0 -%} + {%- assign srsCounter = 0 -%} + {%- for title in external_link_array -%} + {%- assign url = external_url_array[forloop.index0] -%} + {%- if url contains "wikipedia.org" -%} + {%- assign link_text = '' | append: title | append: ' +' -%} + {%- elsif url contains "archive.org" -%} + {%- assign link_text = '' | append: title | append: 'Wayback' -%} + {%- elsif url contains "gutenberg.org" -%} + {%- assign link_text = '' | append: title | append: 'Guten' -%} + {%- elsif url contains "youtube.com" or url contains "youtu.be" -%} + {%- assign link_text = '' | append: title | append: '' -%} + {%- elsif url contains "twitter.com" -%} + {%- assign link_text = '' | append: title | append: '' -%} + {%- elsif url contains "github.com" or url contains "github.io" -%} + {%- assign link_text = '' | append: title | append: '' -%} + {%- elsif url == "highlight" -%} + {%- assign link_text = '' | append: title | append: '' -%} + {%- elsif url == "wrap" -%} + {%- assign link_text = '
' | append: title | append: '
' -%} + {%- elsif url == "img" -%} + {%- assign link_text = '' -%} + {%- elsif url == "lsn" or url == "rsn" or url == "lsn-transclude" or url == "rsn-transclude" or url == "lmn" or url == "rmn" or url == "lmn-transclude" or url == "rmn-transclude" -%} + {%- assign toggleLabel = "" -%} + {%- assign sideNoteNum = "" -%} + {%- if url contains "lsn" -%} + {%- assign noteType = "sn-left" -%} + {%- assign sideNoteNum = "sidenote-number" -%} + {%- elsif url contains "rsn" -%} + {%- assign noteType = "sn-right" -%} + {%- assign sideNoteNum = "sidenote-number" -%} + {%- elsif url contains "lmn" -%} + {%- assign noteType = "mn-left" -%} + {%- assign toggleLabel = "⊕" -%} + {%- elsif url contains "rmn" -%} + {%- assign noteType = "mn-right" -%} + {%- assign toggleLabel = "⊕" -%} + {%- endif -%} + + + {%- if url contains "transclude" -%} + {%- assign post = site.notes | where: 'title',title -%} + {%- if post[0].title == nil -%} + {%- assign post = site.posts | where: 'title',title -%} + {%- endif -%} + {%- assign excerpt = post[0].content | strip_html | truncate: 280 -%} + {%- assign link_text = ' Transclusion
' | append: title | append: '
' | append: excerpt | append: '
' -%} + {%- else -%} + {%- assign link_text = '' | append: title | append: '' -%} + {%- endif -%} + + {%- assign sideNoteCounter = sideNoteCounter | plus:1 -%} + {%- elsif url == "srs" -%} + {%- assign link_text = 'Flashcard
' | append: title | append: '
' -%} + {%- assign srsCounter = srsCounter | plus:1 -%} + {%- elsif url == "todo" -%} + {%- assign todo_list = title | split:';' -%} + {%- assign link_text = "

::TODO::

    " -%} + {%- for list_items in todo_list -%} + {%- assign link_text = link_text | append: '
  • ' | append: list_items | append: '
  • ' -%} + {%- endfor -%} + {%- assign link_text = link_text | append: '
' -%} + {%- else -%} + {%- assign link_text = '' | append: title | append: '' -%} + {%- endif -%} + {%- assign bracket_link = '[[' | append: title | append: external_link_delimiter | append: url | append: ']]' -%} + {%- assign replaced_content = replaced_content | replace: bracket_link,link_text -%} + {%- endfor -%} + + {{ replaced_content }} +
diff --git a/_layouts/blankee.html b/_layouts/blankee.html new file mode 100644 index 0000000..7b20de7 --- /dev/null +++ b/_layouts/blankee.html @@ -0,0 +1,24 @@ +--- +layout: none +--- + +{% if page.lang == 'it' %} + +{% else %} + +{% endif %} + + {% include head.html %} + + +
+
+

{{ page.title }}

+

{{ page.description }}

+
+
+ + {{ content }} + + + diff --git a/_layouts/category.html b/_layouts/category.html new file mode 100644 index 0000000..e5138bc --- /dev/null +++ b/_layouts/category.html @@ -0,0 +1,34 @@ +--- +layout: wrapper +--- + + +{% for post in site.posts %} + {% if post.categories contains page.title %} + +
+
+
+

{{ post.title }}

+
+
+ {{ post.date | date: "%d %B %Y" }} +
+
+
+
+
+ {% endif %} +{% endfor %} + +
+
diff --git a/_layouts/compress.html b/_layouts/compress.html new file mode 100644 index 0000000..bb34487 --- /dev/null +++ b/_layouts/compress.html @@ -0,0 +1,10 @@ +--- +# Jekyll layout that compresses HTML +# v3.1.0 +# http://jch.penibelst.de/ +# © 2014–2015 Anatol Broder +# MIT License +--- + +{% capture _LINE_FEED %} +{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment or site.compress_html.ignore.envs == "all" %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "" %}{% endif %}{% unless _pre_before contains "" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " ;; ;" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %}
Step Bytes
raw {{ content | size }}{% if _profile_endings %}
endings {{ _profile_endings }}{% endif %}{% if _profile_startings %}
startings {{ _profile_startings }}{% endif %}{% if _profile_comments %}
comments {{ _profile_comments }}{% endif %}{% if _profile_collapse %}
collapse {{ _profile_collapse }}{% endif %}{% if _profile_clippings %}
clippings {{ _profile_clippings }}{% endif %}
{% endif %}{% endif %} diff --git a/_layouts/full.html b/_layouts/full.html new file mode 100644 index 0000000..4f0e429 --- /dev/null +++ b/_layouts/full.html @@ -0,0 +1,29 @@ +--- +layout: none +--- + + +{% include head.html %} + + + +

{{ page.title }}

+ {{ content | markdownify }} +
+ + diff --git a/_layouts/jar.html b/_layouts/jar.html new file mode 100644 index 0000000..1aba1d1 --- /dev/null +++ b/_layouts/jar.html @@ -0,0 +1,38 @@ +--- +layout: wrapper +--- + + +
+ + + {% if page.toc %} +
+

{% if page.lang == 'it' %}Indice{% else %}Table of contents{% endif %}

+ {% include toc.html html=content sanitize=true %} +
+ {% endif %} + + {% include post-tags.html %} + +
+
+ {% if page.description != nil %} +

{{ page.description | markdownify }}

+ {% endif %} + {% include anchor-parser.html html=content %} +
+
+ + {% include post-tags.html %} + {% include edit.html %} + {% include backlinks.html %} + {% include share.html %} + {% include comments.html %} + +
diff --git a/_layouts/level.html b/_layouts/level.html new file mode 100644 index 0000000..b8483bd --- /dev/null +++ b/_layouts/level.html @@ -0,0 +1,30 @@ +--- +layout: wrapper +--- +
+ + + {% if page.toc == true %} +
+

{% case page.lang %}{% when 'it' %}Indice{% else %}Table of contents{% endcase %}

+ {% include toc.html html=content %} +
+ {% endif %} + +
+
+

{{ page.description }}

+ {% include anchor-parser.html html=content %} +
+
+ + + {% include edit.html %} + {% include share.html %} + +
diff --git a/_layouts/page.html b/_layouts/page.html index 65054a5..9e154f4 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -1,6 +1,5 @@ --- layout: wrapper -permalink: "/:title" --- -{% if page.toc == 'true' %} -
-
-

- {% case page.lang %} - {% when 'it' %} - Indice dei contenuti - {% else %} - Table of contents - {% endcase %} -

- {% include toc.html html=content h_min=2 %} +{% if page.toc == 1 %} +
+
+

+ {% if page.lang == 'it' %} + Indice + {% else %} + Table of contents + {% endif %} +

+ {% include toc.html html=content sanitize=true %}
{% endif %}
- {% include anchor-parser.html html=content beforeHeading=true anchorBody='' anchorTitle='%heading%' h_min=2 %} + {% include anchor-parser.html html=content %}
diff --git a/_layouts/poetry.html b/_layouts/poetry.html new file mode 100644 index 0000000..dc6c5e8 --- /dev/null +++ b/_layouts/poetry.html @@ -0,0 +1,18 @@ +--- +layout: wrapper +--- +
+ +
+
+
+ {{ content }} +
+
+
+{% include share.html %} diff --git a/_layouts/post.html b/_layouts/post.html index 651f411..afb4e7c 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,137 +1,39 @@ --- layout: wrapper -permalink: "/:title" --- -