Skip to content

Commit

Permalink
editing theme, homepage change
Browse files Browse the repository at this point in the history
  • Loading branch information
NieneB committed Mar 15, 2024
1 parent 6feb205 commit 8846f95
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 55 deletions.
6 changes: 2 additions & 4 deletions content/home/index.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
---
title: OSGeo.nl - Wegwijs in Open Geo
title: Welkom bij OSGeo.NL
author: osgeonl
type: page
date: 2023-05-15T17:52:45+00:00
---


{{< gallery-slider dir="/home-photo-slider/" width="100%" height="60vh">}}
<!-- no-fa="true" no-jquery="true" -->
![](/photos/2023/groeps.jpg)

### Onze missie

Expand Down
4 changes: 1 addition & 3 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ <h2>{{ T "overview" }}</h2>
{{- partial "i18nlist" . }}

</article>
{{- if ( ne $p.sidebar false ) }}
{{- partial "sidebar" . }}
{{ end }}

</div>
{{- end }}
1 change: 0 additions & 1 deletion layouts/home-baseof.html.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ <h3 class="post_link">

</div>

{{- partial "sidebar" . }}
</div>
</main>

Expand Down
Binary file added static/img/map(6).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/map-10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/photos/2023/groeps.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion themes/hugo-clarity-custom2/assets/sass/_base.sass
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ body, html
background-color: transparent
body
font-family: var(--font)
background: var(--choice-bg)
background-image: url("/img/map-10.png")
color: var(--text)
font-size: 1.1rem
line-height: 1.5
Expand Down
8 changes: 3 additions & 5 deletions themes/hugo-clarity-custom2/assets/sass/_components.sass
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,11 @@
&_close
display: none

.content, .footer
padding: 1.5rem
@media screen and (min-width: 1441px)
padding: 1.5rem 0

.content
padding-top: 5rem
padding: 5rem
margin: 1rem
background-color: rgba(240,240,241,0.9);
@include content

.footer
Expand Down
6 changes: 3 additions & 3 deletions themes/hugo-clarity-custom2/assets/sass/_utils.sass
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@

@media screen and (min-width: $single-column-breakpoint)
%grid
display: grid
grid-template-columns: 1fr
margin-left: 20%
margin-right: 20%

[class*='grid-']
grid-gap: 2rem

.grid-2, .grid-3, .grid-4, .grid-auto, .grid-inverse
@extend %grid
.grid-inverse
grid-template-columns: 70% 1fr
grid-template-columns: 1fr
grid-column-gap: 4rem
.grid-2
grid-template-columns: 1fr 1fr
Expand Down
16 changes: 6 additions & 10 deletions themes/hugo-clarity-custom2/assets/sass/_variables.sass
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ $light: #fff
$haze: #fafafa
$xhaze: darken($haze, 11%)
$bg: #002538
$theme: #0077b8
$theme: #4CB05B
$mobile-menu-breakpoint: 769px
$single-column-breakpoint: 42rem

@mixin content()
--maxWidth: 1440px
--maxWidth: 100vw
max-width: var(--maxWidth)
margin-left: auto
margin-right: auto
Expand All @@ -26,14 +26,14 @@ html
--color-mode: 'lit'
--light: #fff
--dark: #000
--bg: #002538
--bg: #00393F
--haze: #f2f2f2
--gray: #020202
--accent: var(--gray)
--text: #575757
--header-text: var(--dark)
--font: Metropolis, sans-serif
--theme: #0077b8
--font: Miriam Libre, sans-serif
--theme: #87E991
--ease: cubic-bezier(.19,1,.22,1)
--code-bg: var(--bg)
--table-bg: var(--light)
Expand All @@ -48,7 +48,7 @@ html
--ease: cubic-bezier(0.39, 0.575, 0.565, 1)
--easing: cubic-bezier(.19,1,.22,1)
--notice-code-bg: var(--bg)
--notice-info-border-color: #6AB0DE
--notice-info-border-color: #4A797F
--notice-info-background: #E7F2FA
--notice-note-border-color: #F0B37E
--notice-note-background: #FFF2DB
Expand Down Expand Up @@ -87,10 +87,6 @@ html
background: none
svg
fill: #fafafa
.sidebar
&_inner
&::before
display: none
.color
&_choice
&::after
Expand Down
31 changes: 4 additions & 27 deletions themes/hugo-clarity-custom2/layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,40 +19,17 @@ <h1 class="post_title">{{ $t | markdownify }}</h1>
{{- partial "image" (dict "file" $p.featureImage "alt" $p.featureImageAlt "cap" $p.featureImageCap "type" "featured" "Page" $.Page) }}
</div>
{{- end -}}
{{ if $p.toc }}
<div class="post_toc">
<h2>{{ T "overview" }}</h2>
{{ .TableOfContents }}
</div>
{{ end }}

<div class="post_body">
{{- .Content }}
</div>

{{- $showRelatedInArticle := true }}
{{- if eq $s.showRelatedInArticle false }}
{{- $showRelatedInArticle = false }}
{{- else if eq $p.showRelatedInArticle false }}
{{- $showRelatedInArticle = false }}
{{- end }}
{{- if ne $showRelatedInArticle false }}
{{- partial "related" . }}
{{- end }}

{{- $showComments := true }}
{{- if eq $s.comments false }}
{{- $showComments = false }}
{{- else if eq $p.comments false }}
{{- $showComments = false }}
{{- end }}
{{- if ne $showComments false }}
{{- partial "comments" . }}
{{- end }}


{{- partial "i18nlist" . }}

</article>
{{- if ( ne $p.sidebar false ) }}
{{- partial "sidebar" . }}
{{ end }}

</div>
{{- end }}
1 change: 0 additions & 1 deletion themes/hugo-clarity-custom2/layouts/partials/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@
</li>
</ul>
</div>
{{- partial "sidebar" . }}
</div>

0 comments on commit 8846f95

Please sign in to comment.