diff --git a/themes/ccchh/assets/sass/main.scss b/themes/ccchh/assets/sass/main.scss index 6b53a0f..cefd070 100644 --- a/themes/ccchh/assets/sass/main.scss +++ b/themes/ccchh/assets/sass/main.scss @@ -78,6 +78,24 @@ body>main { } } +.float-left { + float: left; + margin-right: var(--grid-spacing-horizontal); +} + +.float-right { + float: right; + margin-left: var(--grid-spacing-horizontal); +} + +.clearfix { + &::after { + display: block; + clear: both; + content: ""; + } +} + // Room State in Menu #roomstate { diff --git a/themes/ccchh/layouts/_default/_markup/render-image.html b/themes/ccchh/layouts/_default/_markup/render-image.html new file mode 100644 index 0000000..65122df --- /dev/null +++ b/themes/ccchh/layouts/_default/_markup/render-image.html @@ -0,0 +1,17 @@ +{{- $imagename := .Destination }} +{{- $text := .Text }} +{{- $title := .Title }} +{{- $isBundle := ne .Page.BundleType "" }} + +{{- $page := .Page }} +{{- if not $isBundle }} + {{ $page_dir := path.Dir .Page.File }} + {{ $pagebundle_path := path.Join "/" $page_dir }} + {{ $page = .Page.Site.GetPage $pagebundle_path }} +{{- end -}} + +{{- with $page.Resources.Get $imagename }} +
+ +
+{{- end }} diff --git a/themes/ccchh/layouts/index.html b/themes/ccchh/layouts/index.html index 1af1d39..4c58c3e 100644 --- a/themes/ccchh/layouts/index.html +++ b/themes/ccchh/layouts/index.html @@ -8,7 +8,7 @@ {{- $upcoming := where $events ".Params.date" "ge" now }} {{ if $upcoming }}