Giter Site home page Giter Site logo

Comments (3)

welpo avatar welpo commented on May 24, 2024 1

Hi! Thanks for your kind comments. I'm glad you enjoy the theme.

Removing multilingual support

To remove multilingual support, two things are needed:

  • Removing all *.es.* and *.ca.* files, including the various _index files.
  • Removing or commenting out these lines in config.toml.

I just did this with a fresh clone of the theme, and I couldn't reproduce the error you shared. Can you verify you removed all files/config lines? Are you still having the issue?

Creating new templates

For your modification, that's one way to do it, certainly! If you're sure you'll never want to use the previous template, your method works. You could also create a new template, and use it on your _index.md by modifying the template = line (see the docs). Either way works.

Customising tabi

Building this theme was my first approach to the world of SSGs/Rust/Zola. Keep in mind the templates aren't actually written in Rust, but rather in the Tera template engine, which is very similar to Jinja2, Liquid and Twig.

I built this theme by cloning another one (shadharon) and slowly changing stuff to my liking. It wasn't easy at first, but it does get easier the more time you spend with it. I'd suggest three things:

  • Look around the Tera documentation
  • Explore how other themes are built.
  • GPT-4 can be quite helpful, though a bit stubborn. You need to remind it Tera is not identical to Jinja, and give it context and, some times, the relevant part of the docs. It can really speed up the initial approach, in my experience.

Have fun!

from tabi.

sandman avatar sandman commented on May 24, 2024 1

Many thanks for taking the time to write such a clear and complete response @welpo !

I will experiment with Tera and customise/create new templates to extend tabi. Are you open to receiving Pull Requests?

from tabi.

sandman avatar sandman commented on May 24, 2024 1

I just read the Contributing Guidelines, no need to respond to my question :)

from tabi.

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.