Coder Social home page Coder Social logo

Comments (8)

jarodise avatar jarodise commented on May 18, 2024 4

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.

jevakallio avatar jevakallio commented on May 18, 2024 1

@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.

khimaros avatar khimaros commented on May 18, 2024

@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.

riccardoferretti avatar riccardoferretti commented on May 18, 2024

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.

riccardoferretti avatar riccardoferretti commented on May 18, 2024

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.

wcerfgba avatar wcerfgba commented on May 18, 2024

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:

from foam.

khimaros avatar khimaros commented on May 18, 2024

was this fixed by a PR or decided not to fix?

from foam.

riccardoferretti avatar riccardoferretti commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.