Code Monkey home page Code Monkey logo

Comments (4)

piranha avatar piranha commented on August 25, 2024

It does seem reasonable, but I'm not sure how to approach implementation. Right now the only array of strings possible is a list of tags, and others are a bit hard to implement because of Go's typing.

Not sure if you know Go, but if you look at header struct, you can see there are some predefined fields and everything else is put in Other (line 62 of same file) as a string. I could change Other signature to be map[string]interface{}, and try to parse based on value or a name (so we could say that to have array you have to write its name as morestyles[]) - but that sounds a bit scary + could fetch quite a bit of work.

After I wrote this rant I understood that I could just add split function to templates and you could do {{ range split .Other.Morestyles "," }}. :-) Stay tuned!

from gostatic.

piranha avatar piranha commented on August 25, 2024

Enjoy new version! :-)

from gostatic.

ottob avatar ottob commented on August 25, 2024

Perfect, thanks!

One other small thing I noted: below Quick Start in readme it says site.html I guess that should be site.tmpl now.

from gostatic.

piranha avatar piranha commented on August 25, 2024

Yeah, site.tmpl, fixed now, thanks! :)

from gostatic.

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.