mirror of
https://github.com/loviuz/loviuz-website.git
synced 2025-06-05 21:49:18 +02:00
Fix pagine e link
This commit is contained in:
@@ -1,7 +1 @@
|
||||
<a href="{{ .Destination | safeURL }}"
|
||||
{{ with .Title}} title="{{ . }}"{{ end }}
|
||||
{{ if strings.HasPrefix .Destination "http" }}
|
||||
target="_blank" rel="noopener noreferrer"
|
||||
{{ end }}>
|
||||
{{ .Text | safeHTML }}
|
||||
</a>
|
||||
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }} {{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener noreferrer" {{ end }}>{{ .Text | safeHTML }}</a>
|
||||
@@ -36,13 +36,20 @@
|
||||
|
||||
<div>
|
||||
{{ with .Resources.GetMatch (index (.Params.images) 0) }}
|
||||
{{ $image := . }}
|
||||
{{ $image := $image.Crop "1280x250" }}
|
||||
<img src="{{ $image.RelPermalink }}">
|
||||
{{ end }}
|
||||
{{ $image := . }}
|
||||
{{ $image_cropped := .Crop "1280x250" }}
|
||||
|
||||
{{ .TableOfContents }}
|
||||
{{ .Content | safeHTML }}
|
||||
{{ if $.Page.Params.fullcover }}
|
||||
<img src="{{ $image.RelPermalink }}">
|
||||
{{ else }}
|
||||
<img src="{{ $image_cropped.RelPermalink }}">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if not .Params.IgnoreTableOfContents }}
|
||||
{{ .TableOfContents }}
|
||||
{{ end }}
|
||||
{{ .Content | safeHTML }}
|
||||
</div>
|
||||
|
||||
{{ partial "socialshare.html" . }}
|
||||
|
||||
Reference in New Issue
Block a user