Skip to content
Snippets Groups Projects
Commit 7377d9b4 authored by Olivia206's avatar Olivia206
Browse files

Merge branch 'main' of github.com:noesya/osuny-hugo-theme-aaa

parents 59e53940 660ff276
No related branches found
No related tags found
No related merge requests found
......@@ -93,6 +93,8 @@
@if $header-dropdown-full
.dropdown-menu
inset: 100% 0 auto 0
padding-left: 0
padding-right: 0
.nav-level-2
@include container
@include grid(4, md)
......
......@@ -19,35 +19,15 @@
}}
{{ partial "hooks/after-page-hero.html" . }}
{{ partial "blocks/list.html" . }}
{{ else }}
<!-- FIXME -->
{{/* {{- partial "blocks/templates/pages/grid.html" (dict
"pages" .Params.children
"show_images" true
"show_descriptions" true
) }} */}}
<section class="block block-pages block-pages--grid">
<div class="container">
<div class="block-content">
<div class="grid">
{{ range .Params.children }}
{{- $page := partial "GetPageByUrl" . -}}
{{ with $page }}
<article>
<h1>
<a href="{{- .Permalink -}}">
{{- partial "PrepareHTML" .Title -}}
</a>
</h1>
{{ if .Params.description_short }}
<p>{{ partial "PrepareHTML" .Params.description_short }}</p>
{{ end }}
{{- partial "pages/page-media.html" . -}}
</article>
{{- end -}}
{{ end }}
</div>
{{- partial "blocks/templates/pages/grid.html" (dict
"pages" .Params.children
"show_images" true
"show_descriptions" true
) }}
</div>
</div>
</section>
......
......@@ -3,10 +3,19 @@
<div class="grid">
{{ range .pages }}
{{- $page := partial "GetPageByUrl" .page -}}
{{- if .slug -}}
{{- $page = partial "GetPageByUrl" .slug -}}
{{- end -}}
{{- $page := false -}}
{{/* Check if . is a map or page url */}}
{{ if reflect.IsMap . }}
{{- if .page -}}
{{- $page = partial "GetPageByUrl" .page -}}
{{- else if .slug -}}
{{- $page = partial "GetPageByUrl" .slug -}}
{{ end }}
{{ else }}
{{- $page = partial "GetPageByUrl" . -}}
{{ end }}
{{ with $page }}
<article>
<h1>
......
......@@ -8,7 +8,9 @@
<a href="{{ .Permalink }}" aria-label="{{ i18n "commons.more_aria" (dict "Title" .Title) }}">
{{- partial "PrepareHTML" .Title -}}
{{ with .Params.short_name }}
({{ partial "PrepareHTML" . }})
<span class="meta">
{{ partial "PrepareHTML" . }}
</span>
{{ end }}
</a>
{{- if $show_programs }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment