Add alt text to 3d models

This commit is contained in:
Joshua Goins 2023-04-13 12:49:55 -04:00
parent ed16fa93e3
commit 1f92cec6f3
3 changed files with 2 additions and 4 deletions

View file

@ -4,7 +4,6 @@
"Sakura" "Sakura"
], ],
"date": "2021", "date": "2021",
"description": "This is a collage of all of my 2022 art!",
"nsfw": false, "nsfw": false,
"title": "Sakura", "title": "Sakura",
"tags": ["3D"], "tags": ["3D"],

View file

@ -16,4 +16,3 @@ arttags:
- 3d - 3d
nsfw: false nsfw: false
--- ---
This is a collage of all of my 2022 art!

View file

@ -8,10 +8,10 @@
{{ $cameraorbit := $.Params.orbit }} {{ $cameraorbit := $.Params.orbit }}
{{ $cameratarget := $.Params.target }} {{ $cameratarget := $.Params.target }}
{{ $fov := $.Params.fov }} {{ $fov := $.Params.fov }}
<model-viewer src="{{ .RelPermalink }}" shadow-intensity="1" camera-controls touch-action="pan-y" camera-orbit="{{ $cameraorbit }}" camera-target="{{ $cameratarget }}" field-of-view="{{ $fov }}"></model-viewer> <model-viewer alt="{{ $.Params.alt_text }}" title="{{ $.Params.alt_texT }}" src="{{ .RelPermalink }}" shadow-intensity="1" camera-controls touch-action="pan-y" camera-orbit="{{ $cameraorbit }}" camera-target="{{ $cameratarget }}" field-of-view="{{ $fov }}"></model-viewer>
{{ else }} {{ else }}
{{ if $.Params.animation }} {{ if $.Params.animation }}
<div style="text-align: center;"> <div style="text-align: center;">
<video controls> <video controls>
<source src="{{ .RelPermalink }}" type="video/webm"> <source src="{{ .RelPermalink }}" type="video/webm">
</video> </video>