diff --git a/build.sh b/build.sh index fb51021..ed197dc 100644 --- a/build.sh +++ b/build.sh @@ -1,2 +1,2 @@ -npx tailwind --output public/main.css +npx tailwind --output public/new-styles.css zig build -Denvironment=production install diff --git a/src/app/views/layouts/_metadata.zmpl b/src/app/views/layouts/_metadata.zmpl new file mode 100644 index 0000000..bd58046 --- /dev/null +++ b/src/app/views/layouts/_metadata.zmpl @@ -0,0 +1,30 @@ + + + + + + + + + + + +@if ($.title) |t| + +@else + +@end + +@if ($.image) |img| + + + + + +@end + +@if ($.description) |desc| + + + +@end diff --git a/src/app/views/layouts/panel.zmpl b/src/app/views/layouts/panel.zmpl index 045fc9a..3776cbd 100644 --- a/src/app/views/layouts/panel.zmpl +++ b/src/app/views/layouts/panel.zmpl @@ -1,13 +1,8 @@ -@args allowed: bool, description: ?[]const u8 +@args allowed: bool, description: ?[]const u8, title: ?[]const u8, img: ?[]const u8
- - - - @if ($.description) |desc| - - @end + @partial layouts/metadata