Skip to content

Commit

Permalink
Improve preview
Browse files Browse the repository at this point in the history
  • Loading branch information
cmahnke committed Sep 30, 2024
1 parent 882889c commit bc1e33d
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 31 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ content/post/*/back/
content/post/*/end/
content/post/*/preview.*
content/post/*/*.pdf
content/**/ogPreview.*g
content/files.lst
**/.DS_Store
static/fonts/**
Expand Down
2 changes: 1 addition & 1 deletion config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
outputSuffix = ".jpg"
format = "svg"
image = "front.jpg"
source = "file"
source = "post"
[params.preview.size]
height = 630
width = 1200
Expand Down
56 changes: 28 additions & 28 deletions content/post/hoert-auf-den-uhu/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,90 +13,90 @@ tags:
- BRD
- Deutsch
resources:
- src: "front.jpg"
- src: "front.jxl"
name: front
params:
iiif: front/info.json
class: front
- src: "page000.jpg"
- src: "page000.jxl"
params:
iiif: page000/info.json
- src: "page001.jpg"
- src: "page001.jxl"
params:
iiif: page001/info.json
- src: "page002.jpg"
- src: "page002.jxl"
params:
iiif: page002/info.json
- src: "page003.jpg"
- src: "page003.jxl"
params:
iiif: page003/info.json
- src: "page004.jpg"
- src: "page004.jxl"
params:
iiif: page004/info.json
- src: "page005.jpg"
- src: "page005.jxl"
params:
iiif: page005/info.json
- src: "page006.jpg"
- src: "page006.jxl"
params:
iiif: page006/info.json
- src: "page007.jpg"
- src: "page007.jxl"
params:
iiif: page007/info.json
- src: "page008.jpg"
- src: "page008.jxl"
params:
iiif: page008/info.json
- src: "page009.jpg"
- src: "page009.jxl"
params:
iiif: page009/info.json
- src: "page010.jpg"
- src: "page010.jxl"
params:
iiif: page010/info.json
- src: "page011.jpg"
- src: "page011.jxl"
params:
iiif: page011/info.json
- src: "page012.jpg"
- src: "page012.jxl"
params:
iiif: page012/info.json
- src: "page013.jpg"
- src: "page013.jxl"
params:
iiif: page013/info.json
- src: "page014.jpg"
- src: "page014.jxl"
params:
iiif: page014/info.json
- src: "page015.jpg"
- src: "page015.jxl"
params:
iiif: page015/info.json
- src: "page016.jpg"
- src: "page016.jxl"
params:
iiif: page016/info.json
- src: "page017.jpg"
- src: "page017.jxl"
params:
iiif: page017/info.json
- src: "page018.jpg"
- src: "page018.jxl"
params:
iiif: page018/info.json
- src: "page019.jpg"
- src: "page019.jxl"
params:
iiif: page019/info.json
- src: "page020.jpg"
- src: "page020.jxl"
params:
iiif: page020/info.json
- src: "page021.jpg"
- src: "page021.jxl"
params:
iiif: page021/info.json
- src: "page022.jpg"
- src: "page022.jxl"
params:
iiif: page022/info.json
- src: "page023.jpg"
- src: "page023.jxl"
params:
iiif: page023/info.json
- src: "page024.jpg"
- src: "page024.jxl"
params:
iiif: page024/info.json
- src: "page025.jpg"
- src: "page025.jxl"
params:
iiif: page025/info.json
- src: "back.jpg"
- src: "back.jxl"
params:
iiif: back/info.json
---
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/html/head/og-image.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{{- end -}}
*/}}

{{/* This is jus a hack */}}
{{/* This is just a hack */}}
{{- if eq $previewImg nil -}}
{{- $previewImg = partial "preview/preview-internal.html" (dict "context" .) -}}
{{- end -}}
Expand Down

0 comments on commit bc1e33d

Please sign in to comment.