c3re-website/themes/hugo-theme-flat
Dirk Heilig 5a7ee93024 make location pin feel clickable 2024-02-12 19:20:51 +01:00
..
archetypes Theme 'hugo-theme-flat' hinzugefuegt 2023-12-13 22:55:13 +01:00
exampleSite use pngcrush 2024-01-29 20:24:33 +01:00
images use pngcrush 2024-01-29 20:24:33 +01:00
layouts add favicon 2024-02-12 18:42:58 +01:00
static make location pin feel clickable 2024-02-12 19:20:51 +01:00
LICENSE Theme 'hugo-theme-flat' hinzugefuegt 2023-12-13 22:55:13 +01:00
README.md reformate md 2024-01-18 14:27:25 +01:00
theme.toml Theme 'hugo-theme-flat' hinzugefuegt 2023-12-13 22:55:13 +01:00

README.md

hugo-theme-flat

This is a theme I personally use.

Features

  • Dark theme support (auto switch by css media query)
  • Muti-Section supports
  • Side card to display recent updated sections
  • Responsive layout
  • Sub-menu support

Multi Section Supports

If you use multi sections (with the concept from hugo), the RSS at bottom and Recent at side are ready for displaying those content. However, you will need to set up your menu at config.toml to point the hyperlink to proper destination.

If you want to re-order those sections, you need a _index.md at the directory of the section to set proper weight at front matter, just alike what was done at the exampleSite, see /exampleSite/content/essays/_index.md. See the predefined variable weight at docs.

Note that separating taxonomies according to different sections is not implemented yet. So better to only use taxonomies inside a specific section.

For a better understand, if you have to posts A and B in section S1 and S2, both of the posts has the same tag T1, like the follow.

post A: section S1, tag T1, tag T2
post B: section S2, tag T2

When you open the index page of T1, there will be two posts, rathor than post A when you are in section S1 and post B when you are in section S2.

tag T1: post A, post B
tag T2: post A

Special Thanks

The wordpress theme Allium, and here is its home page. I like this theme very much when I'm using wordpress, but I don't have it on hugo, so I try my best to write a theme similar with it. There are many designs in this theme refers to it.

The hugo theme jane and mini, this is my first time to write a hugo theme, I referred this two themes' project structure and way of handling problems.