hackertours/layouts/_partials/lint-brand.html
Vincent Mahnke 75a8d446e4
All checks were successful
/ build (push) Successful in 1m14s
/ accessibility (push) Successful in 2m2s
Keeps logo size across languages and resolves mobile menu overlap (#68)
## Header

![image](/attachments/dd741d30-ffbe-49ad-b717-cd3e7bd46bcb)

## Mobile menu
| | |
| --- | --- |
| ![localhost_8888_en_ (1)](/attachments/ce78aa3d-b229-457a-add5-0d5e3ddc71ec) | ![localhost_8888_en_](/attachments/ae1832d5-605d-4bd5-b41a-b7fe9d6e14e5) |

Reviewed-on: #68
2026-11-07 21:28:53 +01:00

15 lines
820 B
HTML

{{- with .File -}}
{{- $file := . -}}
{{- $source := readFile .Filename -}}
{{- range $index, $line := split $source "\n" -}}
{{- if not (findRE `(?:#\s*hackertours-lint-ignore|<!--\s*hackertours-lint-ignore\s*-->)\s*$` $line) -}}
{{- $text := replaceRE `\]\([^)]*\)` "]" $line -}}
{{- $text = replaceRE `(?i)(?:https?://|mailto:|www\.)[^\s<>"']+|[[:alnum:]._%+-]+@[[:alnum:]._-]+|@[[:alnum:]_]+|#[[:alnum:]_-]+:[[:alnum:]._-]+` "" $text -}}
{{- range findRE `(?i)\bhackertours\b` $text -}}
{{- if ne . "Hackertours" -}}
{{- errorf "%s:%d: %q should be \"Hackertours\" (different casing) - to ignore this, add a hackertours-lint-ignore comment on this line" $file.Filename (add $index 1) . -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}