hanwenguo / hugo-theme-nostyleplease

a (nearly) no-CSS, fast, minimalist Hugo theme ported from riggraz/no-style-please.
MIT License
218 stars 81 forks source link

CSS update and new shortcode #25

Closed jkkNl closed 2 months ago

jkkNl commented 2 months ago
  1. I added two aesthetic styles (“clean” and “retro”).
  2. I made changes that correct previous errors. Previously, the border of the TOC (table of content) was hard-set to black - this resulted in the fact that in dark mode it was not visible. Similarly, with the highlighting of a section of text (after clicking on the TOC) - this was hard-set while it should be adjusted to the selected color scheme of the page.
  3. I added to “shortcodes” a function that allows you to apply conveniently basic HTML "details" (which is not included in the specification). This is useful if you want to be able to expand and hide, for example, a longer piece of text. This has also been included in the CSS so that it looks aesthetically pleasing.
  4. I changed the readme.md - to make it easier for others to use the template.
  5. I added an example draft post - to show how to use the TOC function, details and change styles.