├── .gitignore ├── LICENSE ├── README.md ├── archetypes ├── default.md └── posts.md ├── assets ├── css │ ├── blog-post.css │ ├── bulma-divider.min.css │ ├── bulma-ribbon.min.css │ ├── bulma-rtl.css │ ├── bulma-rtl.css.map │ ├── bulma-rtl.min.css │ ├── bulma.css │ ├── bulma.css.map │ ├── bulma.min.css │ ├── code-highlighting │ │ ├── dark.css │ │ └── light.css │ ├── custom.css │ ├── landing.css │ ├── minty │ │ └── bulmaswatch.min.css │ └── tooltip.css ├── network │ ├── netjsonWorker.js.js │ ├── netjsongraph-theme.css │ ├── netjsongraph.css │ ├── netjsongraph.js │ └── networkg6.js └── search │ ├── app.css │ └── app.js ├── exampleSite ├── archetypes │ ├── notes.md │ └── project.md ├── config.yaml ├── content │ ├── about.md │ ├── esl │ │ ├── _index.md │ │ ├── assets │ │ │ ├── 00.The-Elements-of-Statistical-Learning │ │ │ │ └── 10dsphere-volume-vs-radius.png │ │ │ ├── 04.shrinkage-methods │ │ │ │ └── shrinkage-lq-norm.png │ │ │ └── misc │ │ │ │ ├── timezones-1.jpg │ │ │ │ └── timezones-2.jpg │ │ ├── gauss-markov-theorem.md │ │ ├── linear-methods-for-regresssion.md │ │ └── the-elements-of-statistical-learning.md │ ├── graph │ │ └── _index.md │ ├── posts │ │ ├── _index.md │ │ └── articles │ │ │ └── 2015-05-10-bayesian.md │ ├── projects │ │ ├── assets │ │ │ └── tutorials │ │ │ │ ├── backlink-box.png │ │ │ │ ├── backlink-notes.jpg │ │ │ │ └── graph-of-notes.jpg │ │ ├── esl.md │ │ ├── snm.md │ │ └── tutorials.md │ ├── snm │ │ ├── _index.md │ │ ├── assets │ │ │ ├── limitations-srm-contd-and-coding │ │ │ │ ├── adaptation-of-neurons.png │ │ │ │ ├── population-vector-coding.png │ │ │ │ ├── reversed-ipsp.png │ │ │ │ ├── saturation.png │ │ │ │ ├── simple-spike-coding-model-of-visual.png │ │ │ │ └── synchronized-for-same-objects.png │ │ │ ├── synchronized-oscillations-and-locking │ │ │ │ ├── step-like-population-activity.ggb │ │ │ │ └── step-like-population-activity.png │ │ │ └── tf_synchro_bursting │ │ │ │ ├── raster_bursting.png │ │ │ │ ├── time_evol_bursting.png │ │ │ │ └── trajectory_ps.png │ │ ├── limitations-srm-contd-and-coding.md │ │ ├── single-neuron-model.md │ │ └── spiking-neuron-models-club.md │ ├── tutorials │ │ ├── _index.md │ │ ├── assets │ │ │ ├── command-palette │ │ │ │ ├── command-palette-demo.png │ │ │ │ ├── command-palette-note-commands-demo-less.png │ │ │ │ └── command-palette-note-commands-demo.png │ │ │ ├── graph-of-connected-articles │ │ │ │ ├── graph-alpha.png │ │ │ │ ├── graph-page.png │ │ │ │ └── graph.png │ │ │ ├── link-articles │ │ │ │ └── current-ref.png │ │ │ ├── nav-buttons-at-bottom │ │ │ │ └── lyket.png │ │ │ └── tutorials │ │ │ │ ├── backlink-box.png │ │ │ │ ├── backlink-notes.jpg │ │ │ │ └── graph-of-notes.jpg │ │ ├── command-palette.md │ │ ├── comment-system.md │ │ ├── embed-articles.md │ │ ├── graph-of-connected-articles.md │ │ ├── how-to-use.md │ │ ├── link-articles.md │ │ ├── link-to-other-page.md │ │ ├── references.md │ │ └── upvote-button-at-bottom.md │ └── typography.md ├── layouts │ ├── index.html │ └── partials │ │ └── home │ │ └── hero.html └── static │ ├── CNAME │ ├── home │ ├── undraw_Creative_woman_re_u5tk.png │ └── undraw_creative_woman_re_u5tk.svg │ └── projects │ ├── esl.png │ ├── srm.png │ ├── undraw_dark_analytics_re_2kvy.svg │ ├── undraw_design_thinking_re_644h.svg │ ├── undraw_good_team_m-7-uu.svg │ ├── undraw_tutorial_video_vtd1.png │ ├── undraw_video_influencer_-9-oyy.svg │ ├── undraw_video_influencer_9oyy.png │ └── undraw_virtual_assistant_jjo2.png ├── images ├── hugo-connectome-article-page-links.png ├── hugo-connectome-command-palette-demo.png ├── hugo-connectome-command-palette-note-commands-demo.png ├── hugo-connectome-command-palette.png ├── hugo-connectome-graph.png ├── hugo-connectome-multiple-notebooks.png ├── hugo-connectome-preview-double-bracket-links.png ├── hugo-connectome-wide-connectome.png ├── hugo-connectome-wide-layout.png ├── note-graph.png ├── screenshot.png └── tn.png ├── layouts ├── 404.html ├── _default │ ├── baseof.html │ ├── baseof.json │ ├── index.json │ ├── list.data.json │ ├── list.html │ ├── list.network.json │ ├── list.networkjq.json │ ├── single.html │ ├── single.simple.html │ ├── taxonomy.html │ └── terms.html ├── graph │ └── list.html ├── index.html ├── partials │ ├── breadcrumb.html │ ├── comments │ │ ├── disqus.html │ │ ├── giscus-comments.html │ │ └── utterances-comments.html │ ├── extensions │ │ ├── applausebutton.html │ │ ├── command-palette.html │ │ ├── fontawesome.html │ │ ├── hypothesis.html │ │ ├── lyket.html │ │ ├── mathjax.html │ │ ├── mermaid.html │ │ ├── plotly.html │ │ └── plotlyjs.html │ ├── favicon.html │ ├── footer.html │ ├── garden │ │ └── garden-identifier.html │ ├── home │ │ └── hero.html │ ├── layouts │ │ ├── cards-below-article.html │ │ └── cards-side-of-article.html │ ├── link_back_project.html │ ├── list-pages-by-cards-normal-order.html │ ├── list-pages-by-cards.html │ ├── list │ │ ├── card-simple.html │ │ ├── card-wiki.html │ │ ├── card.html │ │ ├── column.html │ │ ├── menu.html │ │ ├── page-summary-card.html │ │ ├── subsections.html │ │ ├── tags.html │ │ ├── tree-menu-style.html │ │ └── tree.html │ ├── menu.html │ ├── meta │ │ ├── name-author.html │ │ └── ogimage.html │ ├── nav-buttons.html │ ├── network │ │ ├── cards-content-double-bracket-multi-col.html │ │ ├── cards-content-double-bracket.html │ │ ├── cards-links-from.html │ │ ├── cards-links-to-multi-col.html │ │ ├── cards-links-to.html │ │ ├── currentref.html │ │ ├── dynamic-backlink-multi-col.html │ │ ├── dynamic-backlink.html │ │ ├── graph-modal.html │ │ ├── graph.html │ │ ├── graphg6.html │ │ ├── linkcard.html │ │ ├── local-graph-g6.html │ │ ├── local-graph.html │ │ └── related-articles.html │ ├── page-summary.html │ ├── pagination.html │ ├── post │ │ ├── byauthor.html │ │ ├── category-link.html │ │ ├── content.html │ │ ├── header.html │ │ ├── meta.html │ │ ├── next-prev.html │ │ ├── related-content.html │ │ ├── tag-link.html │ │ └── toc-bare.html │ ├── profile │ │ ├── author.html │ │ ├── citethis.html │ │ ├── listauthors.html │ │ └── title.html │ ├── refererences │ │ ├── card-references.html │ │ ├── card-supplementary.html │ │ ├── references-plain.html │ │ └── supplementary-plain.html │ ├── related-content.html │ ├── site-verification.html │ ├── terms │ │ └── summary.html │ └── toc.html ├── posts │ ├── list.html │ └── single.html ├── project │ ├── list.html │ └── single.html ├── projects │ ├── list.html │ └── single.html ├── search │ └── list.html └── shortcodes │ ├── c.html │ ├── card.html │ ├── cite.html │ ├── e.html │ ├── echarts.html │ ├── figure.html │ ├── graph.html │ ├── m.html │ ├── math.html │ ├── mermaid.html │ ├── message.html │ ├── plotly.html │ ├── rawhtml.html │ └── typeform-button.html ├── static ├── images │ ├── home │ │ ├── undraw_meditating_0nae.svg │ │ └── undraw_science_fqhl.svg │ ├── icons │ │ ├── agency.svg │ │ ├── airtable.svg │ │ ├── algolia.svg │ │ ├── blog.svg │ │ ├── bootstrap.svg │ │ ├── brunch.svg │ │ ├── bulma.svg │ │ ├── contentful.svg │ │ ├── datocms.svg │ │ ├── directus.svg │ │ ├── documentation.svg │ │ ├── eleventy.svg │ │ ├── firebase.svg │ │ ├── forestry.svg │ │ ├── formspree.svg │ │ ├── formstack.svg │ │ ├── gatsby.svg │ │ ├── ghost.svg │ │ ├── github.svg │ │ ├── gridsome.svg │ │ ├── hexo.svg │ │ ├── hugo.svg │ │ ├── jekyll.svg │ │ ├── mailchimp.svg │ │ ├── metalsmith.svg │ │ ├── middleman.svg │ │ ├── mkdocs.svg │ │ ├── netlify.svg │ │ ├── netlifycms.svg │ │ ├── no-cms.svg │ │ ├── nocms.svg │ │ ├── noun_Square Abstract_327754.svg │ │ ├── noun_Triangle Abstract_327762.svg │ │ ├── noun_Twelve Triangles_327786.svg │ │ ├── noun_creating_327731.svg │ │ ├── noun_down_329586.svg │ │ ├── noun_triangles_327743.svg │ │ ├── noun_triangles_329583.svg │ │ ├── nuxt.svg │ │ ├── pelican.svg │ │ ├── portfolio.svg │ │ ├── prismic.svg │ │ ├── sanity.svg │ │ ├── sass.svg │ │ ├── scss.svg │ │ ├── snipcart.svg │ │ ├── stackbit.svg │ │ ├── staticman.svg │ │ ├── tailwind.svg │ │ ├── unibit.svg │ │ ├── vuepress.svg │ │ ├── w3css.svg │ │ └── wordpress.svg │ ├── logos │ │ ├── logo-banner-margin.png │ │ ├── logo-banner.png │ │ └── logo-square.png │ ├── search │ │ └── search-by-algolia-light-background.svg │ └── social │ │ ├── github.svg │ │ ├── linkedin.svg │ │ ├── medium.svg │ │ └── twitter.svg ├── img │ ├── 404.png │ ├── projects │ │ └── default.svg │ └── splash │ │ ├── undraw_to_the_moon_v1mv.png │ │ └── undraw_to_the_moon_v1mv.svg ├── js │ ├── bulma.js │ ├── clip.js │ ├── clipboard.min.js │ ├── fastsearch.js │ ├── fuse.min.js │ ├── lazysizes.min.js │ ├── plotly-latest.min.js │ └── smoothscroll.js ├── logos │ ├── logo-banner-margin.png │ ├── logo-banner.png │ └── logo-square.png └── search │ └── search-by-algolia-light-background.svg └── theme.toml /.gitignore: -------------------------------------------------------------------------------- 1 | # General 2 | .DS_Store 3 | .AppleDouble 4 | .LSOverride 5 | 6 | # Icon must end with two \r 7 | Icon 8 | 9 | 10 | # Thumbnails 11 | ._* 12 | 13 | # Files that might appear in the root of a volume 14 | .DocumentRevisions-V100 15 | .fseventsd 16 | .Spotlight-V100 17 | .TemporaryItems 18 | .Trashes 19 | .VolumeIcon.icns 20 | .com.apple.timemachine.donotpresent 21 | 22 | # Directories potentially created on remote AFP share 23 | .AppleDB 24 | .AppleDesktop 25 | Network Trash Folder 26 | Temporary Items 27 | .apdisk 28 | 29 | # Hugo 30 | resources/_gen 31 | exampleSite/resources/_gen 32 | .vscode/* 33 | *.code-workspace 34 | 35 | # Local History for Visual Studio Code 36 | .history/ 37 | 38 | .hugo_build.lock -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Lei Ma 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Hugo Connectome Theme 2 | 3 | A [Hugo](http://gohugo.io/) theme for online community notes with backlinks. 4 | 5 | 6 | | graph | links and backlinks | command palette | 7 | |----|----|----| 8 | | ![](images/hugo-connectome-graph.png) | ![](images/hugo-connectome-wide-connectome.png) | ![](images/hugo-connectome-command-palette-demo.png) ![](images/hugo-connectome-command-palette-note-commands-demo.png) | 9 | 10 | 11 | 12 | | preview links | Multiple Topics/Notebooks | 13 | |----|----| 14 | | ![](images/hugo-connectome-preview-double-bracket-links.png) | ![](images/hugo-connectome-multiple-notebooks.png) | 15 | 16 | 17 | ## How to Use 18 | 19 | > If one is not familiar with Hugo, the official website has a nice tutorial: [Hugo Quickstart and Basics](https://gohugo.io/getting-started/quick-start/). 20 | 21 | Tested on `hugo v0.111.3+extended darwin/amd64` 22 | 23 | ### Starting from Scratch 24 | 25 | Simply fork [this repo](https://github.com/kausalflow/hugo-connectome-theme-demo) and modify the config file `config.yaml`. 26 | 27 | ### Use this theme in an existing Hugo site 28 | 29 | - Add the theme `git submodule add https://github.com/kausalflow/connectome themes/connectome`; 30 | - Use the contents in `themes/connectome/exampleSite` as boilerplate. 31 | 32 | 33 | ## Acknowledgement 34 | 35 | - This theme is developed on top of [the Hugo Bulma theme](https://github.com/jeblister/bulma/). 36 | - The network graph is visualized using [AntV G6](https://g6.antv.vision/). 37 | - We are using [ninja-keys](https://github.com/ssleptsov/ninja-keys) for our command palette. 38 | 39 | -------------------------------------------------------------------------------- /archetypes/default.md: -------------------------------------------------------------------------------- 1 | +++ 2 | +++ 3 | -------------------------------------------------------------------------------- /archetypes/posts.md: -------------------------------------------------------------------------------- 1 | +++ 2 | description = "" 3 | draft = true 4 | categories = [""] 5 | tags = ["", ""] 6 | +++ -------------------------------------------------------------------------------- /assets/css/blog-post.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; 3 | } 4 | 5 | .section.blog { 6 | background-color: #fff; 7 | } 8 | 9 | .blog-post>p { 10 | font-size: 1.6em; 11 | max-width: 1000px !important; 12 | margin-left: auto !important; 13 | margin-right: auto !important; 14 | } 15 | 16 | .blog-post>ul { 17 | font-size: 1.6em; 18 | max-width: 1000px !important; 19 | margin-left: auto !important; 20 | margin-right: auto !important; 21 | padding-left: 1em; 22 | } 23 | 24 | .blog-post>ol { 25 | font-size: 1.6em; 26 | max-width: 1000px !important; 27 | margin-left: auto !important; 28 | margin-right: auto !important; 29 | padding-left: 1em; 30 | } 31 | 32 | .blog-post>h1 { 33 | font-size: 1.6em; 34 | max-width: 1000px !important; 35 | margin-left: auto !important; 36 | margin-right: auto !important; 37 | } 38 | 39 | .blog-post>h2 { 40 | font-size: 1.6em; 41 | max-width: 1000px !important; 42 | margin-left: auto !important; 43 | margin-right: auto !important; 44 | } 45 | 46 | .blog-post>h3 { 47 | font-size: 1.6em; 48 | max-width: 1000px !important; 49 | margin-left: auto !important; 50 | margin-right: auto !important; 51 | } 52 | 53 | .blog-post>h4 { 54 | font-size: 1.6em; 55 | max-width: 1000px !important; 56 | margin-left: auto !important; 57 | margin-right: auto !important; 58 | } 59 | 60 | .blog-post>h5 { 61 | font-size: 1.6em; 62 | max-width: 1000px !important; 63 | margin-left: auto !important; 64 | margin-right: auto !important; 65 | } 66 | 67 | .blog-post>div { 68 | font-size: 1.6em; 69 | max-width: 1000px !important; 70 | margin-left: auto !important; 71 | margin-right: auto !important; 72 | } 73 | 74 | .blog-post>article.message { 75 | margin-top: 2em; 76 | margin-bottom: 3em; 77 | font-size: 1.6em; 78 | max-width: 1000px !important; 79 | margin-left: auto !important; 80 | margin-right: auto !important; 81 | } 82 | 83 | .footnotes>hr { 84 | margin-top: 5em; 85 | margin-bottom: 5em; 86 | } 87 | .footnotes>ol { 88 | font-size: 1.2em; 89 | max-width: 1000px !important; 90 | margin-left: auto !important; 91 | margin-right: auto !important; 92 | } -------------------------------------------------------------------------------- /assets/css/bulma-divider.min.css: -------------------------------------------------------------------------------- 1 | @-webkit-keyframes spinAround{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spinAround{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.is-divider,.is-divider-vertical{display:block;position:relative;border-top:.1rem solid #e95420;height:.1rem;margin:2rem 0;text-align:center}.is-divider-vertical[data-content]::after,.is-divider[data-content]::after{background:#fff;color:#e95420;content:attr(data-content);display:inline-block;font-size:.75rem;padding:.4rem .8rem;-webkit-transform:translateY(-1.1rem);transform:translateY(-1.1rem);text-align:center}@media screen and (min-width:769px),print{.is-divider-vertical{display:block;-webkit-box-flex:0;-ms-flex:none;flex:none;width:auto;height:auto;padding:2rem;margin:0;position:relative;border-top:none;min-height:2rem}.is-divider-vertical::before{border-left:.1rem solid #e95420;bottom:1rem;content:"";display:block;left:50%;position:absolute;top:1rem;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.is-divider-vertical[data-content]::after{position:absolute;left:50%;top:50%;padding:.1rem;-webkit-transform:translateY(-50%) translateX(-50%);transform:translateY(-50%) translateX(-50%)}} 2 | -------------------------------------------------------------------------------- /assets/css/bulma-ribbon.min.css: -------------------------------------------------------------------------------- 1 | @keyframes spinAround{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}.has-ribbon{position:relative}.has-ribbon-left{position:relative}.has-ribbon-left .ribbon{right:auto;left:0;border-left:none;border-right:0.1rem solid #dbdbdb}.has-ribbon-bottom{position:relative}.has-ribbon-bottom .ribbon{top:auto;bottom:.5em}.ribbon{background-color:#fff;border:0.1rem solid #dbdbdb;border-right:none;color:#363636;font-size:1rem;justify-content:center;padding-left:0.75em;padding-right:0.75em;text-align:center;white-space:nowrap;position:absolute;top:.5em;right:0;font-weight:400;z-index:2}.ribbon.is-white:not(.is-outlined){background-color:#fff;border-color:transparent;color:#0a0a0a !important}.ribbon.is-white.is-outlined{background-color:transparent;border-color:#fff}.ribbon.is-black:not(.is-outlined){background-color:#0a0a0a;border-color:transparent;color:#fff !important}.ribbon.is-black.is-outlined{background-color:transparent;border-color:#0a0a0a}.ribbon.is-light:not(.is-outlined){background-color:#f5f5f5;border-color:transparent;color:#363636 !important}.ribbon.is-light.is-outlined{background-color:transparent;border-color:#f5f5f5}.ribbon.is-dark:not(.is-outlined){background-color:#363636;border-color:transparent;color:#f5f5f5 !important}.ribbon.is-dark.is-outlined{background-color:transparent;border-color:#363636}.ribbon.is-primary:not(.is-outlined){background-color:#00d1b2;border-color:transparent;color:#fff !important}.ribbon.is-primary.is-outlined{background-color:transparent;border-color:#00d1b2}.ribbon.is-link:not(.is-outlined){background-color:#3273dc;border-color:transparent;color:#fff !important}.ribbon.is-link.is-outlined{background-color:transparent;border-color:#3273dc}.ribbon.is-info:not(.is-outlined){background-color:#209cee;border-color:transparent;color:#fff !important}.ribbon.is-info.is-outlined{background-color:transparent;border-color:#209cee}.ribbon.is-success:not(.is-outlined){background-color:#23d160;border-color:transparent;color:#fff !important}.ribbon.is-success.is-outlined{background-color:transparent;border-color:#23d160}.ribbon.is-warning:not(.is-outlined){background-color:#ffdd57;border-color:transparent;color:rgba(0,0,0,0.7) !important}.ribbon.is-warning.is-outlined{background-color:transparent;border-color:#ffdd57}.ribbon.is-danger:not(.is-outlined){background-color:#ff3860;border-color:transparent;color:#fff !important}.ribbon.is-danger.is-outlined{background-color:transparent;border-color:#ff3860}.ribbon.is-small{font-size:.75rem}.ribbon.is-medium{font-size:1.25rem}.ribbon.is-large{font-size:1.5rem}.ribbon.is-outlined{background-color:transparent} 2 | -------------------------------------------------------------------------------- /assets/css/code-highlighting/dark.css: -------------------------------------------------------------------------------- 1 | .highlight, 2 | pre.highlight { 3 | background: #282c34; 4 | color: #abb2bf 5 | } 6 | 7 | .highlight pre { 8 | background: #282c34; 9 | color: white; 10 | padding: 1em; 11 | } 12 | 13 | .highlight .ge { 14 | font-style: italic 15 | } 16 | 17 | .highlight .gs { 18 | font-weight: 700 19 | } 20 | 21 | .highlight .ow { 22 | font-weight: 700 23 | } 24 | 25 | .highlight .n, 26 | .highlight .nf, 27 | .highlight .nn, 28 | .highlight .o, 29 | .highlight .p { 30 | color: #abb2bf 31 | } 32 | 33 | .highlight .c, 34 | .highlight .c1, 35 | .highlight .cm, 36 | .highlight .cp, 37 | .highlight .cs { 38 | color: #5c6370; 39 | font-style: italic 40 | } 41 | 42 | .highlight .sr, 43 | .highlight .ss { 44 | color: #56b6c2 45 | } 46 | 47 | .highlight .k, 48 | .highlight .kc, 49 | .highlight .kd, 50 | .highlight .kn, 51 | .highlight .kp, 52 | .highlight .kr, 53 | .highlight .kt { 54 | color: #c678dd 55 | } 56 | 57 | .highlight .l, 58 | .highlight .ld, 59 | .highlight .s, 60 | .highlight .s1, 61 | .highlight .s2, 62 | .highlight .sb, 63 | .highlight .sc, 64 | .highlight .sd, 65 | .highlight .se, 66 | .highlight .sh, 67 | .highlight .si, 68 | .highlight .sx { 69 | color: #98c379 70 | } 71 | 72 | .highlight .nt, 73 | .highlight .nx, 74 | .highlight .vi { 75 | color: #e06c75 76 | } 77 | 78 | .highlight .il, 79 | .highlight .m, 80 | .highlight .mf, 81 | .highlight .mh, 82 | .highlight .mi, 83 | .highlight .mo, 84 | .highlight .na { 85 | color: #d19a66 86 | } 87 | 88 | .highlight .bp, 89 | .highlight .nb, 90 | .highlight .nc, 91 | .highlight .nd, 92 | .highlight .ne, 93 | .highlight .ni, 94 | .highlight .nl, 95 | .highlight .no, 96 | .highlight .nv, 97 | .highlight .py, 98 | .highlight .vc, 99 | .highlight .vg { 100 | color: #e5c07b 101 | } 102 | 103 | .highlight .err { 104 | color: #fff; 105 | background-color: #e05252 106 | } 107 | 108 | .highlight .gd { 109 | color: #e05252 110 | } 111 | 112 | .highlight .gi { 113 | color: #43d08a 114 | } 115 | 116 | .highlight .w { 117 | color: #f8f8f2 118 | } 119 | 120 | .highlight .cpf { 121 | color: navy 122 | } 123 | 124 | .highlight .gu { 125 | color: #75715e 126 | } 127 | 128 | .highlight .lineno { 129 | color: #636d83; 130 | user-select: none 131 | } 132 | 133 | .highlight .hll { 134 | color: #abb2bf; 135 | background-color: #2c313a 136 | } 137 | 138 | .highlight .language-json .w+.s2 { 139 | color: #e06c75 140 | } 141 | 142 | .highlight .language-json .kc { 143 | color: #56b6c2 144 | } -------------------------------------------------------------------------------- /assets/css/code-highlighting/light.css: -------------------------------------------------------------------------------- 1 | .highlight, 2 | pre.highlight { 3 | background: whitesmoke; 4 | color: #383a42 5 | } 6 | 7 | 8 | .highlight pre { 9 | background: whitesmoke; 10 | font-size: 1em; 11 | } 12 | 13 | .highlight span { 14 | color: black; 15 | } 16 | 17 | .highlight .ge { 18 | font-style: italic 19 | } 20 | 21 | .highlight .gs { 22 | font-weight: 700 23 | } 24 | 25 | .highlight .ow { 26 | font-weight: 700 27 | } 28 | 29 | .highlight .n, 30 | .highlight .nf, 31 | .highlight .nn, 32 | .highlight .o, 33 | .highlight .p { 34 | color: #383a42 35 | } 36 | 37 | .highlight .c, 38 | .highlight .c1, 39 | .highlight .cm, 40 | .highlight .cp, 41 | .highlight .cs { 42 | color: #a0a1a7; 43 | font-style: italic 44 | } 45 | 46 | .highlight .sr, 47 | .highlight .ss { 48 | color: #0184bc 49 | } 50 | 51 | .highlight .k, 52 | .highlight .kc, 53 | .highlight .kd, 54 | .highlight .kn, 55 | .highlight .kp, 56 | .highlight .kr, 57 | .highlight .kt { 58 | color: #a626a4 59 | } 60 | 61 | .highlight .l, 62 | .highlight .ld, 63 | .highlight .s, 64 | .highlight .s1, 65 | .highlight .s2, 66 | .highlight .sb, 67 | .highlight .sc, 68 | .highlight .sd, 69 | .highlight .se, 70 | .highlight .sh, 71 | .highlight .si, 72 | .highlight .sx { 73 | color: #50a14f 74 | } 75 | 76 | .highlight .nt, 77 | .highlight .nx, 78 | .highlight .vi { 79 | color: #e45649 80 | } 81 | 82 | .highlight .il, 83 | .highlight .m, 84 | .highlight .mf, 85 | .highlight .mh, 86 | .highlight .mi, 87 | .highlight .mo, 88 | .highlight .na { 89 | color: #986801 90 | } 91 | 92 | .highlight .bp, 93 | .highlight .nb, 94 | .highlight .nc, 95 | .highlight .nd, 96 | .highlight .ne, 97 | .highlight .ni, 98 | .highlight .nl, 99 | .highlight .no, 100 | .highlight .nv, 101 | .highlight .py, 102 | .highlight .vc, 103 | .highlight .vg { 104 | color: #c18401 105 | } 106 | 107 | .highlight .err { 108 | color: #fff; 109 | background-color: #ff1414 110 | } 111 | 112 | .highlight .gd { 113 | color: #ff1414 114 | } 115 | 116 | .highlight .gi { 117 | color: #2db448 118 | } 119 | 120 | .highlight .w { 121 | color: #f8f8f2 122 | } 123 | 124 | .highlight .cpf { 125 | color: navy 126 | } 127 | 128 | .highlight .gu { 129 | color: #75715e 130 | } 131 | 132 | .highlight .lineno { 133 | color: #9d9d9f; 134 | user-select: none 135 | } 136 | 137 | .highlight .hll { 138 | color: #383a42; 139 | background-color: #f2f2f2 140 | } 141 | 142 | .highlight .language-json .w+.s2 { 143 | color: #e45649 144 | } 145 | 146 | .highlight .language-json .kc { 147 | color: #0184bc 148 | } -------------------------------------------------------------------------------- /assets/css/landing.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/assets/css/landing.css -------------------------------------------------------------------------------- /assets/css/tooltip.css: -------------------------------------------------------------------------------- 1 | /* Tooltip container */ 2 | .tooltip { 3 | position: relative; 4 | display: inline-block; 5 | border-bottom: 1px dotted black; 6 | /* If you want dots under the hoverable text */ 7 | } 8 | 9 | /* preview--card text */ 10 | .tooltip .tooltiptext { 11 | visibility: hidden; 12 | min-width: 300px; 13 | max-width: 400px; 14 | max-height: 500px; 15 | overflow: hidden; 16 | background-color: white; 17 | color: black; 18 | text-align: left; 19 | border-radius: 6px; 20 | border-color: black; 21 | border: 1px solid black; 22 | line-height: 1.2; 23 | 24 | /* Position the tooltip text */ 25 | position: absolute; 26 | z-index: 1; 27 | /* left: 0 ; right: 0; bottom: 0; */ 28 | top: 125%; 29 | left: 5%; 30 | margin-left: 10px; 31 | 32 | /* Fade in tooltip */ 33 | opacity: 0; 34 | transition: opacity 0.3s; 35 | } 36 | 37 | .tooltiptext > .tooltip_title { 38 | font-size: 80%; 39 | background-color: black; 40 | color: white; 41 | display: block; 42 | padding: 7px 10px 7px 10px; 43 | } 44 | 45 | .tooltip_content { 46 | font-size: 75%; 47 | display: block; 48 | padding: 5px 10px 5px 10px; 49 | } 50 | 51 | /* Tooltip arrow */ 52 | /* .tooltip .tooltiptext::after { 53 | content: ""; 54 | position: absolute; 55 | bottom: 100%; 56 | left: 50%; 57 | margin-left: -5px; 58 | border-width: 5px; 59 | border-style: solid; 60 | border-color: #555 transparent transparent transparent; 61 | } */ 62 | 63 | /* Show the tooltip text when you mouse over the tooltip container */ 64 | .tooltip:hover .tooltiptext { 65 | display: block; 66 | visibility: visible; 67 | opacity: 1; 68 | } 69 | 70 | -------------------------------------------------------------------------------- /assets/network/netjsongraph-theme.css: -------------------------------------------------------------------------------- 1 | .njg-overlay{ 2 | background: #fbfbfb; 3 | border-radius: 2px; 4 | border: 1px solid #ccc; 5 | color: #6d6357; 6 | font-family: Arial, sans-serif; 7 | font-family: sans-serif; 8 | font-size: 14px; 9 | line-height: 20px; 10 | height: auto; 11 | max-width: 400px; 12 | min-width: 200px; 13 | padding: 15px 15px; 14 | right: 40%; 15 | top: 10px; 16 | width: auto; 17 | /* visibility:hidden; */ 18 | } 19 | 20 | .njg-metadata{ 21 | background: #fbfbfb; 22 | border-radius: 2px; 23 | border: 1px solid #ccc; 24 | color: #6d6357; 25 | display: none; 26 | font-family: Arial, sans-serif; 27 | font-family: sans-serif; 28 | font-size: 14px; 29 | height: auto; 30 | left: 10px; 31 | max-width: 500px; 32 | min-width: 200px; 33 | padding: 0 15px; 34 | top: 10px; 35 | width: auto; 36 | } 37 | 38 | .njg-node{ 39 | fill: #fbfbfb; 40 | fill-opacity: 0.8; 41 | stroke-opacity: 0.5; 42 | stroke-width: 5px; 43 | stroke: red; 44 | } 45 | 46 | .njg-node:hover, 47 | .njg-node.njg-open { 48 | stroke: rgba(0, 0, 0, 0.2); 49 | } 50 | 51 | .njg-hidden { 52 | display: none !important; 53 | visibility: hidden !important; 54 | } 55 | 56 | .njg-tooltip{ 57 | font-family: sans-serif; 58 | font-size: 12px; 59 | fill: #333; 60 | opacity: 0.7; 61 | text-anchor: middle; 62 | } 63 | 64 | .njg-link { 65 | stroke: #777; 66 | stroke-width: 5; 67 | stroke-opacity: .5; 68 | cursor: pointer; 69 | } 70 | .njg-link:hover, 71 | .njg-link.njg-open{ 72 | stroke-width: 7; 73 | stroke-opacity: 1 74 | } 75 | 76 | .njg-overlay{ 77 | /* display: none; */ 78 | position: absolute; 79 | z-index: 11; 80 | } 81 | 82 | .njg-close{ 83 | cursor: pointer; 84 | position: absolute; 85 | right: 10px; 86 | top: 10px; 87 | } 88 | .njg-close:before { content: "\2716"; } 89 | 90 | .njg-metadata{ 91 | display: none; 92 | position: absolute; 93 | z-index: 12; 94 | } 95 | 96 | .njg-node{ cursor: pointer } 97 | .njg-link{ cursor: pointer } 98 | 99 | #njg-select-group { 100 | text-align: center; 101 | box-shadow: 0 0 10px #ccc; 102 | position: fixed; 103 | left: 50%; 104 | top: 50%; 105 | width: 50%; 106 | margin-top: -7.5em; 107 | margin-left: -25%; 108 | padding: 5em 2em; 109 | } 110 | 111 | #njg-select-group select { 112 | font-size: 2em; 113 | padding: 10px 15px; 114 | width: 50%; 115 | cursor: pointer; 116 | } 117 | 118 | #njg-select-group option { 119 | padding: 0.5em; 120 | } 121 | 122 | #njg-select-group option[value=""] { 123 | color: #aaa; 124 | } 125 | -------------------------------------------------------------------------------- /assets/network/netjsongraph.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/assets/network/netjsongraph.css -------------------------------------------------------------------------------- /assets/search/app.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: sans-serif; 3 | padding: 1em; 4 | } 5 | 6 | .ais-ClearRefinements { 7 | margin: 1em 0; 8 | } 9 | 10 | .ais-SearchBox { 11 | margin: 1em 0; 12 | } 13 | 14 | .ais-Pagination { 15 | margin-top: 1em; 16 | } 17 | 18 | .left-panel { 19 | float: left; 20 | width: 250px; 21 | } 22 | 23 | .right-panel { 24 | margin-left: 260px; 25 | } 26 | 27 | .ais-InstantSearch { 28 | max-width: 960px; 29 | overflow: hidden; 30 | margin: 0 auto; 31 | } 32 | 33 | .ais-Hits-item { 34 | margin-bottom: 1em; 35 | width: calc(50% - 1rem); 36 | } 37 | 38 | .ais-Hits-item img { 39 | margin-right: 1em; 40 | } 41 | 42 | .hit-name { 43 | margin-bottom: 0.5em; 44 | } 45 | 46 | .hit-description { 47 | color: #888; 48 | font-size: 14px; 49 | margin-bottom: 0.5em; 50 | } 51 | -------------------------------------------------------------------------------- /assets/search/app.js: -------------------------------------------------------------------------------- 1 | /* global instantsearch algoliasearch */ 2 | 3 | 4 | 5 | search.addWidgets([ 6 | instantsearch.widgets.searchBox({ 7 | container: '#searchbox', 8 | }), 9 | instantsearch.widgets.clearRefinements({ 10 | container: '#clear-refinements', 11 | }), 12 | instantsearch.widgets.refinementList({ 13 | container: '#cat-list', 14 | attribute: 'permalink', 15 | }), 16 | instantsearch.widgets.hits({ 17 | container: '#hits', 18 | templates: { 19 | item: ` 20 |
21 |
22 | {{#helpers.highlight}}{ "attribute": "title" }{{/helpers.highlight}} 23 |
24 |
25 | {{#helpers.highlight}}{ "attribute": "summary" }{{/helpers.highlight}} 26 |
27 |
{{tags}}
28 |
29 | `, 30 | }, 31 | }), 32 | instantsearch.widgets.pagination({ 33 | container: '#pagination', 34 | }), 35 | ]); 36 | 37 | search.start(); 38 | -------------------------------------------------------------------------------- /exampleSite/archetypes/notes.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "{{ replace .Name "-" " " | title }}" 3 | categories: 4 | - "" 5 | tags: 6 | - "" 7 | summary: "" 8 | authors: 9 | - Author A 10 | references: 11 | - name: References 1 12 | link: https://google.com 13 | date: {{ .Date }} 14 | type: project 15 | draft: false 16 | --- -------------------------------------------------------------------------------- /exampleSite/archetypes/project.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "{{ replace .Name "-" " " | title }}" 3 | images: # not required 4 | - path: /img/projects/default.svg # not required 5 | categories: 6 | - 7 | tags: 8 | - 9 | links: 10 | - 11 | summary: "" 12 | fields: 13 | members: # the makers of the tool 14 | - name: 15 | link: 16 | description: 17 | coordinators: 18 | - name: 19 | link: 20 | description: 21 | status: Done # In Progress 22 | notes: # Link to notes 23 | - name: 24 | link: 25 | date: {{ .Date }} 26 | draft: false 27 | --- -------------------------------------------------------------------------------- /exampleSite/content/about.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: ABOUT 3 | layout: page 4 | excerpt: '' 5 | date: 2016-03-24 6 | image: 7 | feature: 8 | credit: 9 | creditlink: 10 | --- 11 | 12 | We host reading clubs and seminars on neuroscience, machine learning, complex networks and intelligence. 13 | 14 | 15 | 16 | ## License & Source 17 | 18 | Articles on this website are published under CC BY-NC-SA license if no specific license is designated. 19 | 20 | 21 | ![](https://raw.github.com/opentf/GuokrBadge/master/cc/ccbyncsa.png) 22 | 23 | 24 | * This website is hosted on [GitHub](https://github.com/neuronstar/neuronstar.github.io) and generated by GitHub Pages (hugo). 25 | * [Computational Neuroscience Map](http://neuronstar.cc/comp-neurosci-map/) is written in [TiddlyMap](tiddlymap.org) and hosted statically on GitHub Pages. 26 | -------------------------------------------------------------------------------- /exampleSite/content/esl/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "The Element of Statistical Learning" 3 | description: "This is a set of notes" 4 | type: project 5 | --- -------------------------------------------------------------------------------- /exampleSite/content/esl/assets/00.The-Elements-of-Statistical-Learning/10dsphere-volume-vs-radius.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/esl/assets/00.The-Elements-of-Statistical-Learning/10dsphere-volume-vs-radius.png -------------------------------------------------------------------------------- /exampleSite/content/esl/assets/04.shrinkage-methods/shrinkage-lq-norm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/esl/assets/04.shrinkage-methods/shrinkage-lq-norm.png -------------------------------------------------------------------------------- /exampleSite/content/esl/assets/misc/timezones-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/esl/assets/misc/timezones-1.jpg -------------------------------------------------------------------------------- /exampleSite/content/esl/assets/misc/timezones-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/esl/assets/misc/timezones-2.jpg -------------------------------------------------------------------------------- /exampleSite/content/esl/gauss-markov-theorem.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Guass-Markov Theorem and Multiple Regression" 3 | date: 2016-09-01 4 | authors: 5 | - OctoMiao 6 | summary: Gauss-Markov Theorem 7 | type: project 8 | tags: 9 | - Statistics 10 | - "Gauss-Markov Theorem" 11 | links: 12 | - snm/limitations-srm-contd-and-coding.md 13 | - snm/single-neuron-model.md 14 | weight: 3 15 | --- 16 | 17 | 18 | ## Gauss-Markov 19 | 20 | 1. "**Least squares** estimates the parameters $\beta$ have the smallest variance among all linear unbiased estimates." 21 | 2. **Unbiased estimation** is not always good. 22 | 3. ridge regression 23 | 24 | ### Proof of 1 25 | 26 | 1. Model: $\theta = a^T \beta$ 27 | 2. Least square estimate of $\theta$: $\hat\theta = a^T \hat \beta = a^T ( \mathbf X^T \mathbf X )^{-1} \mathbf X^T \mathbf y = \mathbf c_0^T \mathbf y$ 28 | 3. This is unbiased: $E(a^T\hat\beta) = a^T\beta$ 29 | 4. Gauss-Markov theorem: If we have any other linear estimator $\tilde \theta = \mathbf c^T \mathbf y$ and $E(\mathbf c^T \mathbf y)=a^T \beta$, then $Var(a^T\hat \beta)\leq Var(\mathbf c^T \mathbf y)$. 30 | 5. To prove it we first write down the general form of a linear estimator. **Question:** is the general form of a linear estimator $\alpha (X^T X)^{-1} X^T + D$? 31 | 32 | 33 | 34 | Useful functions for the proof: 35 | 36 | 1. Variance: $Var(X) = E[ (X - \mu)^2 ]$. 37 | 2. [On wikipedia](https://en.wikipedia.org/wiki/Gauss%E2%80%93Markov_theorem#Proof) 38 | 39 | 40 | 1. MSE: $MSE(\tilde\theta) = E( (\tilde\theta -\theta)^2 ) = E( (\tilde \theta - E(\theta) + E(\theta) - \theta)^2 ) = E( (\tilde\theta - E(\theta))^2 ) + \cdots$ 41 | 2. MSE is $MSE(\tilde \theta) = Var(\tilde theta) + (E(\theta) -\theta)^2$ the second term is bias. 42 | 3. Least square is good but we can trade some bias to get a smaller variance sometimes. 43 | 4. Choices are variable subset selection, ridge regression. 44 | 45 | 46 | 47 | 1. Suppose new data is biased from the original data by a value $\epsilon_0$, the MSE using the original estimator is only the original MSE differed by a constant. Eq. 3.22 48 | 2. We always have a larger MSE????? I don't get this. 49 | 50 | 51 | ## Multiple Regression 52 | 53 | 1. Model: $f(X) = \beta_0 + \sum_{j=1}^p X_j \beta$ 54 | 2. For multiple dimensional inputs, the estimator has no correlations for different features. 55 | -------------------------------------------------------------------------------- /exampleSite/content/esl/linear-methods-for-regresssion.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Linear Methods for Regression" 3 | date: 2016-08-18 4 | authors: 5 | - OctoMiao 6 | summary: Linear regression, least squares 7 | type: project 8 | weight: 2 9 | --- 10 | 11 | 12 | ## Some Interesting Points 13 | 14 | 15 | 1. Geometrically speaking, linear regression methods finds the closest path from the true data to a hypersurface spanned by the data vectors. By definition, each set of data is viewed as a basis vector. The so called closed path to the hypersurface is basically the path that is perpendicular to the surface. Thus we know the prediction we are looking for is a projection of true data onto the hypersurface. 16 | 2. The argument above also indicates that degenerate data set, which contains data of the same direction, could cause problems since we have a redundant basis. 17 | 3. Distribution of the parameters can be obtained for some categories of data. It might be a normal distribution. 18 | 4. t-distribution, aka [student's t-distribution](https://en.wikipedia.org/wiki/Student%27s_t-distribution), is a category of distributions describing the deviation of estimated mean in a normal distribution from the true mean. 19 | 5. The tail of the estimated distribution approaches the actual tail distribution as the sample size increases. 20 | 6. Z score can be used to test the significance of the statistics. 21 | > "Roughly a Z score larger than two in absolute value is significantly nonzero at the p=0.05 level." 22 | > The author said in the caption of Table 3.2 23 | 7. [F statistic](https://en.wikipedia.org/wiki/F-statistic) 24 | 25 | 26 | Confusion: 27 | 28 | 1. Eqn 3.14: plug in the definition of z and read again. 29 | -------------------------------------------------------------------------------- /exampleSite/content/graph/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Graph of the whole knowledge base 3 | --- -------------------------------------------------------------------------------- /exampleSite/content/posts/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Blog Posts" 3 | --- -------------------------------------------------------------------------------- /exampleSite/content/projects/assets/tutorials/backlink-box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/projects/assets/tutorials/backlink-box.png -------------------------------------------------------------------------------- /exampleSite/content/projects/assets/tutorials/backlink-notes.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/projects/assets/tutorials/backlink-notes.jpg -------------------------------------------------------------------------------- /exampleSite/content/projects/assets/tutorials/graph-of-notes.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/projects/assets/tutorials/graph-of-notes.jpg -------------------------------------------------------------------------------- /exampleSite/content/projects/snm.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Spiking Neuron Models" 3 | categories: 4 | - Neuroscience 5 | tags: 6 | - Introduction 7 | - Neuroscience 8 | links: 9 | - 10 | summary: Reading club for the book Spiking Neuron Models 11 | images: 12 | - "/projects/undraw_design_thinking_re_644h.svg" 13 | members: # the makers of the tool 14 | - name: Member AA 15 | link: https://google.com 16 | description: 17 | coordinators: 18 | - name: LM 19 | link: 20 | description: 21 | date: 2020-04-27T13:22:46+02:00 22 | status: Done 23 | sections: 24 | - snm 25 | references: 26 | - name: "Spiking Neuron Models: Single Neurons, Populations,Plasticity by Wulfram Gerstner and Werner M. Kistler." 27 | link: http://lcn.epfl.ch/~gerstner/SPNM/SPNM.html 28 | - name: "An Introduction to the Theory of Point Processes by D.J. Daley and D. Vere-Jones." 29 | link: https://github.com/neuronstar/spiking-neuron-models/issues/12 30 | --- 31 | 32 | ## What books are we reading? 33 | 34 | 1. [Spiking Neuron Models: Single Neurons, Populations,Plasticity](http://lcn.epfl.ch/~gerstner/SPNM/SPNM.html) by Wulfram Gerstner and Werner M. Kistler. 35 | 2. [An Introduction to the Theory of Point Processes](https://github.com/neuronstar/spiking-neuron-models/issues/12) by D.J. Daley and D. Vere-Jones. 36 | 37 | ## When and How 38 | 39 | The discussion is online through Skype. It is usually held during the weekends. 40 | 41 | ## More 42 | 43 | Please watch the GitHub repo: [neuronstar/spiking-neuron-models](https://github.com/neuronstar/spiking-neuron-models) 44 | -------------------------------------------------------------------------------- /exampleSite/content/projects/tutorials.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Connectome Tutorials" 3 | images: 4 | - "/projects/undraw_video_influencer_-9-oyy.svg" 5 | categories: 6 | - Tutorials 7 | tags: 8 | - Introduction 9 | - Tutorials 10 | members: # the makers of the tool 11 | - name: KausalFlow 12 | link: https://kausalflow.com 13 | description: 14 | coordinators: 15 | - name: KausalFlow 16 | link: https://kausalflow.com 17 | description: 18 | date: 2021-04-27T13:22:46+02:00 19 | status: Done 20 | sections: 21 | - tutorials 22 | --- 23 | 24 | This is a set of tutorials on how to use the connectome Hugo theme. 25 | 26 | 27 | The connectome Hugo theme is focusing on connecting notes with backlinks. Suppose a note A is linking to note B, note B should know that note A is linking to itself. In this setup, we immediately realize that we probably want to read about note A when viewing note B. 28 | 29 | 30 | {{< figure src="../assets/tutorials/backlink-notes.jpg" >}} 31 | 32 | 33 | The following is an example of such backlinks in this note {{< c "tutorials/embed-articles.md" >}} 34 | 35 | {{< figure src="../assets/tutorials/backlink-box.png" >}} 36 | 37 | 38 | What is more, the connectome Hugo theme also provides a {{< c "graph" "graph view of all the notes" >}}. 39 | 40 | {{< figure src="../assets/tutorials/graph-of-notes.jpg" >}} 41 | 42 | In this tutorial, we will demonstrate how to achieve this using the connectome Hugo theme. -------------------------------------------------------------------------------- /exampleSite/content/snm/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Spiking Neural Network" 3 | type: project 4 | --- -------------------------------------------------------------------------------- /exampleSite/content/snm/assets/limitations-srm-contd-and-coding/adaptation-of-neurons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/snm/assets/limitations-srm-contd-and-coding/adaptation-of-neurons.png -------------------------------------------------------------------------------- /exampleSite/content/snm/assets/limitations-srm-contd-and-coding/population-vector-coding.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/snm/assets/limitations-srm-contd-and-coding/population-vector-coding.png -------------------------------------------------------------------------------- /exampleSite/content/snm/assets/limitations-srm-contd-and-coding/reversed-ipsp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/snm/assets/limitations-srm-contd-and-coding/reversed-ipsp.png -------------------------------------------------------------------------------- /exampleSite/content/snm/assets/limitations-srm-contd-and-coding/saturation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/snm/assets/limitations-srm-contd-and-coding/saturation.png -------------------------------------------------------------------------------- /exampleSite/content/snm/assets/limitations-srm-contd-and-coding/simple-spike-coding-model-of-visual.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/snm/assets/limitations-srm-contd-and-coding/simple-spike-coding-model-of-visual.png -------------------------------------------------------------------------------- /exampleSite/content/snm/assets/limitations-srm-contd-and-coding/synchronized-for-same-objects.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/snm/assets/limitations-srm-contd-and-coding/synchronized-for-same-objects.png -------------------------------------------------------------------------------- /exampleSite/content/snm/assets/synchronized-oscillations-and-locking/step-like-population-activity.ggb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/snm/assets/synchronized-oscillations-and-locking/step-like-population-activity.ggb -------------------------------------------------------------------------------- /exampleSite/content/snm/assets/synchronized-oscillations-and-locking/step-like-population-activity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/snm/assets/synchronized-oscillations-and-locking/step-like-population-activity.png -------------------------------------------------------------------------------- /exampleSite/content/snm/assets/tf_synchro_bursting/raster_bursting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/snm/assets/tf_synchro_bursting/raster_bursting.png -------------------------------------------------------------------------------- /exampleSite/content/snm/assets/tf_synchro_bursting/time_evol_bursting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/snm/assets/tf_synchro_bursting/time_evol_bursting.png -------------------------------------------------------------------------------- /exampleSite/content/snm/assets/tf_synchro_bursting/trajectory_ps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/snm/assets/tf_synchro_bursting/trajectory_ps.png -------------------------------------------------------------------------------- /exampleSite/content/snm/single-neuron-model.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: notes 3 | title: "Single Neuron Models" 4 | date: 2016-03-18 5 | authors: 6 | - ErbB4 7 | summary: Neuron biological properties 8 | type: project 9 | links: 10 | - snm/limitations-srm-contd-and-coding.md 11 | - snm/single-neuron-model.md 12 | weight: 2 13 | --- 14 | 15 | 16 | ## Neuron biological properties 17 | 18 | Dendrites receive neurotransmitter and generate local post-synaptic potential (PSP), either excitatory by glutamate or inhibitory by GABA. Soma integrates all PSPs. Once membrane potential reaches the threshold, an action potential is generated. Action potentials are propagated via axon. 19 | 20 | ### Spike Response Model (SRM) 21 | 22 | In this model, membrane potential is denoted as u(t). When the neuron is at rest state, receiving no external stimulation, the membrane potential is called rest potential. 23 | 24 | 25 | $$u(t_0)=u_{\mathrm{rest}}.$$ 26 | 27 | 28 | When a presynaptic spike arrives, there is a local PSP, causing a small disturbance in membrane potential. 29 | 30 | $$u(t)-u_{\mathrm{rest}} = e_{ij}.$$ 31 | 32 | Throughout the notes, $i$ is always indicating the neuron we are measuring the potential, while $j$ is for the incoming signal. 33 | 34 | According to simplification rule, all PSPs are integrated linearly. 35 | 36 | $$u_i(t) =u_{\mathrm{rest}}+ \sum_{j} \sum_f \epsilon_{ij}(t - t_j^{(f)}) $$ 37 | 38 | in which $(f)$ shows the $j$ neurons can fire multiple times. 39 | 40 | However, when an action potential is generated, there is a dramatic membrane potential change (depolarization), and due to the electrophysiological property of channels, hyperpolarization phenomenon is observed. So the complete but simple presentation of membrane potential is 41 | 42 | $$u_i(t) =u_{\mathrm{rest}}+ \sum_{j} \sum_f \epsilon_{ij}(t - t_j^{(f)}) + \eta(t-\hat t_i),$$ 43 | 44 | where $\hat t_i$ is the moment when the action potential is triggered. 45 | 46 | 47 | 48 | ### Spike train 49 | 50 | When simulating a neural network, we don't care about the exact trajectory of membrane potential. 51 | so Dirac function is used to present an action potential. This provides the first step to computation, using firing times to present the spike train of a neuron. 52 | 53 | ### Limitation of SRM 54 | 55 | SRM cares about merely the most recent spike, however in real case, previous spikes could influence the reaction of the neuron to a later simulation. (for example, by changing membrane conductivity) 56 | -------------------------------------------------------------------------------- /exampleSite/content/snm/spiking-neuron-models-club.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: notes 3 | title: "Spiking Neuron Models Reading Club" 4 | date: 2016-03-18 5 | authors: 6 | - ErbB4 7 | summary: Introduction to reading club of spiking neuron models, schedule, and notice 8 | type: project 9 | links: 10 | - snm/limitations-srm-contd-and-coding.md 11 | - snm/single-neuron-model.md 12 | weight: 1 13 | --- 14 | 15 | 16 | ## What books are we reading? 17 | 18 | 1. [Spiking Neuron Models: Single Neurons, Populations,Plasticity](http://lcn.epfl.ch/~gerstner/SPNM/SPNM.html) by Wulfram Gerstner and Werner M. Kistler. 19 | 2. [An Introduction to the Theory of Point Processes](https://github.com/neuronstar/spiking-neuron-models/issues/12) by D.J. Daley and D. Vere-Jones. 20 | 21 | ## When and How 22 | 23 | The discussion is online through Skype. It is usually held during the weekends. 24 | 25 | ## More 26 | 27 | Please watch the GitHub repo: [neuronstar/spiking-neuron-models](https://github.com/neuronstar/spiking-neuron-models) 28 | -------------------------------------------------------------------------------- /exampleSite/content/tutorials/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Tutorials" 3 | description: "Tutorial articles for Hugo Connectome Theme" 4 | type: project 5 | --- -------------------------------------------------------------------------------- /exampleSite/content/tutorials/assets/command-palette/command-palette-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/tutorials/assets/command-palette/command-palette-demo.png -------------------------------------------------------------------------------- /exampleSite/content/tutorials/assets/command-palette/command-palette-note-commands-demo-less.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/tutorials/assets/command-palette/command-palette-note-commands-demo-less.png -------------------------------------------------------------------------------- /exampleSite/content/tutorials/assets/command-palette/command-palette-note-commands-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/tutorials/assets/command-palette/command-palette-note-commands-demo.png -------------------------------------------------------------------------------- /exampleSite/content/tutorials/assets/graph-of-connected-articles/graph-alpha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/tutorials/assets/graph-of-connected-articles/graph-alpha.png -------------------------------------------------------------------------------- /exampleSite/content/tutorials/assets/graph-of-connected-articles/graph-page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/tutorials/assets/graph-of-connected-articles/graph-page.png -------------------------------------------------------------------------------- /exampleSite/content/tutorials/assets/graph-of-connected-articles/graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/tutorials/assets/graph-of-connected-articles/graph.png -------------------------------------------------------------------------------- /exampleSite/content/tutorials/assets/link-articles/current-ref.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/tutorials/assets/link-articles/current-ref.png -------------------------------------------------------------------------------- /exampleSite/content/tutorials/assets/nav-buttons-at-bottom/lyket.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/tutorials/assets/nav-buttons-at-bottom/lyket.png -------------------------------------------------------------------------------- /exampleSite/content/tutorials/assets/tutorials/backlink-box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/tutorials/assets/tutorials/backlink-box.png -------------------------------------------------------------------------------- /exampleSite/content/tutorials/assets/tutorials/backlink-notes.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/tutorials/assets/tutorials/backlink-notes.jpg -------------------------------------------------------------------------------- /exampleSite/content/tutorials/assets/tutorials/graph-of-notes.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/content/tutorials/assets/tutorials/graph-of-notes.jpg -------------------------------------------------------------------------------- /exampleSite/content/tutorials/command-palette.md: -------------------------------------------------------------------------------- 1 | --- 2 | type: project 3 | title: "Command Palette" 4 | date: 2021-05-01 5 | tags: 6 | - Tutorial 7 | authors: 8 | - KausalFlow 9 | links: 10 | - tutorials/_index.md 11 | weight: 8 12 | --- 13 | 14 | To use the command palette, press Command + k (on Mac) or Windows + k (on Windows). 15 | 16 | {{< figure src="../assets/command-palette/command-palette-demo.png" >}} 17 | 18 | There are some generic commands we can use on every page, e.g., 19 | 20 | - `Home`: navigate back to home page, 21 | - `View Graph`: navigate to the graph page, 22 | - `All Notebooks`: navigate to the notebook list, 23 | - `Search`: search notes by title, which is less powerful than the search bar on the home page. 24 | 25 | On note pages, we can use note specific commands, e.g., 26 | 27 | - `Current Note ID`: copy the current note id to the clipboard, 28 | - `Backlinks`: show backlinks and go to backlinks, 29 | - `Links`: show all the notes that the current note linked to, 30 | - `References`: list all the references and go to the links if there is a url. 31 | 32 | {{< figure src="../assets/command-palette/command-palette-note-commands-demo.png" caption="Depending on the note, not every command is available." >}} 33 | 34 | The command palette is enabled by default. If one would like to disable it, 35 | 36 | ```yaml 37 | params: 38 | # some other configs 39 | # ... 40 | command: false 41 | ``` 42 | 43 | -------------------------------------------------------------------------------- /exampleSite/content/tutorials/comment-system.md: -------------------------------------------------------------------------------- 1 | --- 2 | type: project 3 | title: "Comments" 4 | date: 2021-05-01 5 | tags: 6 | - Tutorial 7 | authors: 8 | - KausalFlow 9 | links: 10 | - tutorials/_index.md 11 | weight: 2 12 | --- 13 | 14 | Hugo connectome supports two comment systems: 15 | 16 | - utteranc.es, and 17 | - giscus. 18 | 19 | {{< message class="warning" title="Optional" >}} 20 | This step is optional. It is up to the user to decide whether to configure a comment system or not. 21 | {{< /message >}} 22 | 23 | Here is a demo config. We put both giscus and utterances here but we only `use: "giscus"`. 24 | 25 | 26 | ```yaml 27 | comments: 28 | use: "giscus" 29 | giscus: 30 | repo: "datumorphism/comments" 31 | repo_id: "MDEwOlJlcG9zaXRvcnkxNjU5MDkyNDI=" 32 | category: "Comments" 33 | category_id: "DIC_kwDOCeOS-s4B-Zxx" 34 | utterances: # comment system: utterances (https://utteranc.es/) parameters 35 | repo: "datumorphism/comments" # repo="[ENTER REPO HERE]", the comments will appear as issues in this repository on github. 36 | term: pathname # issue-term="pathname" 37 | theme: github-light # theme="github-light" 38 | ``` 39 | 40 | ## utteranc.es 41 | 42 | The comment box is using [utteranc.es](https://utteranc.es/). This is a demo configuration in the `config.yaml` file. 43 | 44 | ```yaml 45 | comments: 46 | use: "utterances" 47 | utterances: # comment system: utterances (https://utteranc.es/) parameters 48 | repo: "kausalflow/hugo-connectome-theme-demo" # repo="[ENTER REPO HERE]", the comments will appear as issues in this repository on github. 49 | term: pathname # issue-term="pathname" 50 | theme: github-light # theme="github-light" 51 | ``` 52 | 53 | ## giscus 54 | 55 | See official docs: [giscus.app](https://giscus.app/) 56 | 57 | ```yaml 58 | comments: 59 | use: "giscus" 60 | giscus: 61 | repo: "kausalflow/hugo-connectome-theme-demo" 62 | repo_id: "just put your id here" 63 | category: "Your category" 64 | category_id: "bla bla bla" 65 | ``` -------------------------------------------------------------------------------- /exampleSite/content/tutorials/embed-articles.md: -------------------------------------------------------------------------------- 1 | --- 2 | type: project 3 | title: "Embed Articles" 4 | summary: "Embed an article using the shortcode" 5 | date: 2021-05-08 6 | authors: 7 | - KausalFlow 8 | tags: 9 | - Tutorial 10 | links: 11 | - tutorials/_index.md 12 | - tutorials/link-articles.md 13 | - tutorials/graph-of-connected-articles.md 14 | weight: 6 15 | --- 16 | 17 | Embed an article using the shortcode 18 | 19 | 20 | ```go 21 | {{}} 22 | ``` 23 | 24 | Here is the result: 25 | 26 | 27 | {{< e "tutorials/graph-of-connected-articles.md" >}} 28 | 29 | The shortcode can take two arguments: 30 | 31 | 32 | ```go 33 | {{}} 34 | ``` 35 | 36 | 37 | {{< e "tutorials/graph-of-connected-articles.md" "This is a custom title" >}} -------------------------------------------------------------------------------- /exampleSite/content/tutorials/graph-of-connected-articles.md: -------------------------------------------------------------------------------- 1 | --- 2 | type: project 3 | title: "Graph of Connected Articles" 4 | date: 2021-05-01 5 | tags: 6 | - Tutorial 7 | authors: 8 | - KausalFlow 9 | links: 10 | - tutorials/link-articles.md 11 | - tutorials/_index.md 12 | weight: 1 13 | --- 14 | 15 | All articles that are connected by {{< c "tutorials/link-articles.md" "using links in metadata">}} will show up in the graph. Articles that are not connected will be hidden. 16 | 17 | {{< figure src="../assets/graph-of-connected-articles/graph-page.png" >}} 18 | 19 | 20 | We can move the canvas or drag the notes. Hover on one of the nodes to highlight the connections and see some details about the note. 21 | 22 | {{< figure src="../assets/graph-of-connected-articles/graph.png" >}} 23 | -------------------------------------------------------------------------------- /exampleSite/content/tutorials/how-to-use.md: -------------------------------------------------------------------------------- 1 | --- 2 | type: project 3 | title: "How to Use" 4 | date: 2021-05-01 5 | tags: 6 | - Tutorial 7 | authors: 8 | - KausalFlow 9 | links: 10 | - tutorials/_index.md 11 | weight: 0 12 | --- 13 | 14 | - Load the themes in a folder inside `themes`. Read the [docs by Hugo](https://gohugo.io/getting-started/quick-start/#step-3-add-a-theme) for more details. 15 | - Use the `config.yaml` file in the `exampleSite` folder. -------------------------------------------------------------------------------- /exampleSite/content/tutorials/link-articles.md: -------------------------------------------------------------------------------- 1 | --- 2 | type: project 3 | title: "Link Articles" 4 | date: 2021-05-01 5 | tags: 6 | - Tutorial 7 | authors: 8 | - KausalFlow 9 | links: 10 | - tutorials/_index.md 11 | weight: 4 12 | --- 13 | 14 | There are three different ways to link notes: 15 | 16 | - use `links` in the note metadata, this will be covered in the current note, 17 | - use shortcode `c` to add a hyperlink in the texts, see {{< c "tutorials/link-to-other-page.md" >}}, 18 | - use shortcode `e` to embed another note in the current note, see {{< c "tutorials/embed-articles.md" >}}. 19 | 20 | All three methods will generate backlinks for the notes linked to. 21 | 22 | Articles can be linked by adding a the reference of the target post to the meta data of the current post, e.g., 23 | 24 | ```yaml 25 | links: 26 | - snm/single-neuron-model.md 27 | - tags/gauss-markov-theorem 28 | ``` 29 | 30 | The ref of the target post can be 31 | 32 | - the path to the markdown file inside the `content` folder, such as `snm/single-neuron-model.md`, 33 | - the path to the tag page, such as `tags/gauss-markov-theorem`. 34 | 35 | If one needs to find the ref of a post, it is found on the right of the content. For example, the following screenshot shows the ref of this article. 36 | 37 | {{< figure src="../assets/link-articles/current-ref.png" title="Current Ref" caption="Current ref of the post is shown on the right of the articles." >}} 38 | 39 | 40 | -------------------------------------------------------------------------------- /exampleSite/content/tutorials/link-to-other-page.md: -------------------------------------------------------------------------------- 1 | --- 2 | type: project 3 | title: "Link to Another Page and Show Hovercard" 4 | date: 2021-05-08 5 | authors: 6 | - KausalFlow 7 | tags: 8 | - Tutorial 9 | links: 10 | - tutorials/_index.md 11 | weight: 5 12 | --- 13 | 14 | Apart from the normal markdown links, e.g., 15 | 16 | ```markdown 17 | [this link](snm/single-neuron-model) 18 | ``` 19 | 20 | we can also link to other page using the following code. 21 | 22 | ```go 23 | {{}} 24 | ``` 25 | 26 | The result will be this: {{< c "tutorials/embed-articles.md" >}}. By hovering on this link, a preview of the summary of the target post. 27 | 28 | 29 | {{< message class="danger" title="Do not Ignore the Spaces" >}} 30 | 31 | Please make sure the is at least one space between the different components of the shortcode. The following shortcode will show the link just fine but will fail in creating backlinks. 32 | 33 | ```go 34 | {{}} 35 | ``` 36 | 37 | {{< /message >}} 38 | 39 | ## Specify Title 40 | 41 | One can also specify a custom title for the link text. 42 | 43 | ```go 44 | {{}} 45 | ``` 46 | 47 | 48 | Demo: {{< c "tutorials/embed-articles.md" "Blabla Title" >}} -------------------------------------------------------------------------------- /exampleSite/content/tutorials/references.md: -------------------------------------------------------------------------------- 1 | --- 2 | type: project 3 | title: "Adding References" 4 | date: 2021-05-08 5 | authors: 6 | - KausalFlow 7 | tags: 8 | - Tutorial 9 | links: 10 | - tutorials/_index.md 11 | references: 12 | - name: "Hugo (This is a demo reference)" 13 | link: "https://gohugo.com" 14 | key: "hugo" 15 | weight: 7 16 | --- 17 | 18 | One could also add references to the post. Just add the following to the meta data of the post. 19 | 20 | ```yaml 21 | references: 22 | - name: "Hugo (This is a demo reference)" 23 | link: "https://gohugo.com" 24 | ``` 25 | 26 | The result is shown on the right. 27 | 28 | 29 | Inline citation of a reference is also possible if we give the reference a key. 30 | 31 | ```yaml 32 | references: 33 | - name: "Hugo (This is a demo reference)" 34 | link: "https://gohugo.com" 35 | key: "hugo" 36 | ``` 37 | 38 | And in text, do the following 39 | 40 | ```go 41 | This is some description of hugo[^hugo]. 42 | 43 | [^hugo]: {{}} 44 | ``` 45 | 46 | The following paragraph is the rendered result of the above text. 47 | 48 | This is some description of hugo[^hugo]. 49 | 50 | [^hugo]: {{< cite key="hugo" >}} -------------------------------------------------------------------------------- /exampleSite/content/tutorials/upvote-button-at-bottom.md: -------------------------------------------------------------------------------- 1 | --- 2 | type: project 3 | title: "Upvote Button at the Bottom of the Page" 4 | date: 2021-05-01 5 | tags: 6 | - Tutorial 7 | authors: 8 | - KausalFlow 9 | links: 10 | - tutorials/_index.md 11 | weight: 3 12 | --- 13 | 14 | The small upvote and downvote nav buttons at the bottom right of the page are make with [lyket](https://lyket.dev). 15 | 16 | {{< message class="warning" title="Optional" >}} 17 | This step is optional. It is up to the user to decide whether to configure a upvote or not. 18 | {{< /message >}} 19 | 20 | This is a demo configuration. 21 | 22 | ```yaml 23 | lyket: 24 | api_key: "xxbadsjflkdjwe" 25 | lyket_type: "updown" 26 | ``` 27 | 28 | To get the api token, sign up and copy the API token. 29 | 30 | {{< figure src="../assets/nav-buttons-at-bottom/lyket.png" >}} -------------------------------------------------------------------------------- /exampleSite/content/typography.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: page 3 | excerpt: Typography 4 | search_omit: false 5 | --- 6 | 7 | 8 | * ToC 9 | {:toc} 10 | 11 | ## We use kramdown 12 | 13 | This website uses [`kramdown`](http://kramdown.gettalong.org) as the basic syntax. However, a lot of html/css/js has been applied to generate some certain contents or styles. 14 | 15 | Math also follows the [`kramdown` syntax](http://kramdown.gettalong.org/syntax.html#math-blocks). 16 | 17 | ## Footnote 18 | 19 | [Syntax for footnotes is elaborated more on the website of kramdown.](http://kramdown.gettalong.org/syntax.html#footnotes) 20 | 21 | {% highlight text %} 22 | Some text here some other text here.[^1] 23 | 24 | [^1]: Footnote here 25 | {% endhighlight %} 26 | 27 | 28 | ## Table of Contents 29 | 30 | 31 | {% highlight text %} 32 | * ToC 33 | {:toc} 34 | {% endhighlight %} 35 | 36 | is used to generate table of contents. 37 | 38 | ## Figure with Caption 39 | 40 | {% highlight html %} 41 |
42 | ![](../assets/path-to-file.png) 43 |
44 | Caption here. Please note that Jekyll generate any fild `file.md` to path `file/index.html`. So the path to the image should be refered to as one level higher. 45 |
46 |
47 | {% endhighlight %} 48 | 49 | 50 |
51 | Please determine the path of the image according to the path of the post itself. Otherwise, an absolute path can be specified, 52 | 53 | ``` 54 | ![]({{ site.url }}/assets/programming/chrome-dev-tools-inspect.png) 55 | ``` 56 | 57 | where `{{ site.url }}` is the configured url of the site. 58 |
59 | 60 | 61 | ## Notes div 62 | 63 | {% highlight html %} 64 |
65 | Some notes here, with markdown support. markdown="0" will disable markdown support. 66 |
67 | 68 |
69 | This is success text 70 |
71 | 72 |
73 | This is warning text 74 |
75 | 76 |
77 | This is error text 78 |
79 | {% endhighlight %} 80 | 81 |
82 | Please beware that with `markdown="1"` the content and div tags have to be on different lines. 83 |
84 | 85 | Alternatively, we can use the set attributes syntax in kramdown. 86 | 87 | {% highlight md %} 88 | This is a paragraph with some class. The class is specified in the end of the paragraph. 89 | {: .notes--warning} 90 | {% endhighlight %} 91 | 92 | The results shows as a paragraph with the corresponding class. Notice that this only works for one paragraph. 93 | 94 | This is a paragraph with some class. The class is specified in the end of the paragraph. 95 | {: .notes--warning} 96 | -------------------------------------------------------------------------------- /exampleSite/layouts/index.html: -------------------------------------------------------------------------------- 1 | {{ define "title"}} {{ .Site.Title}} {{end}} 2 | {{ define "header"}} {{ partial "menu" .}} {{end}} 3 | 4 | {{ define "main" }} 5 | 6 | {{ partial "home/hero.html" . }} 7 | 8 | {{ end }} 9 | 10 | {{ define "footer" }} {{ partial "footer" .}} {{ end }} -------------------------------------------------------------------------------- /exampleSite/layouts/partials/home/hero.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 |
7 |
8 | 9 |
10 |
11 |

12 | {{ site.Title }} 13 |

14 | 15 |
17 | 18 |
19 |

20 | {{ site.Params.description }} 21 |

22 |
23 | 24 | 25 | 26 |
28 | 29 | 61 | 62 | 63 |
64 |
65 |
66 |
67 |
68 | 69 | -------------------------------------------------------------------------------- /exampleSite/static/CNAME: -------------------------------------------------------------------------------- 1 | hugo-connectome.kausalflow.com -------------------------------------------------------------------------------- /exampleSite/static/home/undraw_Creative_woman_re_u5tk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/static/home/undraw_Creative_woman_re_u5tk.png -------------------------------------------------------------------------------- /exampleSite/static/projects/esl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/static/projects/esl.png -------------------------------------------------------------------------------- /exampleSite/static/projects/srm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/static/projects/srm.png -------------------------------------------------------------------------------- /exampleSite/static/projects/undraw_tutorial_video_vtd1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/static/projects/undraw_tutorial_video_vtd1.png -------------------------------------------------------------------------------- /exampleSite/static/projects/undraw_video_influencer_9oyy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/static/projects/undraw_video_influencer_9oyy.png -------------------------------------------------------------------------------- /exampleSite/static/projects/undraw_virtual_assistant_jjo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/exampleSite/static/projects/undraw_virtual_assistant_jjo2.png -------------------------------------------------------------------------------- /images/hugo-connectome-article-page-links.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/images/hugo-connectome-article-page-links.png -------------------------------------------------------------------------------- /images/hugo-connectome-command-palette-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/images/hugo-connectome-command-palette-demo.png -------------------------------------------------------------------------------- /images/hugo-connectome-command-palette-note-commands-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/images/hugo-connectome-command-palette-note-commands-demo.png -------------------------------------------------------------------------------- /images/hugo-connectome-command-palette.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/images/hugo-connectome-command-palette.png -------------------------------------------------------------------------------- /images/hugo-connectome-graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/images/hugo-connectome-graph.png -------------------------------------------------------------------------------- /images/hugo-connectome-multiple-notebooks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/images/hugo-connectome-multiple-notebooks.png -------------------------------------------------------------------------------- /images/hugo-connectome-preview-double-bracket-links.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/images/hugo-connectome-preview-double-bracket-links.png -------------------------------------------------------------------------------- /images/hugo-connectome-wide-connectome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/images/hugo-connectome-wide-connectome.png -------------------------------------------------------------------------------- /images/hugo-connectome-wide-layout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/images/hugo-connectome-wide-layout.png -------------------------------------------------------------------------------- /images/note-graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/images/note-graph.png -------------------------------------------------------------------------------- /images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/images/screenshot.png -------------------------------------------------------------------------------- /images/tn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/images/tn.png -------------------------------------------------------------------------------- /layouts/_default/baseof.json: -------------------------------------------------------------------------------- 1 | { 2 | "data" : {{ block "response" .}}{{ end }} 3 | } -------------------------------------------------------------------------------- /layouts/_default/index.json: -------------------------------------------------------------------------------- 1 | {{- $.Scratch.Add "index" slice -}} 2 | {{- range .Site.RegularPages -}} 3 | {{- $.Scratch.Add "index" (dict "title" .Title "tags" .Params.tags "categories" .Params.categories "contents" .Plain "permalink" .Permalink) -}} 4 | {{- end -}} 5 | {{- $.Scratch.Get "index" | jsonify -}} -------------------------------------------------------------------------------- /layouts/_default/list.data.json: -------------------------------------------------------------------------------- 1 | {{ define "response" }} 2 | [{{ range $i, $hit := .Site.AllPages }} 3 | {{ if $i }}, {{ end }}{ 4 | "title": {{ $hit.Params.title | jsonify }}, 5 | "authors": {{ $hit.Params.authors | jsonify }}, 6 | "summary": {{ $hit.Params.summary | jsonify }}, 7 | "date": {{ $hit.Params.date | jsonify }}, 8 | "references": {{ $hit.Params.references | jsonify }} 9 | } 10 | {{ end }}] 11 | {{ end }} -------------------------------------------------------------------------------- /layouts/_default/list.html: -------------------------------------------------------------------------------- 1 | {{ define "header" }} {{ partial "menu" . }} {{ end }} 2 | 3 | {{ define "main" }} 4 | 5 | 6 |
7 |
8 |
9 |
10 |

11 | {{ .Page.Title }} 12 |

13 |

14 | {{ .Page.Description }} 15 |

16 |
17 |
18 |
19 | 20 |
21 | 22 |
23 |
24 |
25 |
26 |
27 | {{ partial "breadcrumb" . }} 28 | {{ partial "list-pages-by-cards" . }} 29 |
30 |
31 |
32 | {{ if gt .Paginator.TotalPages 1 }} 33 | {{ partial "pagination" . }} 34 | {{ end }} 35 |
36 |
37 |
38 |
39 | 40 |
41 | {{ end }} 42 | {{ define "footer" }} 43 | {{ partial "footer" . }} 44 | {{ end }} -------------------------------------------------------------------------------- /layouts/_default/list.networkjq.json: -------------------------------------------------------------------------------- 1 | {{- $nodes := slice -}} 2 | {{- $stash := slice -}} 3 | {{- range $taxonomy_term, $taxonomy := $.Site.Taxonomies -}} 4 | {{- if eq $taxonomy_term "links" -}} 5 | {{- with $.Site.GetPage (printf "/%s" $taxonomy_term) -}} 6 | {{- range $key, $value := $taxonomy -}} 7 | {{- if not (in $nodes $key) -}} 8 | {{- $nodes = $nodes | append $key -}} 9 | {{- range $value.Pages -}} 10 | {{- if not (in $nodes .File) -}} 11 | {{- $nodes = $nodes | append .File -}} 12 | {{- end -}} 13 | {{- end -}} 14 | {{- end -}} 15 | {{- end -}} 16 | {{- end -}} 17 | {{- end -}} 18 | {{- end -}} 19 | {{- range .Site.RegularPages -}} 20 | {{- if not (in $nodes .File) -}} 21 | {{- $nodes = $nodes | append .File -}} 22 | {{- end -}} 23 | {{- end -}} 24 | { 25 | "type": "NetworkGraph", 26 | "version": "", 27 | "revision": null, 28 | "nodes": [{{- range $i, $node := $nodes -}} {{- if not (in (delimit $stash ',') $node) -}} 29 | {{- if $i -}}, {{- end -}}{ 30 | "id": "{{- $node -}}", 31 | "label": {{- $nodepage := $.Site.GetPage (printf "/%s" $node) -}} {{- if $nodepage -}}"{{- $nodepage.Title -}}" {{- else -}} "" {{- end -}}, 32 | "properties":{ 33 | "link": {{- $nodepage := $.Site.GetPage (printf "/%s" $node) -}} {{- if $nodepage -}}"{{- $nodepage.Permalink -}}" {{- else -}} "" {{- end -}} 34 | } 35 | } 36 | {{- $stash = $stash | append $node -}}{{- end -}}{{- end -}}], 37 | "links": [ 38 | {{- range $taxonomy_term, $taxonomy := $.Site.Taxonomies -}} 39 | {{- if eq $taxonomy_term "links" -}} 40 | {{- with $.Site.GetPage (printf "/%s" $taxonomy_term) -}} 41 | {{- $keys := slice -}} 42 | {{- range $key, $value := $taxonomy -}} 43 | {{- $keys = $keys | append $key -}} 44 | {{- end -}} 45 | {{- $last := index $keys (sub (len $keys) 1) -}} 46 | {{- range $key, $value := $taxonomy -}} 47 | {{- range $i, $page := $value.Pages -}} 48 | {{- if $i -}},{{- end -}}{ 49 | "source": "{{- $page.File -}}", 50 | "target": "{{- $key -}}" 51 | } 52 | {{- end -}}{{- if ne $key $last -}},{{- end -}} 53 | {{- end -}} 54 | {{- end -}} 55 | {{- end -}} 56 | {{- end -}} 57 | ] 58 | } 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /layouts/_default/single.html: -------------------------------------------------------------------------------- 1 | {{ define "title"}} {{ .Title }} {{ end }} 2 | 3 | {{ define "style"}} 4 | 5 | {{ partial "extensions/plotlyjs.html" . }} 6 | {{ end }} 7 | 8 | {{ define "header"}} {{ partial "menu" .}} 9 | {{ end }} 10 | 11 | {{ define "main" }} 12 | 13 |
14 | {{ template "_internal/schema.html" . }} 15 |
16 |
17 |
18 | 19 | {{ partial "post/header" . }} 20 | 21 | {{ partial "post/content" . }} 22 | 23 | {{ partial "layouts/cards-below-article" . }} 24 | 25 | 26 | {{ partial "post/next-prev" . }} 27 | 28 |
29 |
30 |
31 |
32 | 33 | {{ partial "nav-buttons.html" . }} 34 | 35 | {{ end }} 36 | 37 | {{ define "footer"}} 38 | {{ if .Params.charts }} 39 | {{ partial "extensions/plotly.html" . }} 40 | {{ end }} 41 | {{ partial "footer.html" .}} 42 | 43 | {{ partial "extensions/applausebutton.html" . }} 44 | 45 | {{ end }} -------------------------------------------------------------------------------- /layouts/_default/single.simple.html: -------------------------------------------------------------------------------- 1 | {{ define "title" -}} 2 | {{ .Title }} | {{ .Site.Title }} 3 | {{- end }} 4 | 5 | {{ define "header" }} 6 | {{ partial "menu" . }} 7 | {{ end }} 8 | 9 | {{ define "main" }} 10 | 11 |
12 |
13 |
14 |
15 |
16 |
17 | {{ .Content}} 18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | {{ end }} 26 | {{ define "footer" }} 27 | {{ partial "footer" . }} 28 | {{ end }} 29 | -------------------------------------------------------------------------------- /layouts/_default/taxonomy.html: -------------------------------------------------------------------------------- 1 | {{ define "header" }} 2 | {{ partial "menu" . }} 3 |
4 |
5 | 17 |
18 |
19 | {{ end }} 20 | {{ define "main" }} 21 |
23 |
24 |
25 | 26 |
27 | 28 | 29 | {{ range .Paginator.Pages }} 30 |
31 | {{ partial "list/card-wiki" . }} 32 |
33 | {{ end }} 34 | 35 |
36 |
37 | 38 |
39 |
40 |
41 | {{ if gt .Paginator.TotalPages 1 }} 42 | {{ partial "pagination" . }} 43 | {{ end }} 44 |
45 |
46 |
47 |
48 | {{ end }} 49 | {{ define "footer" }} 50 | {{ partial "footer" . }} 51 | {{ end }} 52 | -------------------------------------------------------------------------------- /layouts/_default/terms.html: -------------------------------------------------------------------------------- 1 | {{ define "header" }} 2 | {{ partial "menu" . }} 3 | {{ end }} 4 | {{ define "main" }} 5 | 6 | 7 | 8 |
9 |
10 |
11 |
12 |

13 | {{ .Title }} 14 |

15 |

16 | {{ .Description }} 17 |

18 |
19 |
20 |
21 | 22 |
23 | 24 | 25 |
26 |
27 |
28 |
29 |
30 | {{ range .Data.Terms.ByCount }} 31 | 32 | {{ .Page.Title }} ({{ .Count }}) 33 | 34 | {{ end }} 35 |
36 |
37 |
38 |
39 | 40 |
41 | 42 | 43 | 44 | 45 | {{ end }} 46 | {{ define "footer" }} 47 | {{ partial "footer" . }} 48 | {{ end }} -------------------------------------------------------------------------------- /layouts/graph/list.html: -------------------------------------------------------------------------------- 1 | {{ define "header" }} {{ partial "menu" . }} {{ end }} 2 | 3 | {{ define "main" }} 4 | 5 | 6 |
7 |
8 |
9 |
10 |

11 | {{ .Page.Title }} 12 |

13 |

14 | {{ .Page.Description }} 15 |

16 | {{ $projectpage := (printf "/%s/%s" .Site.Params.projects.section .Section) }} 17 | {{ with .Site.GetPage $projectpage }} 18 | 19 | {{ end }} 20 |
21 |
22 |
23 | 24 |
25 | 26 |
27 |
28 |
29 |
30 |
31 | {{ partial "network/graphg6" }} 32 | 33 | {{ partial "list-pages-by-cards" . }} 34 |
35 |
36 |
37 | {{ if gt .Paginator.TotalPages 1 }} 38 | {{ partial "pagination" . }} 39 | {{ end }} 40 |
41 |
42 |
43 |
44 | 45 |
46 | {{ end }} 47 | {{ define "footer" }} 48 | {{ partial "footer" . }} 49 | {{ end }} -------------------------------------------------------------------------------- /layouts/index.html: -------------------------------------------------------------------------------- 1 | {{ define "title"}} {{ .Site.Title}} {{end}} 2 | {{ define "header"}} {{ partial "menu" .}} {{end}} 3 | 4 | {{ define "main" }} 5 | 6 | {{ partial "home/hero.html" . }} 7 | 8 | {{ end }} 9 | 10 | {{ define "footer" }} {{ partial "footer" .}} {{ end }} -------------------------------------------------------------------------------- /layouts/partials/breadcrumb.html: -------------------------------------------------------------------------------- 1 | 6 | 7 | {{ define "breadcrumbnav" }} 8 | {{ if .p1.Parent }} 9 | {{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }} 10 | {{ else if not .p1.IsHome }} 11 | {{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }} 12 | {{ end }} 13 |
  • 14 | {{ .p1.Title }} 15 |
  • 16 | {{ end }} 17 | -------------------------------------------------------------------------------- /layouts/partials/comments/disqus.html: -------------------------------------------------------------------------------- 1 |
    2 | 16 | 17 | comments powered by Disqus -------------------------------------------------------------------------------- /layouts/partials/comments/giscus-comments.html: -------------------------------------------------------------------------------- 1 |
    2 |
    3 | 4 | 20 | -------------------------------------------------------------------------------- /layouts/partials/comments/utterances-comments.html: -------------------------------------------------------------------------------- 1 |
    2 |
    3 | -------------------------------------------------------------------------------- /layouts/partials/extensions/applausebutton.html: -------------------------------------------------------------------------------- 1 | {{ if .Site.Params.applausebotton }} 2 | 3 | 4 | 5 | 6 | 7 | 8 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/extensions/fontawesome.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /layouts/partials/extensions/hypothesis.html: -------------------------------------------------------------------------------- 1 | {{ if ne ($.Site.Params.hypothesis) false }} 2 | 10 | {{ if .IsPage }} 11 | 12 | {{ end }} 13 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/extensions/lyket.html: -------------------------------------------------------------------------------- 1 | {{ with $.Site.Params.lyket.api_key }} 2 | 3 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/extensions/mathjax.html: -------------------------------------------------------------------------------- 1 | 22 | 23 | -------------------------------------------------------------------------------- /layouts/partials/extensions/mermaid.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /layouts/partials/extensions/plotly.html: -------------------------------------------------------------------------------- 1 | {{ if .Params.charts }} 2 | {{ range .Params.charts }} 3 | 8 | {{ end }} 9 | {{ end }} 10 | 11 | -------------------------------------------------------------------------------- /layouts/partials/extensions/plotlyjs.html: -------------------------------------------------------------------------------- 1 | {{ if .Params.charts }} 2 | 3 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/favicon.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /layouts/partials/footer.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/garden/garden-identifier.html: -------------------------------------------------------------------------------- 1 | {{ if isset .Params "garden" }} 2 |
    3 |
    4 |
    5 |
    6 |

    7 | {{ range .Params.garden }} 8 | {{ $phase := . }} 9 | {{ range $.Site.Params.garden.phases }} 10 | {{ if eq $phase .name }} 11 | {{ .icon | safeHTML }} 12 | 13 | {{ .name }} 14 | {{ .description }} 15 | 16 | 17 | {{ end }} 18 | {{ end }} 19 | {{ end }} 20 | {{ else }} 21 | {{ $.Site.Params.garden.default.icon | safeHTML }} 22 | {{ end }} 23 |

    24 |
    25 |
    26 |
    27 |
    -------------------------------------------------------------------------------- /layouts/partials/home/hero.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 |
    5 |
    6 |
    7 |
    8 | 9 |
    10 |
    11 |

    12 | {{ site.Title }} 13 |

    14 | 15 |
    17 | 18 |
    19 |

    20 | {{ site.Params.description }} 21 |

    22 |
    23 | 24 | 25 | 26 |
    28 | 29 | 30 |
    31 |
    32 |
    33 |
    34 |
    35 | 36 | -------------------------------------------------------------------------------- /layouts/partials/layouts/cards-below-article.html: -------------------------------------------------------------------------------- 1 |
    2 | {{ partial "refererences/references-plain" . }} 3 |
    4 | 5 |
    6 | {{ partial "refererences/supplementary-plain" . }} 7 |
    8 | 9 |
    10 | 11 | 12 |
    13 | 14 | {{ $fileReference := lower (replace .File "\\" "/") }} 15 | 16 | 17 | {{ if isset $.Site.Params "nativebacklink" }} 18 | {{ if $.Site.Params.nativebacklink }} 19 | {{ partial "network/cards-links-from" (dict "context" . "ref" $fileReference) }} 20 | {{ else }} 21 | {{ partial "network/dynamic-backlink-multi-col" . }} 22 | {{ end }} 23 | {{ else }} 24 | {{ partial "network/dynamic-backlink-multi-col" . }} 25 | {{ end }} 26 | 27 |
    28 | 29 |
    30 | 31 | {{/* {{ partial "network/currentref" . }} */}} 32 | 33 | {{ partial "network/cards-links-to-multi-col" . }} 34 | 35 |
    36 | 37 |
    38 | {{ partial "network/cards-content-double-bracket-multi-col" . }} 39 |
    40 | 41 |
    42 | {{ if isset $.Site.Params "localgraph" }} 43 | {{ if $.Site.Params.localgraph }} 44 | {{ partial "network/local-graph-g6" . }} 45 | {{ end }} 46 | {{ end }} 47 |
    48 | 49 | 50 | 51 |
    52 | 53 | 54 |
    55 | {{ if eq $.Site.Params.comments.use "giscus" }} 56 | {{ partial "comments/giscus-comments" . }} 57 | {{ else if eq $.Site.Params.comments.use "utterances" }} 58 | {{ partial "comments/utterances-comments.html" . }} 59 | {{ end }} 60 |
    61 | 62 |
    63 | 64 |
    65 |
    66 | 67 |
    68 | {{ partial "profile/citethis.html" . }} 69 | 70 | 71 |
    72 | 73 | 74 |
    75 | 76 | -------------------------------------------------------------------------------- /layouts/partials/layouts/cards-side-of-article.html: -------------------------------------------------------------------------------- 1 |
    2 | 3 |
    4 | {{ partial "profile/citethis.html" . }} 5 | 6 | {{ partial "toc" .}} 7 | 8 | {{ partial "refererences/card-references" . }} 9 | 10 | {{ partial "refererences/card-supplementary" . }} 11 | 12 |
    13 | {{ $fileReference := lower (replace .File "\\" "/") }} 14 | {{ partial "network/currentref" . }} 15 | 16 | {{ if isset $.Site.Params "nativebacklink" }} 17 | {{ if $.Site.Params.nativebacklink }} 18 | {{ partial "network/cards-links-from" (dict "context" . "ref" $fileReference) }} 19 | {{ else }} 20 | {{ partial "network/dynamic-backlink.html" . }} 21 | {{ end }} 22 | {{ else }} 23 | {{ partial "network/dynamic-backlink.html" . }} 24 | {{ end }} 25 | 26 | {{ partial "network/cards-links-to" . }} 27 | {{ partial "network/cards-content-double-bracket" . }} 28 | 29 | {{ if isset $.Site.Params "localgraph" }} 30 | {{ if $.Site.Params.localgraph }} 31 | {{ partial "network/local-graph-g6" . }} 32 | {{ end }} 33 | {{ end }} 34 | 35 | {{ if eq $.Site.Params.comments.use "giscus" }} 36 | {{ partial "comments/giscus-comments" . }} 37 | {{ else if eq $.Site.Params.comments.use "utterances" }} 38 | {{ partial "comments/utterances-comments.html" . }} 39 | {{ end }} 40 | 41 |
    -------------------------------------------------------------------------------- /layouts/partials/link_back_project.html: -------------------------------------------------------------------------------- 1 | {{ if .Page.Params.project }} 2 | {{ with .Site.GetPage (.Page.Params.project) }} 3 |

    4 | Introduction: {{ .Title }} 5 |

    6 | {{ end }} 7 | {{ else }} 8 | {{ $projectpage := (printf "/%s/%s" .Site.Params.projects.section .Section) }} 9 | {{ with .Site.GetPage $projectpage }} 10 |

    11 | Introduction: {{ .Title }} 12 |

    13 | {{ end }} 14 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/list-pages-by-cards-normal-order.html: -------------------------------------------------------------------------------- 1 |
    2 | {{ range (.Paginate ( .Pages.ByWeight )).Pages }} 3 | {{ partial "list/column" . }} 4 | {{ end }} 5 |
    -------------------------------------------------------------------------------- /layouts/partials/list-pages-by-cards.html: -------------------------------------------------------------------------------- 1 |
    2 | {{ range (.Paginate ( .Pages.ByWeight.Reverse )).Pages }} 3 | {{ partial "list/column" . }} 4 | {{ end }} 5 |
    -------------------------------------------------------------------------------- /layouts/partials/list/card-simple.html: -------------------------------------------------------------------------------- 1 |
    2 |
    3 |
    4 | 9 |
    10 | 11 |
    12 | 13 |

    14 |

    15 | {{ range $tag := .Params.tags }} 16 | #{{$tag}} 17 | {{ end }} 18 |
    19 |

    20 | 21 |
    22 |
    23 | 24 |
    -------------------------------------------------------------------------------- /layouts/partials/list/card-wiki.html: -------------------------------------------------------------------------------- 1 |
    2 |
    3 | 10 | 11 |
    12 | {{if .Params.tags }} 13 |
    14 | {{ range $tag := .Params.tags }} 15 | #{{$tag}} 16 | {{ end }} 17 |
    18 | {{ end }} 19 | 20 | {{ if .Description }} 21 |

    {{ .Description | truncate 300 }}

    22 | {{ else }} 23 |

    24 | {{ .Summary | truncate 100 }} 25 |

    26 | 27 | {{ end }} 28 | 29 |
    30 |
    31 | 32 |
    -------------------------------------------------------------------------------- /layouts/partials/list/card.html: -------------------------------------------------------------------------------- 1 |
    2 | 21 |
    22 |
    23 | 28 |
    29 | 30 |
    31 | 32 |

    33 | 38 |

    39 | {{ range $tag := .Params.tags }} 40 | #{{$tag}} 41 | {{ end }} 42 |
    43 |

    44 | 45 |
    47 |
    48 |

    {{ .Params.summary }}

    49 |
    51 |
    52 | 53 |
    54 | Status: {{ .Params.status }} 55 |
    56 | 57 |
    58 |
    59 | 60 |
    -------------------------------------------------------------------------------- /layouts/partials/list/menu.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/list/page-summary-card.html: -------------------------------------------------------------------------------- 1 | {{ $width := "is-one-third" }} 2 |
    3 | {{ partial "list/card-wiki" . }} 4 |
    5 | 6 |
    -------------------------------------------------------------------------------- /layouts/partials/list/subsections.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/layouts/partials/list/subsections.html -------------------------------------------------------------------------------- /layouts/partials/list/tags.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/list/tree-menu-style.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/list/tree.html: -------------------------------------------------------------------------------- 1 |
    2 | {{ range .Params.sections }} 3 |

    {{ ($.GetPage (printf "/%s" .)).Title }} ({{ len (where $.Site.Pages "Section" .) }} pages)

    4 | 25 | {{ end }} 26 |
    -------------------------------------------------------------------------------- /layouts/partials/meta/name-author.html: -------------------------------------------------------------------------------- 1 | 2 | {{ if isset .Params "author" }} 3 | 4 | {{ else }} 5 | 6 | {{ end }} 7 | -------------------------------------------------------------------------------- /layouts/partials/meta/ogimage.html: -------------------------------------------------------------------------------- 1 | 2 | {{ if and (.IsNode) (.Site.Params.images) }} 3 | 4 | {{ end }} 5 | 6 | {{ if and (.IsPage) (not .Params.images) (.Site.Params.images) }} 7 | 8 | {{ end }} 9 | -------------------------------------------------------------------------------- /layouts/partials/nav-buttons.html: -------------------------------------------------------------------------------- 1 | 2 | {{ if and (or .IsPage .IsSection) .Site.Params.editURL }} 3 | {{ $File := .File }} 4 | {{ $Site := .Site }} 5 | {{with $File.Path }} 6 | 45 | {{ end }} 46 | {{ end }} 47 | -------------------------------------------------------------------------------- /layouts/partials/network/cards-content-double-bracket-multi-col.html: -------------------------------------------------------------------------------- 1 | {{ $dbLinks := slice }} 2 | {{ $apparentLinks := .Params.links }} 3 | 4 | {{ $content := replace .RawContent (lower (replace .File "\\" "/")) "" }} 5 | 6 | {{ with (findRE "{{<\\s{1}e\\s+(.+?)\\s+" $content ) }} 7 | {{ range . }} 8 | {{ if not (in $apparentLinks (substr . 7 -2) )}} 9 | {{ if not (in $dbLinks (substr . 7 -2)) }} 10 | {{ $dbLinks = $dbLinks | append (substr . 7 -2) }} 11 | {{ end }} 12 | {{ end }} 13 | {{ end }} 14 | {{ end }} 15 | 16 | {{ with (findRE "{{<\\s{1}c\\s+(.+?)\\s+" $content) }} 17 | {{ range . }} 18 | {{ if not (in $apparentLinks (substr . 7 -2) )}} 19 | {{ if not (in $dbLinks (substr . 7 -2)) }} 20 | {{ $dbLinks = $dbLinks | append (substr . 7 -2) }} 21 | {{ end }} 22 | {{ end }} 23 | {{ end }} 24 | {{ end }} 25 | 26 | {{ with $dbLinks }} 27 | 28 |
    Additional Double Backet Links:
    29 |
    30 | {{ range . }} 31 |
    32 | {{ partial "network/linkcard" ($.Site.GetPage .) }} 33 |
    34 | {{ end }} 35 |
    36 | 37 | 38 | {{ end }} 39 | -------------------------------------------------------------------------------- /layouts/partials/network/cards-content-double-bracket.html: -------------------------------------------------------------------------------- 1 | {{ $dbLinks := slice }} 2 | {{ $apparentLinks := .Params.links }} 3 | 4 | {{ $content := replace .RawContent (lower (replace .File "\\" "/")) "" }} 5 | 6 | {{ with (findRE "{{<\\s{1}e\\s+(.+?)\\s+" $content ) }} 7 | {{ range . }} 8 | {{ if not (in $apparentLinks (substr . 7 -2) )}} 9 | {{ if not (in $dbLinks (substr . 7 -2)) }} 10 | {{ $dbLinks = $dbLinks | append (substr . 7 -2) }} 11 | {{ end }} 12 | {{ end }} 13 | {{ end }} 14 | {{ end }} 15 | 16 | {{ with (findRE "{{<\\s{1}c\\s+(.+?)\\s+" $content) }} 17 | {{ range . }} 18 | {{ if not (in $apparentLinks (substr . 7 -2) )}} 19 | {{ if not (in $dbLinks (substr . 7 -2)) }} 20 | {{ $dbLinks = $dbLinks | append (substr . 7 -2) }} 21 | {{ end }} 22 | {{ end }} 23 | {{ end }} 24 | {{ end }} 25 | 26 | {{ with $dbLinks }} 27 |
    28 |
    29 |
    30 |
    31 |

    32 | Additional Double Backet Links: 33 |

    34 | {{ range . }} 35 | {{ partial "network/linkcard" ($.Site.GetPage .) }} 36 | {{ end }} 37 |
    38 |

    39 |
    40 |
    41 |
    42 |
    43 | {{ end }} 44 | -------------------------------------------------------------------------------- /layouts/partials/network/cards-links-from.html: -------------------------------------------------------------------------------- 1 | {{ $fileReference := .ref }} 2 | 3 | {{ with .context.Site.Taxonomies.links }} 4 | {{ $linkedFrom := index . $fileReference }} 5 | {{ with $linkedFrom }} 6 |
    7 |
    8 |
    9 |
    10 |

    11 | Links from: 12 |

    13 | {{ range . }} 14 | {{ partial "network/linkcard" . }} 15 | {{ end }} 16 |
    17 |

    18 |
    19 |
    20 |
    21 |
    22 | {{ end }} 23 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/network/cards-links-to-multi-col.html: -------------------------------------------------------------------------------- 1 | {{ $fileReference := lower (replace .File "\\" "/") }} 2 | 3 | {{ if .Params.links }} 4 | {{ with .Params.links }} 5 | 6 |
    7 | {{ replace $fileReference ".md" "" }} Links to: 8 |
    9 | 10 |
    11 | {{ range . }} 12 | {{ with $.Site.GetPage . }} 13 |
    14 | {{ partial "network/linkcard" . }} 15 |
    16 | {{ end }} 17 | {{ end }} 18 |
    19 | 20 | 21 | {{ end }} 22 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/network/cards-links-to.html: -------------------------------------------------------------------------------- 1 | {{ if .Params.links }} 2 | {{ with .Params.links }} 3 |
    4 |
    5 |
    6 |
    7 |

    8 | Links to: 9 |

    10 | {{ range . }} 11 | {{ with $.Site.GetPage . }} 12 | {{ partial "network/linkcard" . }} 13 | {{ end }} 14 | {{ end }} 15 |
    16 | 17 |

    18 |
    19 |
    20 |
    21 |
    22 | {{ end }} 23 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/network/currentref.html: -------------------------------------------------------------------------------- 1 | {{ $fileReference := lower (replace $.File "\\" "/") }} 2 |
    3 |
    4 |
    5 |
    6 |

    7 | Current Note ID:
    8 |

    • 9 |
      {{ $fileReference }}
    • 10 |
    11 |

    12 |
    13 |
    14 |
    15 |
    -------------------------------------------------------------------------------- /layouts/partials/network/dynamic-backlink-multi-col.html: -------------------------------------------------------------------------------- 1 | {{ $fileReference := lower (replace .File "\\" "/") }} 2 | 3 | {{ $sources := slice }} 4 | 5 | {{- range .Site.RegularPages -}} 6 | {{ $currentSource := lower (replace .File "\\" "/") }} 7 | {{ $apparentLinks := .Params.links }} 8 | {{ with .Params.links }} 9 | {{ range . }} 10 | {{ if eq . $fileReference }} 11 | {{ with ($.Site.GetPage $currentSource) }} 12 | {{ if not (in $sources $currentSource) }} 13 | {{ $sources = $sources | append $currentSource }} 14 | {{ end }} 15 | {{ end }} 16 | {{ end }} 17 | {{ end }} 18 | {{ end }} 19 | 20 | 21 | {{ $content := replace .RawContent (lower (replace .File "\\" "/")) "" }} 22 | 23 | {{ with (findRE "{{<\\s{1}e\\s+(.+?)\\s+" $content ) }} 24 | {{ range . }} 25 | {{ $currentTarget := substr . 7 -2 }} 26 | {{ if eq $currentTarget $fileReference }} 27 | {{ if not (in $apparentLinks (substr . 7 -2) )}} 28 | {{ if not (in $sources (substr . 7 -2)) }} 29 | {{ $sources = $sources | append (substr . 7 -2) }} 30 | {{ end }} 31 | {{ end }} 32 | {{ end }} 33 | {{ end }} 34 | {{ end }} 35 | 36 | {{ with (findRE "{{<\\s{1}c\\s+(.+?)\\s+" $content) }} 37 | {{ range . }} 38 | {{ $currentTarget := substr . 7 -2 }} 39 | {{ if eq $currentTarget $fileReference }} 40 | {{ if not (in $apparentLinks (substr . 7 -2) )}} 41 | {{ if not (in $sources (substr . 7 -2)) }} 42 | {{ $sources = $sources | append (substr . 7 -2) }} 43 | {{ end }} 44 | {{ end }} 45 | {{ end }} 46 | {{ end }} 47 | {{ end }} 48 | 49 | 50 | 51 | 52 | {{- end -}} 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | {{ if $sources }} 61 | 62 |
    Dynamic Backlinks to {{ replace $fileReference ".md" "" }}:
    63 |
    64 | {{ $bl := slice }} 65 | {{ range $sources }} 66 | {{ with ($.Site.GetPage .) }} 67 | {{ $bl = $bl | append . }} 68 | {{ end }} 69 | {{ end }} 70 | {{ if not (eq $bl slice) }} 71 | {{ range $bl }} 72 |
    73 | {{ partial "network/linkcard" . }} 74 |
    75 | {{ end }} 76 | {{ end }} 77 | 78 |
    79 | 80 | {{ else }} 81 | {{ partial "network/related-articles" . }} 82 | {{ end }} 83 | -------------------------------------------------------------------------------- /layouts/partials/network/dynamic-backlink.html: -------------------------------------------------------------------------------- 1 | {{ $fileReference := lower (replace .File "\\" "/") }} 2 | 3 | {{ $urlPre := $.Site.BaseURL }} 4 | 5 | {{ $sources := slice }} 6 | {{ $rawSources := slice }} 7 | 8 | {{- range .Site.RegularPages -}} 9 | {{ with .links }} 10 | {{ range . }} 11 | {{ if eq . $fileReference }} 12 | {{ $source := lower (replace . "\\" "/") }} 13 | {{ with ($.Site.GetPage $source) }} 14 | {{ if not (in $sources $source) }} 15 | {{ $sources = $sources | append $source }} 16 | {{ end }} 17 | {{ end }} 18 | {{ end }} 19 | {{ end }} 20 | {{ end }} 21 | {{- end -}} 22 | 23 | {{ if $sources }} 24 |
    25 |
    26 |
    27 |
    28 |

    29 | Dynamic Backlinks: 30 |

    31 | {{ $bl := slice }} 32 | {{ range $sources }} 33 | {{ with ($.Site.GetPage .) }} 34 | {{ $bl = $bl | append . }} 35 | {{ end }} 36 | {{ end }} 37 | {{ if not (eq $bl slice) }} 38 | {{ range $bl }} 39 |
    40 | {{ partial "network/linkcard" . }} 41 |
    42 | {{ end }} 43 | {{ end }} 44 | 45 |
    46 |

    47 |
    48 |
    49 |
    50 |
    51 | {{ else }} 52 |
    53 | No backlinks identified. Reference this note using the Note ID {{ $fileReference }} in other notes to connect them. 54 |
    55 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/network/graphg6.html: -------------------------------------------------------------------------------- 1 | 2 |
    3 | 4 |
    5 |
    6 | 7 | 8 | {{ $networkg6 := resources.Get "network/networkg6.js" }} 9 | -------------------------------------------------------------------------------- /layouts/partials/network/linkcard.html: -------------------------------------------------------------------------------- 1 | {{ $truncate := 100 }} 2 | 3 | 4 |
    5 |
    6 |
    {{ .Title }} 7 | 8 |
    9 |
    10 | {{ if .Params.description }} 11 | {{ .Params.description | safeHTML | truncate ($truncate) }} 12 | {{ else }} 13 | {{ .Summary | safeHTML | truncate ($truncate) }} 14 | {{ end }} 15 |
    16 |
    17 |
    18 |
    -------------------------------------------------------------------------------- /layouts/partials/network/local-graph.html: -------------------------------------------------------------------------------- 1 | {{ with .Params.links }} 2 | {{- $linksTo := slice -}} 3 | {{ range . }} 4 | {{ with $.Site.GetPage . }} 5 | {{- if not (in $linksTo .File) -}} 6 | {{- $linksTo = $linksTo | append .File -}} 7 | {{- end -}} 8 | {{ end }} 9 | {{ end }} 10 | {{ with $linksTo }} 11 | {{ $linksTo }} 12 | {{ end }} 13 | {{ end }} 14 | 15 | 16 | 17 | {{ $fileReference := lower (replace $.File "\\" "/") }} 18 | 19 | {{ with .Site.Taxonomies.links }} 20 | {{ $linkedFrom := index . $fileReference }} 21 | {{ with $linkedFrom }} 22 | {{ range . }} 23 | {{ . }} 24 | {{ end }} 25 | {{ end }} 26 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/network/related-articles.html: -------------------------------------------------------------------------------- 1 | {{ $related := .Site.RegularPages.Related . | first 4 }} 2 | 3 | {{ if $related }} 4 |
    Similar Articles:
    5 | 6 | {{ with $related }} 7 |
    8 | {{ range . }} 9 |
    10 | {{ partial "network/linkcard" . }} 11 |
    12 | {{ end }} 13 |
    14 | {{ end }} 15 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/page-summary.html: -------------------------------------------------------------------------------- 1 |
    2 |

    3 | {{ if eq .Type "post" }} 4 |

    5 | {{ partial "post/meta" . }} 6 |

    7 | {{ end }} 8 | 9 |

    10 | {{if .Params.weight }} {{.Params.weight}} {{end}}{{ .Title }} 11 |

    12 | {{if .Params.tags }} 13 |
    14 | {{ range $tag := .Params.tags }} 15 | #{{$tag}} 16 | {{ end }} 17 |
    18 | {{ end }} 19 | {{ if .Description }} 20 |
    {{ .Description }}
    21 | {{ else }} 22 | 23 |
    24 | {{ .Summary }} 25 |
    26 | 27 | {{ end }} 28 |
    29 | 30 |
    -------------------------------------------------------------------------------- /layouts/partials/pagination.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/post/byauthor.html: -------------------------------------------------------------------------------- 1 |
    2 |

    3 | Published 4 | {{ if ne .Site.Params.hide_author true }} 5 | {{ with .Params.author }} 6 | by ; 7 | {{ else }} 8 | by ; 9 | {{ end }} 10 | {{ end }} 11 | ; 14 | {{ with .Params.categories }} 15 | in {{ delimit (apply (apply (sort .) "partial" "post/category-link" ".") "chomp" ".") ", " " and " }} 16 | {{ end }} 17 | {{ with .Params.tags }} 18 | and tagged {{ delimit (apply (apply (sort .) "partial" "post/tag-link" ".") "chomp" ".") ", " " and " }} 19 | {{ end }} 20 | 21 |

    22 |
    -------------------------------------------------------------------------------- /layouts/partials/post/category-link.html: -------------------------------------------------------------------------------- 1 | {{ . }} 2 | -------------------------------------------------------------------------------- /layouts/partials/post/content.html: -------------------------------------------------------------------------------- 1 |
    2 |
    3 | {{ if .Params.notify }} 4 |
    5 |
    6 |

    7 | {{ .Params.notify | markdownify }} 8 |

    9 |
    10 | {{ end }} 11 | 12 | {{ if .Params.summary }} 13 |
    14 |
    15 |

    16 | {{ .Params.summary | markdownify }} 17 |

    18 |
    19 | {{ end }} 20 | 21 |
    22 | 23 |
    24 | 25 | {{.Content}} 26 |
    27 | 28 |

    {{ partial "post/meta" . }}

    29 | 30 | 31 | 32 | 33 |
    34 |
    -------------------------------------------------------------------------------- /layouts/partials/post/header.html: -------------------------------------------------------------------------------- 1 |
    2 | {{ partial "breadcrumb" . }} 3 | 4 | 5 |

    6 | {{ .Params.Title }} 7 |

    8 | 9 |
    10 | 11 | {{ $phase_color := $.Site.Params.garden.default.color }} 12 | {{ if isset .Params "garden" }} 13 |
    14 | {{ range .Params.garden }} 15 | {{ $phase := . }} 16 | {{ range $.Site.Params.garden.phases }} 17 | {{ if eq $phase .name }} 18 | 19 | {{ .name | upper }} 20 | {{ .description }} 21 | 22 | {{ $phase_color := .color }} 23 | {{ end }} 24 | {{ end }} 25 | {{ end }} 26 |
    27 | {{ else }} 28 | 34 | {{ end }} 35 | 36 | 37 |
    38 | {{ $fileReference := lower (replace $.File "\\" "/") }} 39 | 40 | {{ $fileReference }} 41 | Current Note ID: The unique ID of this note. 42 | 43 |
    44 | 45 |
    46 | 47 | {{ range $tag := .Params.tags }} 48 | #{{$tag}} 49 | {{ end }} 50 |
    51 | 52 | 53 | 54 |
    -------------------------------------------------------------------------------- /layouts/partials/post/meta.html: -------------------------------------------------------------------------------- 1 |
    2 | 6 | 7 | 8 | 9 | {{ if .PublishDate.IsZero }} 10 | Planted: 11 | {{ else if lt .PublishDate .Lastmod }} 12 | Last tended: 13 | {{ else }} 14 | Planted: 15 | {{ end }} 16 | {{ if ne .Site.Params.hide_author true }} 17 | {{ with .Params.author }} 18 | by ; 19 | {{ else }} 20 | by ; 21 | {{ end }} 22 | {{ end }} 23 |
    -------------------------------------------------------------------------------- /layouts/partials/post/next-prev.html: -------------------------------------------------------------------------------- 1 |
    2 | -------------------------------------------------------------------------------- /layouts/partials/post/related-content.html: -------------------------------------------------------------------------------- 1 | {{ range first 1 (where (where .Site.Pages ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }} 2 | {{ $.Scratch.Set "has_related" true }} 3 | {{ end }} 4 | 5 | {{ if $.Scratch.Get "has_related" }} 6 |
    8 |
    9 | 30 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/post/tag-link.html: -------------------------------------------------------------------------------- 1 | {{ . }} 2 | -------------------------------------------------------------------------------- /layouts/partials/post/toc-bare.html: -------------------------------------------------------------------------------- 1 | {{ if not ( isset .Params "toc") | or (eq .Params.toc true) }} 2 | 13 | {{ if gt (len .TableOfContents) 32}} 14 |
    15 |
    16 |
    17 |
    18 |
    19 |
    20 | Table of Contents 21 |
    22 |
    23 | {{ .TableOfContents }} 24 |
    25 |
    26 |
    27 |
    28 |
    29 |
    30 |
    31 | {{ end }} 32 | 53 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/profile/author.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/profile/citethis.html: -------------------------------------------------------------------------------- 1 | 2 | {{ $year := .PublishDate.Format "2006" }} 3 | {{ $date := .PublishDate.Format "01 April"}} 4 |
    5 |
    6 |
    7 |
    8 |

    9 | {{ if .Params.authors }} 10 | {{ $authors := .Params.authors }}{{ delimit $authors ", " }} {{else}} 11 | {{ $.Site.Params.author }} 12 | {{ end }} ({{ $year }}). '{{ .Title }}', {{ $.Site.Title }}, {{ $date }}. Available at: {{ .Permalink }}. 13 |

    14 |
    15 |
    16 |
    17 |
    18 | 19 | -------------------------------------------------------------------------------- /layouts/partials/profile/listauthors.html: -------------------------------------------------------------------------------- 1 | {{ $authors := .Params.authors }} 2 |
    3 |
    4 |
    5 |
    6 |

    7 | Authors: {{ delimit $authors ", " }} 8 |

    9 |
    10 |
    11 |
    12 |
    13 | -------------------------------------------------------------------------------- /layouts/partials/profile/title.html: -------------------------------------------------------------------------------- 1 |
    2 |
    3 |
    4 |
    5 |
    6 |

    {{ .Title }}

    7 |
    {{ .Params.summary }}
    8 |
    {{ range $cat := .Params.categories }} 10 | {{$cat}} 11 | {{ end }}
    12 |
    {{ range $tag := .Params.tags }} 14 | #{{$tag}} 15 | {{ end }}
    16 |
    {{.Params.status}}
    17 |
    18 |
    19 | 20 |
    21 |
    22 | 23 |
    24 |
    25 |
    -------------------------------------------------------------------------------- /layouts/partials/refererences/card-references.html: -------------------------------------------------------------------------------- 1 | {{ if .Params.references }} 2 |
    3 |
    4 |
    5 |
    6 |
    7 |

    8 | References:
    9 |

      10 | {{ range $ref := .Params.references }} 11 |
    1. {{ if $ref.key }} 12 | 13 | {{$ref.key}} 14 | 15 | {{ end }}{{ $ref.name }}
    2. 16 | {{ end }} 17 |
    18 |

    19 |
    20 |
    21 |
    22 |
    23 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/refererences/card-supplementary.html: -------------------------------------------------------------------------------- 1 | {{ if .Params.supplementary }} 2 |
    3 |
    4 | 18 |
    19 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/refererences/references-plain.html: -------------------------------------------------------------------------------- 1 | {{ if .Params.references }} 2 |
    3 | 4 | 5 |
    6 | References: 7 |
    8 | 9 |
    10 |
    11 |
    12 |
      13 | {{ range $ref := .Params.references }} 14 |
    1. {{ if $ref.key }} 15 | 16 | {{$ref.key}} 17 | 18 | {{ end }}{{ $ref.name }}
    2. 19 | {{ end }} 20 |
    21 |
    22 |
    23 |
    24 | 25 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/refererences/supplementary-plain.html: -------------------------------------------------------------------------------- 1 | {{ if .Params.supplementary }} 2 |
    3 |
    4 | 5 | Supplementary: 6 |
    7 | 8 |
    9 |
    10 |
    11 |
      12 | {{ range $supp := .Params.supplementary }} 13 |
    1. {{ $supp.name }}
    2. 14 | {{ end }} 15 |
    16 |
    17 |
    18 |
    19 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/related-content.html: -------------------------------------------------------------------------------- 1 | {{ range first 1 (where (where .Site.Pages ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }} 2 | {{ $.Scratch.Set "has_related" true }} 3 | {{ end }} 4 | 5 | {{ if $.Scratch.Get "has_related" }} 6 | 7 | {{ $num_to_show := .Site.Params.related_content_limit | default 7 }} 8 | 31 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/site-verification.html: -------------------------------------------------------------------------------- 1 | {{ if .Site.Params.seo.webmaster_verifications.google }} 2 | 3 | {{ end }} 4 | {{ if .Site.Params.seo.webmaster_verifications.bing }} 5 | 6 | {{ end }} 7 | {{ if .Site.Params.seo.webmaster_verifications.alexa }} 8 | 9 | {{ end }} 10 | {{ if .Site.Params.seo.webmaster_verifications.yandex }} 11 | 12 | {{ end }} 13 | -------------------------------------------------------------------------------- /layouts/partials/terms/summary.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/layouts/partials/terms/summary.html -------------------------------------------------------------------------------- /layouts/partials/toc.html: -------------------------------------------------------------------------------- 1 | {{ if not ( isset .Params "toc") | or (eq .Params.toc true) }} 2 | 13 | {{ if gt (len .TableOfContents) 32}} 14 |
    15 |
    16 |
    17 |
    18 |
    19 |
    20 | Table of Contents 21 |
    22 |
    23 | {{ .TableOfContents }} 24 |
    25 |
    26 |
    27 |
    28 |
    29 |
    30 |
    31 | {{ end }} 32 | 53 | {{ end }} -------------------------------------------------------------------------------- /layouts/posts/list.html: -------------------------------------------------------------------------------- 1 | {{ define "header" }} {{ partial "menu" . }} {{ end }} 2 | 3 | {{ define "main" }} 4 | 5 | 6 |
    7 |
    8 |
    9 |
    10 |

    11 | {{ .Title }} 12 |

    13 |

    14 | {{ .Description }} 15 |

    16 |
    17 |
    18 |
    19 | 20 |
    21 | 22 |
    23 |
    24 |
    25 |
    26 |
    27 | {{ range .Paginator.Pages }} {{ partial "page-summary" . }} {{ end }} 28 |
    29 |
    30 |
    31 | {{ if gt .Paginator.TotalPages 1 }} 32 | {{ partial "pagination" . }} 33 | {{ end }} 34 |
    35 |
    36 |
    37 |
    38 | 39 |
    40 | {{ end }} 41 | {{ define "footer" }} 42 | {{ partial "footer" . }} 43 | {{ end }} -------------------------------------------------------------------------------- /layouts/project/list.html: -------------------------------------------------------------------------------- 1 | {{ define "header" }} {{ partial "menu" . }} {{ end }} 2 | 3 | {{ define "main" }} 4 | 5 | 6 |
    7 |
    8 |
    9 |
    10 |

    11 | {{ .Page.Title }} 12 |

    13 |

    14 | {{ .Page.Description }} 15 |

    16 | {{ partial "link_back_project" . }} 17 | 18 |
    19 |
    20 |
    21 | 22 |
    23 | 24 |
    25 |
    26 |
    27 |
    28 |
    29 | {{ partial "breadcrumb" . }} 30 | {{ partial "list-pages-by-cards" . }} 31 |
    32 |
    33 |
    34 | {{ if gt .Paginator.TotalPages 1 }} 35 | {{ partial "pagination" . }} 36 | {{ end }} 37 |
    38 |
    39 |
    40 |
    41 | 42 |
    43 | {{ end }} 44 | {{ define "footer" }} 45 | {{ partial "footer" . }} 46 | {{ end }} -------------------------------------------------------------------------------- /layouts/project/single.html: -------------------------------------------------------------------------------- 1 | {{ define "title"}} {{ .Title }} {{ end }} 2 | 3 | {{ define "style"}} 4 | 5 | {{ end }} 6 | 7 | {{ define "header"}} {{ partial "menu" .}} 8 | 9 | {{ end }} 10 | 11 | {{ define "main" }} 12 | 13 | 14 | 15 |
    16 | {{ template "_internal/schema.html" . }} 17 |
    18 |
    19 |
    20 | 21 | {{ partial "post/header" . }} 22 | 23 | {{ partial "post/content" . }} 24 | 25 | {{ partial "layouts/cards-below-article" . }} 26 | 27 | 28 | {{ partial "post/next-prev" . }} 29 |
    30 |
    31 |
    32 |
    33 | 34 | {{ partial "nav-buttons.html" . }} 35 | 36 | {{ end }} 37 | 38 | 39 | 40 | {{ define "footer"}} 41 | {{ partial "footer.html" .}} 42 | 43 | {{ partial "extensions/applausebutton.html" . }} 44 | {{ end }} -------------------------------------------------------------------------------- /layouts/projects/list.html: -------------------------------------------------------------------------------- 1 | {{ define "header" }} 2 | {{ partial "menu" . }} 3 |
    4 |
    5 |
    6 |
    7 |

    {{ .Site.Params.projects.indicator }}

    8 |
    9 |
    10 |
    11 |
    12 | 13 | {{ end }} 14 | 15 | 16 | {{ define "main" }} 17 |
    19 |
    20 |
    21 |
    22 |
    23 |
    24 | {{ range .Paginator.Pages }} 25 |
    26 | {{ partial "list/card.html" .}} 27 |
    28 | {{ end }} 29 |
    30 |
    31 |
    32 | 33 | 34 |
    35 |
    36 | {{ if gt .Paginator.TotalPages 1 }} 37 | {{ partial "pagination" . }} 38 | {{ end }} 39 |
    40 |
    41 | 42 |
    43 |
    44 |
    45 | {{ partial "list/tags.html" .}} 46 |
    47 |
    48 |
    49 | 50 |
    51 | {{ end }} 52 | {{ define "footer" }} 53 | {{ partial "footer" . }} 54 | {{ end }} -------------------------------------------------------------------------------- /layouts/shortcodes/c.html: -------------------------------------------------------------------------------- 1 | {{ $filename := (cond (ne (.Get "ref") nil) (.Get "ref") (.Get 0)) }} 2 | {{ $showname := (cond (ne (.Get "title") nil) (.Get "title") (.Get 1)) }} 3 | 4 | {{ with $.Site.GetPage $filename }} 5 | 6 | 7 | {{ if $showname }} 8 | [[{{ $showname }}]] 9 | {{ else }} 10 | [[{{ .Title }}]] 11 | {{ end }} 12 | 13 | 14 | {{ if .Params.title }} 15 | {{ .Title | truncate 500 }} 16 | {{ end }} 17 | {{ if .Params.description }} 18 | {{ .Params.description | truncate 500 }} 19 | {{ else }} 20 | {{ .Summary | truncate 500 }} 21 | {{ end }} 22 | 23 | 24 | 25 | {{ end }} -------------------------------------------------------------------------------- /layouts/shortcodes/card.html: -------------------------------------------------------------------------------- 1 |
    2 |
    3 | 4 | {{ with (.Get "title") }} 5 | {{ . | markdownify }} 6 | {{ end }} 7 | 8 |
    9 |
    10 | {{ .Inner | markdownify}} 11 |
    12 |
    13 | 14 |
    15 |
    -------------------------------------------------------------------------------- /layouts/shortcodes/cite.html: -------------------------------------------------------------------------------- 1 | {{ $key := .Get "key" }} 2 | {{ $refs := .Page.Params.references }} 3 | 4 | {{ range $refs }} 5 | {{ if eq $key .key }} 6 | {{ if .key }} 7 | 8 | {{.key}} 9 | 10 | {{ end }} 11 | {{ .name }} 12 | {{ end }} 13 | {{ end }} -------------------------------------------------------------------------------- /layouts/shortcodes/e.html: -------------------------------------------------------------------------------- 1 | {{ $filename := (cond (ne (.Get "ref") nil) (.Get "ref") (.Get 0)) }} 2 | {{ $showname := (cond (ne (.Get "title") nil) (.Get "title") (.Get 1)) }} 3 | {{ $isfull := (cond (ne (.Get "isfull") nil) (.Get "isfull") (.Get 2)) }} 4 | {{ $truncate := (cond (ne (.Get "truncate") nil) (.Get "truncate") (.Get 3)) | default 500 }} 5 | {{ $class := (cond (ne (.Get "class") nil) (.Get "class") (.Get 4)) }} 6 | 7 | {{/* {{ if $truncate = -1 }} 8 | {{ $truncate = 999999 }} 9 | {{ end }} */}} 10 | 11 | {{ with $.Site.GetPage $filename }} 12 | 13 | 14 | 15 |
    16 |
    17 |
    {{ if $showname }} 18 | {{ $showname }} 19 | {{ else }} 20 | {{ .Title }} 21 | {{ end }} 22 | 23 |
    24 |
    25 | {{ if (findRE "{{<\\s{1}[c|e]\\s+(.+?)\\s+" .RawContent) }} 26 | {{/* {{ $truncate = 500 }} */}} 27 | {{ if .Params.description }} 28 | {{ .Params.description | safeHTML | truncate ($truncate) }} 29 | {{ else }} 30 | {{ .RawContent | replaceRE "{{<.*?>}}" "" | replaceRE "#.*?\\s+" "" | replaceRE "\\[.*?\\]" "" | markdownify | safeHTML | truncate ($truncate) }} 31 | {{ end }} 32 | {{ else }} 33 | {{ if $isfull}} 34 | {{ .Content | safeHTML | truncate ($truncate) }} 35 | {{ else if .Params.description }} 36 | {{ .Params.description | safeHTML | truncate ($truncate) }} 37 | {{ else }} 38 | {{ .Summary | safeHTML | truncate ($truncate) }} 39 | {{ end }} 40 | {{ end }} 41 |
    42 |
    43 |
    44 |
    45 | 46 | {{ end }} -------------------------------------------------------------------------------- /layouts/shortcodes/echarts.html: -------------------------------------------------------------------------------- 1 | {{ $id := (cond (ne (.Get "id") nil) (.Get "id") (.Get 0)) }} 2 | {{ $height := (cond (ne (.Get "height") nil) (.Get "height") (.Get 1)) }} 3 | 4 |
    5 | 6 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /layouts/shortcodes/figure.html: -------------------------------------------------------------------------------- 1 | 2 | {{- if .Get "link" -}} 3 | 4 | {{- end }} 5 | {{ with .Get 12 | {{- if .Get "link" }}{{ end -}} 13 | {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}} 14 |
    15 | {{ with (.Get "title") -}} 16 |
    {{ . }}
    17 | {{- end -}} 18 | {{- if or (.Get "caption") (.Get "attr") -}}

    19 | {{- .Get "caption" | markdownify -}} 20 | {{- with .Get "attrlink" }} 21 | 22 | {{- end -}} 23 | {{- .Get "attr" | markdownify -}} 24 | {{- if .Get "attrlink" }}{{ end }}

    25 | {{- end }} 26 |
    27 | {{- end }} 28 | -------------------------------------------------------------------------------- /layouts/shortcodes/m.html: -------------------------------------------------------------------------------- 1 |

    $${{.Inner}}$$

    2 | -------------------------------------------------------------------------------- /layouts/shortcodes/math.html: -------------------------------------------------------------------------------- 1 |

    $${{.Inner}}$$

    -------------------------------------------------------------------------------- /layouts/shortcodes/mermaid.html: -------------------------------------------------------------------------------- 1 |
    {{ safeHTML .Inner }}
    2 | -------------------------------------------------------------------------------- /layouts/shortcodes/message.html: -------------------------------------------------------------------------------- 1 | {{ $class := (.Get "class") }} 2 | {{ $markdownify := (.Get "markdownify") | default "y" }} 3 |
    4 | {{ with (.Get "title") | markdownify }} 5 |
    6 |

    {{ . | markdownify }}

    7 |
    8 | {{ end }} 9 |
    10 | {{ if eq $markdownify "y"}} 11 | {{ .Inner | markdownify }} 12 | {{ else }} 13 | {{ .Inner }} 14 | {{ end }} 15 |
    16 |
    17 | 18 | -------------------------------------------------------------------------------- /layouts/shortcodes/plotly.html: -------------------------------------------------------------------------------- 1 | {{ $id := (.Get "id") }} 2 |
    3 |
    4 | Please specify a param called id to be the id of the div 5 |
    6 | 26 |
    -------------------------------------------------------------------------------- /layouts/shortcodes/rawhtml.html: -------------------------------------------------------------------------------- 1 | 2 | {{.Inner}} -------------------------------------------------------------------------------- /layouts/shortcodes/typeform-button.html: -------------------------------------------------------------------------------- 1 |
    2 | 3 |
    -------------------------------------------------------------------------------- /static/images/icons/agency.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/airtable.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/algolia.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/bootstrap.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/brunch.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/bulma.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /static/images/icons/contentful.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/datocms.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/firebase.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/forestry.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/formspree.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/formstack.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/gatsby.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/ghost.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/github.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/gridsome.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/hexo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/hugo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/jekyll.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/metalsmith.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 10 | 12 | 13 | 15 | 16 | 22 | 24 | 25 | 26 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /static/images/icons/middleman.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/mkdocs.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/no-cms.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/nocms.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/noun_Square Abstract_327754.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/noun_Triangle Abstract_327762.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/noun_Twelve Triangles_327786.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/noun_creating_327731.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/noun_down_329586.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/noun_triangles_327743.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/noun_triangles_329583.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/nuxt.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/portfolio.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/prismic.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/sanity.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/sass.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/snipcart.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/stackbit.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/tailwind.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /static/images/icons/unibit.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/icons/wordpress.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/logos/logo-banner-margin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/static/images/logos/logo-banner-margin.png -------------------------------------------------------------------------------- /static/images/logos/logo-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/static/images/logos/logo-banner.png -------------------------------------------------------------------------------- /static/images/logos/logo-square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/static/images/logos/logo-square.png -------------------------------------------------------------------------------- /static/images/social/github.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/social/linkedin.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/social/medium.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/social/twitter.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/img/404.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/static/img/404.png -------------------------------------------------------------------------------- /static/img/splash/undraw_to_the_moon_v1mv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/static/img/splash/undraw_to_the_moon_v1mv.png -------------------------------------------------------------------------------- /static/js/bulma.js: -------------------------------------------------------------------------------- 1 | document.addEventListener('DOMContentLoaded', () => { 2 | 3 | // Get all "navbar-burger" elements 4 | const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0); 5 | 6 | // Check if there are any navbar burgers 7 | if ($navbarBurgers.length > 0) { 8 | 9 | // Add a click event on each of them 10 | $navbarBurgers.forEach(el => { 11 | el.addEventListener('click', () => { 12 | 13 | // Get the target from the "data-target" attribute 14 | const target = el.dataset.target; 15 | const $target = document.getElementById(target); 16 | 17 | // Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu" 18 | el.classList.toggle('is-active'); 19 | $target.classList.toggle('is-active'); 20 | 21 | }); 22 | }); 23 | } 24 | 25 | }); -------------------------------------------------------------------------------- /static/js/clip.js: -------------------------------------------------------------------------------- 1 | /* 2 | * clipboard for hugo 3 | */ 4 | 5 | (function(document, Clipboard) { 6 | 7 | var $codes = document.querySelectorAll('pre'); 8 | 9 | function addCopy(element) { 10 | var copy = document.createElement("button"); 11 | copy.className = "copy button is-pulled-right"; 12 | copy.textContent = "copy"; 13 | element.append(copy); 14 | } 15 | 16 | for (var i = 0, len = $codes.length; i < len; i++) { 17 | addCopy($codes[i]); 18 | } 19 | 20 | 21 | new Clipboard('.copy', { 22 | target: function(trigger) { 23 | return trigger.previousElementSibling; 24 | } 25 | }); 26 | })(document, Clipboard); -------------------------------------------------------------------------------- /static/logos/logo-banner-margin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/static/logos/logo-banner-margin.png -------------------------------------------------------------------------------- /static/logos/logo-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/static/logos/logo-banner.png -------------------------------------------------------------------------------- /static/logos/logo-square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kausalflow/connectome/472c5d5133ff7789e3fd0675437eef6bdd40d226/static/logos/logo-square.png -------------------------------------------------------------------------------- /theme.toml: -------------------------------------------------------------------------------- 1 | # theme.toml template for a Hugo theme 2 | # See https://github.com/gohugoio/hugoThemes#themetoml for an example 3 | 4 | name = "Connectome" 5 | license = "MIT" 6 | licenselink = "https://github.com/kausalflow/connectome/master/LICENSE.md" 7 | description = "Connectome is a Hugo theme for sharing community notes with backlinks" 8 | homepage = "http://kausalflow.com" 9 | tags = ["backlinks", "academia", "notes", "responsive", "bulma", "blog", "themes"] 10 | features = [ 11 | "articles with backlinks", 12 | "multi-notebooks" 13 | ] 14 | min_version = "0.59.0" 15 | 16 | [author] 17 | name = "kausalflow" 18 | homepage = "http://kausalflow.com/" 19 | 20 | # If porting an existing theme 21 | [original] 22 | name = "Bulma" 23 | homepage = "http://blog.elemnts.org/" 24 | repo = "https://github.com/jeblister/bulma/" 25 | --------------------------------------------------------------------------------