diff --git a/hugo.yaml b/hugo.yaml index 913d5d4..6e233c7 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -115,12 +115,14 @@ params: The Mothership project is a collection of tools and services to archive RPM package source and attest to their authenticity. icon: mship_gopher_dark + url: https://github.com/openela/mothership - title: ELValidated text: | ELValidated is a verification and interoperability suite for Enterprise Linux operating systems that gives organizations and developers the ability to verify the compatibility of their Enterprise Linux distributions. icon: elvalidated + url: /elvalidated/ section3: title: OpenELA image: illustrations/github.svg @@ -133,16 +135,16 @@ params: socialmediatitle: Follow Us socialmedia: - link: https://github.com/openela - icon: brands fa-github + icon: fa-brands fa-github target: _blank - link: https://x.com/@openelaorg - icon: brands fa-x-twitter + icon: fa-brands fa-x-twitter target: _blank - link: https://fosstodon.org/@openela - icon: brands fa-mastodon + icon: fa-brands fa-mastodon target: _blank - link: https://www.linkedin.com/company/openela - icon: brands fa-linkedin + icon: fa-brands fa-linkedin target: _blank quicklinks: column1: diff --git a/layouts/partials/css.html b/layouts/partials/css.html new file mode 100644 index 0000000..3b08d1e --- /dev/null +++ b/layouts/partials/css.html @@ -0,0 +1,21 @@ +{{- $inServerMode := .Site.IsServer }} +{{- $sass := "style.sass" }} +{{- $cssTarget := "css/style.css" }} +{{- $cssOpts := cond ($inServerMode) (dict "targetPath" $cssTarget "enableSourceMap" true) (dict "targetPath" $cssTarget "outputStyle" "compressed") }} +{{- $fontName := .Site.Params.font.name | default "Open Sans" }} +{{- $fontFace := replace $fontName " " "+" }} +{{- $fontSizes := delimit (.Site.Params.font.sizes | default (slice 300 400 600 700)) "," }} +{{- $fontUrl := printf "https://fonts.googleapis.com/css?family=%s:%s" $fontFace $fontSizes }} + + +{{- if $inServerMode }} +{{- $css := resources.Get $sass | toCSS $cssOpts }} + +{{- else }} +{{- $css := resources.Get $sass | toCSS $cssOpts | minify | fingerprint }} + +{{- end }} + + + + diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..65894e8 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,57 @@ +{{- $footer := .Site.Params.footer }} +{{- $logo := index $footer "logo" }} +{{- $quickLinks := index $footer "quicklinks" }} +{{- $socialMedia := index $footer "socialmedia" }} +{{- $bulmaLogo := index $footer "bulmalogo" }} +{{- $socialMediaTitle := index $footer "socialmediatitle" }} + diff --git a/layouts/partials/section2.html b/layouts/partials/section2.html index 5ea92c5..2ead950 100644 --- a/layouts/partials/section2.html +++ b/layouts/partials/section2.html @@ -26,14 +26,26 @@

{{ $subtitle }}

{{ if $iconPath }} - {{ $iconName }} + {{ if .url }} + + {{ $iconName }} + + {{ else }} + {{ $iconName }} + {{ end }} {{ end }}

+ {{ if .url }} + + {{ .title }} + + {{ else }} {{ .title }} + {{ end }} {{ .text | markdownify }}