Giter Club home page Giter Club logo

Comments (11)

Visual-Dawg avatar Visual-Dawg commented on June 16, 2024 2

Thank you! Also a huge thanks for creating this theme. It is by far the best looking theme for Hugo out there

from hextra.

Visual-Dawg avatar Visual-Dawg commented on June 16, 2024

Now that I think about it: It might be better UX if the folder name only toggles the list and is not a link to a site itself, as this can be unexpected and makes it harder to find the data you are looking for (or clicking on it just list the subpages)

Edit: I had an even better idea:
By default, if no _index.md is set, it simply shows the links to the subpages.

But, one also add an _index.md with a token like {{ subpages > }}, to allow for adding more information about the category itself :)

from hextra.

imfing avatar imfing commented on June 16, 2024

Currently when a folder has no _index.md and you click on its name in the sidebar, you get redirected to a blank article page.

Hi, can you provide more details on how to reproduce this?

from hextra.

Visual-Dawg avatar Visual-Dawg commented on June 16, 2024

This is weird. I cloned the Hextra template, removed the _index.md from folder and it works as expected.

Whereas with the files from https://github.com/visual-dawg/hyprland-wiki it creates odd behaviour. Not sure why though.
I will clone its contents into the starter repo and see if maybe my setup was simply wrong

from hextra.

Visual-Dawg avatar Visual-Dawg commented on June 16, 2024

I created a reproducible repo using the start template here: https://github.com/Visual-Dawg/hextra-bug-report/tree/main

Edit: Here are the files using the Geekdocs theem: https://wiki.hyprland.org/

from hextra.

imfing avatar imfing commented on June 16, 2024

thanks, will look into it 👍

from hextra.

AndyRaphael avatar AndyRaphael commented on June 16, 2024

Hello
I am also interested in this. I tried to create a custom view by adding a list.html to the layouts/blog folder and copied the content from the hextra\layouts\blog\list.html file. However, this causes the page to render incorrectly. all the content is displayed one another. Instead of "sidebar | content | toc", it shows
"Sidebar
toc
content"

from hextra.

imfing avatar imfing commented on June 16, 2024

@AndyRaphael

I tried to create a custom view by adding a list.html to the layouts/blog folder and copied the content from the hextra\layouts\blog\list.html file. However, this causes the page to render incorrectly. all the content is displayed one another. Instead of "sidebar | content | toc", it shows
"Sidebar
toc
content"

regarding this, can you open a separate discussion?

from hextra.

AndyRaphael avatar AndyRaphael commented on June 16, 2024

Thank you for your great looking template. Looking forward to this update to show folder content automatically.

from hextra.

imfing avatar imfing commented on June 16, 2024

@Visual-Dawg

I created a reproducible repo using the start template here: https://github.com/Visual-Dawg/hextra-bug-report/tree/main

This should be fixed by #325

but I guess you've added _index.md to every sub-directories already :)

from hextra.

Visual-Dawg avatar Visual-Dawg commented on June 16, 2024

Nice, thank you! Yes, we did, but good to know for the future :D

from hextra.

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.