Keeps logo size across languages and resolves mobile menu overlap (#68)
## Header  ## Mobile menu | | | | --- | --- | |  |  | Reviewed-on: #68
This commit is contained in:
parent
91f48051fd
commit
75a8d446e4
1 changed files with 483 additions and 102 deletions
20
README.md
20
README.md
|
|
@ -16,6 +16,26 @@ hugo server --buildFuture --buildDrafts
|
|||
|
||||
Then open http://localhost:1313
|
||||
|
||||
The header uses the logo dimensions in `hugo.yaml` in both languages, without
|
||||
shrinking the logo to fit the text. With JavaScript enabled, screens up to 666px
|
||||
wide use a flat, borderless full-width menu button at the bottom and a scrollable
|
||||
panel above it. The language link spans the panel's content width, includes the
|
||||
translation icon, and uses the same font size as the menu links.
|
||||
The page reserves space for the button so it does not cover content.
|
||||
|
||||
## Brand spelling check
|
||||
|
||||
Hugo builds check content source lines for the name `Hackertours` in any other
|
||||
casing and report the file and line as build errors for pages included in the
|
||||
build. URLs, email addresses, social handles, Matrix room addresses and
|
||||
Markdown link destinations are excluded. Commented-out content is checked too,
|
||||
so it is ready to publish.
|
||||
|
||||
For an intentional exception, add `<!-- hackertours-lint-ignore -->` at the
|
||||
end of a Markdown line, or `# hackertours-lint-ignore` at the end of a YAML
|
||||
front matter line. This ignores that entire source line, so keep unrelated
|
||||
occurrences on other lines.
|
||||
|
||||
## Shortcode: Language badge
|
||||
|
||||
Use the `lang` shortcode to mark whether a tour is in German, English or bilingual. It renders a small superscript badge next to the text, with details when hovered over or parsed by a screenreader.
|
||||
|
|
|
|||
Loading…
Reference in a new issue