Add some nobreak spans around data in the photos EXIF table
This commit is contained in:
parent
7f48047610
commit
50c181f2fd
1 changed files with 3 additions and 1 deletions
|
@ -21,7 +21,9 @@
|
|||
{{ $heightpx := .Tags.PixelYDimension }}
|
||||
{{ if and (gt $widthpx 0) (gt $heightpx 0) }}
|
||||
{{ $megapixels := div (mul $widthpx $heightpx) 1e6 }}
|
||||
<data value="{{ $megapixels }}">{{ $megapixels | lang.FormatNumber 0 }} MP</data> • {{ $widthpx }} × {{ $heightpx }}
|
||||
<span class="nobreak"><data value="{{ $megapixels }}">{{ $megapixels | lang.FormatNumber 0 }} MP</data></span>
|
||||
•
|
||||
<span class="nobreak">{{ $widthpx }} × {{ $heightpx }}</span>
|
||||
{{ end }}
|
||||
</td>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue