Browse Source

using article-group class and adding shadow class

Alexander Avery 3 weeks ago
parent
commit
165bcfcef7
  1. 2
      layouts/_default/home.html
  2. 2
      layouts/authors/list.html
  3. 2
      layouts/partials/article-alt.html
  4. 2
      layouts/partials/article.html

2
layouts/_default/home.html

@ -15,7 +15,7 @@
{{ end }} {{ end }}
</div> </div>
<aside class="index-articles"> <aside class="article-group index-articles">
{{- range site.RegularPages.Limit 4 }} {{- range site.RegularPages.Limit 4 }}
{{ partial "article.html" . }} {{ partial "article.html" . }}
{{- end }} {{- end }}

2
layouts/authors/list.html

@ -14,7 +14,7 @@
</section> </section>
{{ .Content }} {{ .Content }}
<section class="author-articles"> <section class="article-group author-articles">
{{- range .Data.Pages }} {{- range .Data.Pages }}
{{ partial "article.html" . }} {{ partial "article.html" . }}
{{- end }} {{- end }}

2
layouts/partials/article-alt.html

@ -12,7 +12,7 @@ Renders an article card with a circle image, title, and summary.
{{- $summary := .summary }} {{- $summary := .summary }}
{{- $url := .url }} {{- $url := .url }}
<a href="{{ $url }}"> <a href="{{ $url }}">
<article class="alt float-on-hover"> <article class="alt float-on-hover shadow">
<div> <div>
<img src="{{ $image.RelPermalink }}" alt="{{ $alt }}" /> <img src="{{ $image.RelPermalink }}" alt="{{ $alt }}" />
</div> </div>

2
layouts/partials/article.html

@ -1,4 +1,4 @@
<article class="index float-on-hover"> <article class="index float-on-hover shadow">
<a href=" {{ .Permalink }}"> <a href=" {{ .Permalink }}">
{{- $image := (.Resources.GetMatch "featured").Resize "256x webp q90" }} {{- $image := (.Resources.GetMatch "featured").Resize "256x webp q90" }}
<img src={{ $image.RelPermalink }} alt="{{ .Params.featured.alt }}"> <img src={{ $image.RelPermalink }} alt="{{ .Params.featured.alt }}">

Loading…
Cancel
Save