OpenGraph, fichiers manquants et peaufinage

This commit is contained in:
SpaceFox 2020-02-05 21:40:01 +01:00
parent 8f9c93965a
commit 177e0b47c9
9 changed files with 22 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

View file

@ -5,13 +5,16 @@ body { font-family: 'Noto Serif KR', sans-serif; }
.dropdown-item em { color: gray; }
#mapid { height: 75vh; }
.carousel-control-prev, .carousel-control-next { opacity: 0; }
.home-columns .card-img-overlay { height: 100%; }
.home-columns .card-img-overlay { height: 100%; padding: 0; }
.home-columns .card-img-overlay:hover { background-color: rgba(0, 0, 0, 0.5); }
.home-columns .card-img-overlay h5 {
position: absolute; top: 50%; transform: translateY(-50%); margin: 0 1.25rem 0 0;
color: #ddd; font-weight: bold; text-shadow: black 0 0 1px;
position: absolute; bottom: 0; padding: 1rem; margin: 0; width: 100%;
color: #ccc; font-size: 1rem; font-weight: bold; text-align: center;
background-color: rgba(0,0,0,0.5)
}
.home-columns .card-img-overlay:hover h5 {
color: white; background-color: transparent; bottom: unset; top: 50%; transform: translateY(-50%);
}
.home-columns .card-img-overlay:hover h5 { color: white; }
.card-columns.home-columns { column-count: 2; }
@media (min-width: 576px) {
.card-columns.home-columns {

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

1
static/robots.txt Normal file
View file

@ -0,0 +1 @@
User-agent: *

View file

@ -1,10 +1,10 @@
<!doctype html>
<html lang="fr">
<html lang="fr" prefix="og: http://ogp.me/ns#">
<head>
<meta charset="utf-8">
<meta name="language" content="fr">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="{{ if .IsPage }}{{ if .Params.summary }}{{ .Params.summary | markdownify }}{{ else }}{{ if .Truncated }}{{ .Summary }}{{ else }}{{ .Content }}{{ end }}{{ end }}{{ else }}{{ if .IsHome }}{{ else }}{{ .Title }} — {{ end }}Photographies de Corée du Sud, par SpaceFox{{ end }}">
<meta name="description" content="{{ if .IsPage }}{{ if .Params.img }}Photo : {{ end }}{{ .Title }}{{ else }}{{ if .IsHome }}Accueil{{ else }}{{ .Title }}{{ end }}{{ end }} Photographies de voyage en Corée du Sud, par SpaceFox, sous licence libre (CC BY 4.0)">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
@ -17,7 +17,18 @@
{{ hugo.Generator }}
<meta property="og:site_name" content="{{ .Site.Title }}">
<meta property="og:url" content="{{ .Permalink }}"/>
<meta property="og:locale" content="fr"/>
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ .Title }}" />
<meta property="og:description" content="{{ if .IsPage }}{{ if .Params.img }}Photo : {{ end }}{{ .Title }}{{ else }}{{ if .IsHome }}Accueil{{ else }}{{ .Title }}{{ end }}{{ end }} Photographies de voyage en Corée du Sud, par SpaceFox, sous licence libre (CC BY 4.0)" />
<meta property="og:image" content="{{ .Site.BaseURL }}{{ if .Params.img }}images/2k/{{ .Params.img }}.jpg{{ else if .Params.homeimg }}images/2k/{{ .Params.homeimg }}.jpg{{ else }}images/SpaceFoxKR.png{{ end }}" />
{{ if .Params.img }}
<meta property="og:image:width" content="{{ .Params.width2k }}"/>
<meta property="og:image:height" content="{{ .Params.height2k }}"/>
{{ end }}
<meta property="og:locale" content="fr_FR"/>
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:creator" content="@Renard_spatial" />
<link rel="canonical" href="{{ if .Params.canonical }}{{ .Params.canonical }}{{ else }}{{ .Permalink }}{{ end }}">
<link href="/css/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet">