Code Monkey home page Code Monkey logo

Comments (1)

cannibalox avatar cannibalox commented on June 11, 2024 1

these were just experiments to add a relevant data-refs-self attribute to properties :
the logseq DOM is like this:
ss_20230125_NUC8_ugzRHjhaHd
the custom.js adds attributes with the name of the property key
ss_20230125_NUC8_3b4woAfCE3

then it's easier to manipulate or style the page based on properties.
For instance, the property bg-pic:: ![](link_to_image) lets you embed an image that will be displayed ad the page background :
usage: add bg-pic:: ![](https://images.unsplash.com/photo-1521106581851-da5b6457f674?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwyNDYwNDl8MHwxfHNlYXJjaHwyfHxjYXZlfGVufDB8fHx8MTY3NDYwMjc2MA&ixlib=rb-4.0.3&q=80&w=1920) and it will show up as
ss_Logseq_Indiana_Jones_and_the_Raiders_of_the_Lost_Ark_ 19_20230125_isdqZo6IVN
it works well with the unsplash plugin, just make sure to edit the end of the url where it says 'w=400`, adjust it to the width of the page

that being said, I believe some plugins like awesome UI/styler also let you add banners and background images with a proper ui.

from logseq-custom-files.

Related Issues (9)

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.