Git Product home page Git Product logo

Comments (4)

jgm avatar jgm commented on June 25, 2024

from yst.

karan-ta avatar karan-ta commented on June 25, 2024

Thank you john for fast and clear reply.
i wonder if i will be able to understand hakyll as easily as i got into yst.
i came to yst from the hakyll docs and saw the raw simplicity of yst which is appealing.
i have made good progress with my site with yst yesterday and today.
so for now i shall stick with yst.

I shall see if i can add this feature when i urgently need it.

i came across one more similar case of this type of feature need.

suppose i have a list of topics.
and each topic has a list of links.
and i want a display such as :
topic 1
link1 of topic 1
link2 of topic 2
link 3 of topic 3

topic 2
link1 of topic 2
link2 of topic 2
link 3 of topic 2

then my yaml starts becoming kinda long as follows
suppose the topics are philosophy, business, haskell, conrod,rust.

data :
topics : FROM topics.yaml ORDER BY position
philosophylinks : FROM philosophy.yaml ORDER BY step LIMIT 5
businesslinks : FROM business.yaml ORDER BY step LIMIT 5
haskelllinks : FROM haskell.yaml ORDER BY step LIMIT 5
metalearninglinks : FROM metalearning.yaml ORDER BY step LIMIT 5
conrodlinks : FROM conrod.yaml ORDER BY step LIMIT 5
rustlinks : FROM rust.yaml ORDER BY step LIMIT 5

and so on....

so a generator template / macro could be the answer for this too.

so i shall study hakyll and other solutions to try and implement this when my data starts getting bigger.

so maybe this issue can remain open for now for future refrence :)
or if you like - i can close it from here - as you wish.

from yst.

jgm avatar jgm commented on June 25, 2024

from yst.

karan-ta avatar karan-ta commented on June 25, 2024

+1
yes exactly.
This could also be useful for pagination use case.

from yst.

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.