mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-14 18:19:29 -07:00
* feat: refactor image retrieval logic and improve variable initialization - Add a new file `layouts/partials/function/getImageSlice.html` - Initialize variables `$context`, `$Path`, and `$params` - Set `$Path` based on the result of the `partial/function/currentMenuItem.html` partial - Retrieve the page `$gallery` based on `$Path` - Return all resources of type `image` from `$gallery` * refactor: adapt getImageSlice function to `single.json` * feat: refactor navigation UI components to use static go template * feat: update navigation functionality and threshold rendering
11 lines
287 B
HTML
11 lines
287 B
HTML
{{- $context := . -}}
|
|
{{- $Path := "" -}}
|
|
{{- $params := .Page.Params | merge .Site.Params.Page -}}
|
|
|
|
{{- with partial "function/currentMenuItem.html" . -}}
|
|
{{- $Path = .Identifier -}}
|
|
{{- end -}}
|
|
|
|
{{- $gallery := site.GetPage $Path -}}
|
|
{{- return $gallery.Resources.ByType "image" -}}
|