Back to Rclone

Features Table

docs/layouts/shortcodes/features-table.html

1.74.01.9 KB
Original Source
NameTierHashModTimeCase InsensitiveDuplicate FilesMIME TypeMetadata
{{ range sort hugo.Data.backends "name" "asc" }} {{ if .virtual }}{{ continue }} {{ end }}[{{ .name }}](/{{%20.backend%20%20urlize%20}}){{/* Tier Column */}} {{ partial "tier.html" (dict "name" .backend "align" false) }}{{/* Hash Column */}} {{ $local := in .features "IsLocal" }} {{ if $local }} ALL {{ else }} {{ with .hashes }} {{ delimit . ", " }} {{ else }} - {{ end }} {{ end }}{{/* ModTime */}} {{ $d := or (in .features "MkdirMetadata") (in .features "DirSetModTime") }} {{ $r := true }} {{/* FIXME don't have a way of reading this from the features */}} {{ $w := and (isset . "precision") (le .precision 1000000000) }} {{- if $d -}} D {{- end -}} {{ if and $r $w -}} R/W {{- else if $r -}} R {{- else if $w -}} W {{- else -}} - {{- end -}}{{/* Case Insensitive */}} {{ partial "bool.html" (in .features "CaseInsensitive") }}{{/* Duplicate Files */}} {{ partial "bool.html" (in .features "DuplicateFiles") }}
{{ end }}