Comments (8)
Yeah, basically, the idea is to able to create a static site where I can publish my notes and showcase the linkage between the notes, similar to a public Roam database, where the linked pages shown below the note. This kind of site is nowadays referred as "Digital Gardens". For your reference, you can check out this Github repo: https://github.com/MaggieAppleton/digital-gardeners
from foam.
@jarodise do you mean the link reference fields, like this?
[//begin]: # "Autogenerated link references for markdown compatibility"
[on-change]: on-change "onChange"
[//end]: # "Autogenerated link references"
These are currently an implementation detail and could possibly go away at some point, when I figure out better solutions to the [[mediawiki]]/markdown compatibility issue.
When I implement [Materialized Backlinks], I could trivially put in an option to generate "forward links" as well, if that would be useful?
from foam.
@jevakallio @riccardoferretti -- do you already have thoughts on how backlinks should be handled in Foam? do you already know how you want them to appear in the markdown or in the published HTML?
from foam.
There are various paths we can follow, here is what comes to mind:
The easiest approach would be to add a command that actually writes the backlinks in the files. this approach is in line with the wikilink definition approach, so it could follow the same pattern (including presence in the janitor)
I think a better approach would be to investigate whether it's possible in jekyll to have a sort of build step, which we would use to generate the backlinks from there (via the Foam model).
If this route turns out to work, we could even have the wikilink definitions be part of it (which means that you wouldn't need to use them unless you were publishing directly to GH web UI).
This is not at the top of the roadmap (which I am overdue to share an update of), but will be soon-ish.
In the meantime, if someone wants to take a stab at approach n.2 I can provide support.
from foam.
a quick search yielded this: https://jekyllrb.com/docs/rendering-process/
sounds like exactly what we need.
I am not familiar with Jekyll, but someone with more experience might be able to create a plugin or something to interface with Foam and generate the relevant data.
from foam.
There are a few projects linked from https://github.com/MaggieAppleton/digital-gardeners which provide backlinks in Jekyll, probably we could just lift some code from one of these? Here are some examples:
- https://github.com/maximevaillancourt/digital-garden-jekyll-template/blob/master/_plugins/bidirectional_links_generator.rb
- https://github.com/raghuveerdotnet/simply-jekyll/blob/master/_includes/backlinks.html
from foam.
was this fixed by a PR or decided not to fix?
from foam.
This is something that we don't support in Foam core, but is left to be implemented to the theme used for publishing
from foam.
Related Issues (20)
- The relative path with spaces in embed note should be encoded
- Double square brackets in math mode lead to unwanted placeholder.
- Link manipulations HOT 1
- Wikilink does not display H1 or title: of linked note in rendered markdown HOT 4
- Link references escape html in v0.25.6 HOT 4
- Expected a string TypeError
- Update dateformat requirement to latest (5.0.3) HOT 4
- License confusion HOT 1
- Creating a note from a template via wikilink doesn't work if the template has a custom filepath HOT 3
- Add wikilink syntax to control width of pictures in markdown preview HOT 3
- Issue Scrolling Markdown Preview with Transcluded Files included HOT 1
- Wikilink are not working in preview mode when using workspace HOT 4
- Add ability to use "advanced new file" interface with "create new note" HOT 5
- [Docs] Add Guide For Users Coming From Obsidian HOT 2
- Extension Bisect reports that Foam is the cause of vscode slowing to a crawl
- Add these quick markdown snippets I created HOT 2
- Wikilink markdown link generation deletes/recreates each time the file is saved HOT 1
- Link to a section does not reflect in linked note's backlinks HOT 1
- Foam v0.25.9 very slow HOT 13
- The regex for YAML closing delimiter is to permissive
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from foam.