Skip to content
Snippets Groups Projects
Commit 0b438731 authored by Olivia206's avatar Olivia206
Browse files

schema.org and removed credit

parent 9b447558
No related branches found
No related tags found
No related merge requests found
...@@ -4,32 +4,33 @@ ...@@ -4,32 +4,33 @@
@include grid(2, md) @include grid(2, md)
align-items: flex-start align-items: flex-start
li li
@include icon(link-blank, after, true)
background-color: $block-lien-card-background background-color: $block-lien-card-background
display: flex display: flex
flex-direction: column-reverse flex-direction: column-reverse
justify-content: flex-end justify-content: flex-end
min-height: pxToRem(130) min-height: pxToRem(130)
position: relative position: relative
&::after
position: absolute
bottom: space(4)
right: space(4)
.link-content .link-content
padding: space(4) padding: space(4)
line-height: 100%
a a
@include stretched-link(before) @include stretched-link(before)
&::after text-decoration: none
position: absolute
bottom: space(4)
right: space(4)
p p
@include small @include small
margin-top: space() margin-top: space(3)
figure .media
aspect-ratio: 16/9
position: relative position: relative
img img
display: block
aspect-ratio: 16/9 aspect-ratio: 16/9
object-fit: cover object-fit: cover
figcaption
text-align: right
padding-left: space(4)
padding-right: space(4)
@include in-page-without-sidebar @include in-page-without-sidebar
.top .top
display: flex display: flex
......
...@@ -13,35 +13,23 @@ ...@@ -13,35 +13,23 @@
<ul class="links"> <ul class="links">
{{- range .links }} {{- range .links }}
<li> <li itemscope itemtype="https://schema.org/WebPage">
<div class="link-content"> <div class="link-content">
{{- $title := partial "PrepareHTML" .title -}} {{- $title := partial "PrepareHTML" .title -}}
{{- $url := .url -}} {{- $url := .url -}}
<a href="{{ .url }}" <link itemprop="url" href="{{ .url }}">
{{ if .target_blank }} <a itemprop="relatedLink" href="{{ .url }}" title="{{ $title }}"><span itemprop="name">{{- $title -}}</span></a>
title="{{ i18n "commons.link.blank_aria" (dict "Title" $title) }}"
target="_blank"
{{ else }}
title="{{ $title }}"
{{ end }}
>{{- $title -}}
</a>
<p>{{ .description | safeHTML }}</p> <p>{{ .description | safeHTML }}</p>
</div> </div>
{{- if .image -}} {{- if .image -}}
<figure> <div class="media">
{{- partial "commons/image.html" {{- partial "commons/image.html"
(dict (dict
"image" .image "image" .image
"alt" .alt "alt" .alt
"sizes" site.Params.image_sizes.blocks.links "sizes" site.Params.image_sizes.blocks.links
) -}} ) -}}
{{- if .credit -}} </div>
<figcaption>
{{ partial "PrepareHTML" .credit }}
</figcaption>
{{- end -}}
</figure>
{{- end -}} {{- end -}}
</li> </li>
{{ end -}} {{ end -}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment