Coder Social home page Coder Social logo

speyll / anemone Goto Github PK

View Code? Open in Web Editor NEW
69.0 2.0 34.0 540 KB

A Zola theme embracing minimalism, focusing on clean CSS while steering clear of resource-heavy JavaScript. Immerse yourself in a seamless user experience, powered by lightning-fast load times. ⚡

Home Page: https://anemone.pages.dev/

License: MIT License

HTML 77.89% CSS 9.97% JavaScript 12.14%
zola zola-site zola-theme css css-grid css3 html html-css-javascript html5 javascript

anemone's People

Contributors

astrale-sharp avatar heilasuka avatar horgix avatar speyll avatar wyvernixtl avatar zaaarf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

anemone's Issues

Minor bug with setting default between dark/light mode

Hi, I encountered a bug where the setting for default_theme in config.toml wasn't properly applying when default was set to "dark."

After some digging, I found that line 9 in static/js/script.js isn't working as intended:

if (!hasCodeRun) {
  const defaultTheme = "{{ config.extra.default_theme }}";
  setTheme(defaultTheme);
  localStorage.setItem('hasCodeRun', 'true');
}

{{ config.extra.default_theme}} was getting passed to defaultTheme instead of just dark.

I managed to get it to work as intended by copying the whole script into templates/head.html.

Love the theme, by the way.

How to move toc underneath title?

Is there a way to include a # Heading above the table of contents? I usually want my title to be above it. In particular, it would be awesome if there was a way to choose an arbitrary location for the table of contents.

Scroll instead of wrapping in code blocks

First, I want to thank everybody involved in the project for creating and maintaining it.

On mobile, code wrapping makes it harder to read, and I'd like to have an option to enable scrolling instead. Would that be possible?

Add multilingual header navigation

Hi, first of all, I really like your theme! Thank you for this contribution :>

However, what I am really missing is multilingual support for the header navigation.
I tried adding header_nav in both the [languages] section and the following:

[extra]
languages = [ { ..., header_nav = ... } ]

but none is working.

Is there a way how to achieve this? Or could you maybe add this feature?

Missing Footer Options for Content License

I think the footer should look something like this:

license regarding content of the page && link to said license 
The theme is licensed under MIT
Built with Zola using anemone theme & veqev colors.

As an example:

Content of this webpage if not expressly stated otherwise is licensed under CC BY.
Theme licensed under MIT
Built with Zola using anemone theme & veqev colors.

Error when defining extra.nav_bar following instructions

Beautiful beautiful theme, loving the colors and style ❤️

Instruction followed :

here

Error :

Reason: Variable `nav_item[lang]` not found in context while rendering 'header.html': the evaluated version was `nav_item."en"`. Maybe the index is out of bounds?

Description

I believe the following in theme/anemone/config.toml must be added to/adapted when the header must be added.

[[extra.header_nav]]
en = { name = "/home/", url = "/" }
fr = { name = "/accueil/", url = "/fr" }

[[extra.header_nav]]
en = { name = "/about/", url = "/about" }
fr = { name = "/concernant/", url = "/about" }

[[extra.header_nav]]
en = { name = "/journal/", url = "/journal" }
fr = { name = "/journal/", url = "/journal" }

[[extra.header_nav]]
en = { name = "/blog/", url = "/blog" }
fr = { name = "/blog/", url = "/blog" }

Work Around

copy and adapt this in your config.toml

Hugo port?

I really liked this theme, can you try porting it to hugo?

How to set header_nav links for hosting in a domain subfolder?

Hello, I am facing an issue with header_nav links:
I added

[[extra.header_nav]]
en = { name = "/home", url = "/" }
# fr = { name = "/accueil", url = "/fr" }

[[extra.header_nav]]
en = { name = "/about", url = "/about" }

[[extra.header_nav]]
en = { name = "/m1", url = "/m1" }

to my config.toml file, and uses zola build with --base-url <my-subfolder> option.
The links with get_url works well, but those header_nav links does not use get_url, so it redirects me out of my zola website.
How could I correct this ?
I would like to avoid hard-coding the subfolder in the url value...

Thanks in advance

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.