Files
rclone/docs/layouts/shortcodes/img.html
Nick Craig-Wood 839a3b92e0 docs: modernize rclone.org site design
- replace Bootstrap/jQuery with purpose-built CSS and JS
- remove backend icons from navbar and content pages
- replace remaining FontAwesome icons with inline SVGs, remove FontAwesome
- modernize CSS styling for menus, typography, cards, tables, and code blocks
- add copy-to-clipboard buttons on code blocks using SVG icon
- move TOC to left sidebar with responsive overlay drawer
- add sticky header, top scrollbar and first column for wide tables
- add left/right arrow buttons to scrollable tables
- hide homepage logo on mobile
- make wide menus with filter for Commands and Storage Systems
- add dark mode support based on browser preference
- fix CSS/JS cache busting to use build time
2026-04-02 16:32:54 +01:00

2 lines
470 B
HTML

{{ with .Get "dark-src" }}<picture{{ with $.Get "class" }} class="{{ . }}"{{ end }} style="width:{{ $.Get "width" }}; {{ $.Get "style" | safeCSS }}"><source srcset="{{ . }}" media="(prefers-color-scheme: dark)"><img width="100%" src="{{ $.Get "src" }}" alt="{{ $.Get "alt" }}"></picture>{{ else }}<img width="{{ .Get "width" }}" src="{{ .Get "src" }}" alt="{{ .Get "alt" }}" style="{{ .Get "style" | safeCSS }}"{{ with .Get "class" }} class="{{ . }}"{{ end }}>{{ end }}