Skip to content

Commit

Permalink
fix: landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
gcushen committed Nov 27, 2023
1 parent d4d8f73 commit a3e3b03
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/blox-tailwind/data/icons.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Hugo Blox Builder Icon Library

# Socials
at-symbol: <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
at-symbol: <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" d="M16.5 12a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0zm0 0c0 1.657 1.007 3 2.25 3S21 13.657 21 12a9 9 0 10-2.636 6.364M16.5 12V8.25" />
</svg>
github: <svg fill="currentColor" viewBox="3 3 18 18"><path d="M12 3C7.0275 3 3 7.12937 3 12.2276C3 16.3109 5.57625 19.7597 9.15374 20.9824C9.60374 21.0631 9.77249 20.7863 9.77249 20.5441C9.77249 20.3249 9.76125 19.5982 9.76125 18.8254C7.5 19.2522 6.915 18.2602 6.735 17.7412C6.63375 17.4759 6.19499 16.6569 5.8125 16.4378C5.4975 16.2647 5.0475 15.838 5.80124 15.8264C6.51 15.8149 7.01625 16.4954 7.18499 16.7723C7.99499 18.1679 9.28875 17.7758 9.80625 17.5335C9.885 16.9337 10.1212 16.53 10.38 16.2993C8.3775 16.0687 6.285 15.2728 6.285 11.7432C6.285 10.7397 6.63375 9.9092 7.20749 9.26326C7.1175 9.03257 6.8025 8.08674 7.2975 6.81794C7.2975 6.81794 8.05125 6.57571 9.77249 7.76377C10.4925 7.55615 11.2575 7.45234 12.0225 7.45234C12.7875 7.45234 13.5525 7.55615 14.2725 7.76377C15.9937 6.56418 16.7475 6.81794 16.7475 6.81794C17.2424 8.08674 16.9275 9.03257 16.8375 9.26326C17.4113 9.9092 17.76 10.7281 17.76 11.7432C17.76 15.2843 15.6563 16.0687 13.6537 16.2993C13.98 16.5877 14.2613 17.1414 14.2613 18.0065C14.2613 19.2407 14.25 20.2326 14.25 20.5441C14.25 20.7863 14.4188 21.0746 14.8688 20.9824C16.6554 20.364 18.2079 19.1866 19.3078 17.6162C20.4077 16.0457 20.9995 14.1611 21 12.2276C21 7.12937 16.9725 3 12 3Z"></path></svg>
Expand Down
3 changes: 3 additions & 0 deletions modules/blox-tailwind/layouts/landing/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{- define "main" -}}
{{ partial "landing_page.html" . }}
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@
{{ with $block.design.spacing.padding }}
{{ $style_pad := printf "padding: %s;" (delimit . " ") }}
{{ $style = print $style $style_pad }}
{{ else }}
{{ with $page.Params.design.spacing }}
{{ $style_pad := printf "margin: %s 0 %s 0;" . . }}
{{ $style = print $style $style_pad }}
{{ end }}
{{ end }}

{{/* Support for clip path (design.clip_path) */}}
Expand All @@ -87,6 +92,8 @@
{{ $style = print $style . }}
{{ end }}



{{/* Fix Hugo's ContentBaseName returning wrong file base name when page section is within a bundle. */}}
{{ $hash_id := $block.id | default (printf "section-%s" (replace $block_type "." "-")) }}

Expand Down
2 changes: 1 addition & 1 deletion modules/blox-tailwind/layouts/partials/social_links.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ if .Params.profiles }}
<div class="flex flex-wrap text-neutral-400 dark:text-neutral-500">
<div class="flex flex-wrap text-neutral-500 dark:text-neutral-300">
{{ range $links := .Params.profiles }}
{{ $link := .url }}
{{ $scheme := (urls.Parse $link).Scheme }}
Expand Down

0 comments on commit a3e3b03

Please sign in to comment.