Yukuro / hugo-theme-shell

Hugo Shell theme : Terminal-like theme with selectable color schemes.
https://hugo-theme-shell-example.vercel.app/
MIT License
327 stars 109 forks source link

Navbar, list.html, and visual extensions #20

Closed 0xBlue2 closed 2 years ago

0xBlue2 commented 2 years ago

A full explanation is here - https://github.com/dancingbear344/hugo-theme-shell

It adds features for a navbar at the bottom, a list.html page to list pages, and the ability to list extensions after single pages to distinguish them from directories.

The navbar and extensions are completely optional: (in config.toml)

[Params.Navbar]
  use = true # false if you don't want it

[Params.Extensions]
  use = true # false if you don't want it
  ext = ".txt" # extension to add after single page

Currently, the only way to remove the listing ability is to delete list.html or make it blank, but doing so doesn't break anything, so if people don't want it, it's easy to remove.

0xBlue2 commented 2 years ago

Theres a CHANGES file in the pull request that shows what code I added and where I added it too.

Yukuro commented 2 years ago

Thanks for the PR ! This navbar is very cool.

I am going to merge this PR. However, I may change the appearance of some of them to organize the files. So be aware that the look may not be as you PR.

0xBlue2 commented 2 years ago

Thanks! Change it as you like!

0xBlue2 commented 2 years ago

I forgot to update this, I used the wrong comments for baseof.html so "# Additions start/stop here" shows up as actual text instead of being just a comment

https://github.com/Yukuro/hugo-theme-shell/blob/0528c569a72c95558ca5df2d09a5c4f88e380aff/layouts/_default/baseof.html#L11