Skip to content

Commit

Permalink
fix(theme): Make fixes to the 3d model viewer page
Browse files Browse the repository at this point in the history
  • Loading branch information
etu committed Apr 15, 2024
1 parent 3ae9409 commit 228c8df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/layouts/3d-models/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h1>{{ .Title }}</h1>
{{ range $_, $model := .Params.model3d }}
<div class="model3d">
<h2>{{ $model.title }}</h2>
{{ if isset $model "description" }}
{{ if and (isset $model "description") (gt (len $model.description) 0) }}
<p>{{ $model.description }}</p>
{{ end }}
{{ range $_, $file := $model.files }}
Expand All @@ -29,7 +29,7 @@ <h2>{{ $model.title }}</h2>
ar-status="not-presenting"></model-viewer>
</div>
{{ end }}
{{ if isset $model "homepage"}}
{{ if and (isset $model "homepage") (gt (len $model.homepage) 0) }}
<p>Homepage: <a href="{{ $model.homepage }}">{{ $model.homepage }}</a></p>
{{ end }}
{{ if isset $model "license" }}
Expand Down
3 changes: 2 additions & 1 deletion test/content/3d-models.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ title: 3D Models
type: 3d-models
model3d:
- title: Test viewing of Neil Armstrong
description: This is a test with a 3d model of Neil Armstrongn
description: This is a test with a 3d model of Neil Armstrong
homepage: https://example.org/
files:
- name: NeilArmstrong.3mf
modelFile: https://via.placeholder.com/150
Expand Down
1 change: 1 addition & 0 deletions test/content/3d-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ type: 3d-models
model3d:
- title: Test visning av Neil Armstrong
description: Detta är ett test med en 3d-modell av Neil Armstrong
homepage: https://example.org/
files:
- name: NeilArmstrong.3mf
modelFile: https://via.placeholder.com/150
Expand Down

0 comments on commit 228c8df

Please sign in to comment.