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"
],
"date": "2021",
"description": "This is a collage of all of my 2022 art!",
"nsfw": false,
"title": "Sakura",
"tags": ["3D"],

View file

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

View file

@ -8,7 +8,7 @@
{{ $cameraorbit := $.Params.orbit }}
{{ $cameratarget := $.Params.target }}
{{ $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 }}
{{ if $.Params.animation }}
<div style="text-align: center;">