Skip to content

Commit

Permalink
Places logos and two columns layout for members list and single pages
Browse files Browse the repository at this point in the history
  • Loading branch information
gautierchomel committed Dec 20, 2023
1 parent 1342a9c commit 71a7f6a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 7 deletions.
18 changes: 18 additions & 0 deletions assets/sass/_custom.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// add customs styles and general overrides here
// due to the cascading nature of css, if you try to override theme css variables in this file, those changes will not apply. Instead, override css variables in the `override.sass` file
// we recommend not editing this file directly. Instead, create an `assets/sass/_custom.sass` file at the root level of your site.
// if you edit this file directly, you will have to resolve git conflicts when and if you decide to pull changes we make on the theme
.excerpt
display: grid
grid-template-columns: repeat(2, 1fr)
overflow: auto

.image_excerpt
display: bloc
width: 10em

.image_single
display: bloc
width: 20em
4 changes: 3 additions & 1 deletion layouts/partials/excerpt.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<li class="post_item">
<div class="excerpt">
<div class="excerpt_header">
<h3 class="post_link">
<h3 class="post_link">
<a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title | markdownify }}</a>
</h3>
{{ partial "post-meta" . }}
<br/>
<img src="{{ .Params.featureImage }}" alt="" class="image_excerpt">
</div>
{{- with .Params.thumbnail }}
<div class="excerpt_footer partition">
Expand Down
16 changes: 10 additions & 6 deletions layouts/post/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,26 @@
{{- end }}
{{- $image := $scratch.Get "image" }}
{{- $bg := absLangURL (path.Join "images" $image) }}
<div class="{{ if ne $p.singleColumn true }}grid-inverse {{ end }}wrap content">
<article class="post_content">
<div class="{{ if ne $p.singleColumn true }}grid-inverse {{ end }}wrap content ">
<article class="post_content excerpt">
{{- $t := .Title }}
<div>
<h1 class="post_title">{{ $t | markdownify }} </h1>
{{- partial "post-meta" . }}
{{- with .Params.featureImage -}}
<img src="{{ .Params.featureImage }}" alt="" class="image_single">
{{/* {{- with .Params.featureImage -}}
<div class="post_featured">
{{- partial "image" (dict "file" $p.featureImage "alt" $p.featureImageAlt "cap" $p.featureImageCap "type" "featured" "Page" $.Page) }}
</div>
{{- end -}}
{{ if $p.toc }}
{{- end -}} */}}
{{/* {{ if $p.toc }}
<div class="post_toc">
<h2>{{ T "overview" }}</h2>
{{ .TableOfContents }}
</div>
{{ end }}
{{ end }} */}}
</div>

<div class="pale">
{{- $summary := truncate 320 .Summary }}
{{- if .Params.summary }}
Expand Down

0 comments on commit 71a7f6a

Please sign in to comment.