diff options
Diffstat (limited to 'backend/templates')
| -rw-r--r-- | backend/templates/base.html | 6 | ||||
| -rw-r--r-- | backend/templates/components.html | 6 | ||||
| -rw-r--r-- | backend/templates/home.html | 2 | ||||
| -rw-r--r-- | backend/templates/log.html | 2 |
4 files changed, 7 insertions, 9 deletions
diff --git a/backend/templates/base.html b/backend/templates/base.html index 3af37f9..5e6982b 100644 --- a/backend/templates/base.html +++ b/backend/templates/base.html @@ -6,13 +6,13 @@ <title>{{ .Title }}</title> {{ $styles := asset "styles.css" }}<link rel="stylesheet" href="{{ $styles.Src }}" integrity="{{ $styles.Checksum }}"> <link rel="shortcut icon" href="{{ static .Logo.Favicon }}"> - <meta property="description" content="{{ .Description }}" /> + <meta property="description" content="{{ .PageDescription }}" /> <!-- Open Graph --> <meta property="og:title" content="{{ .Title }}" /> <meta property="og:type" content="website" /> <meta property="og:url" content="https://{{ .Domain }}{{ .URL }}" /> <meta property="og:image" content="{{ fullStatic .Image }}" /> - <meta property="og:description" content="{{ .Description }}" /> + <meta property="og:description" content="{{ .PageDescription }}" /> <meta property="og:local" content="fr_FR" /> <meta property="og:site_name" content="{{ .Name }}" /> {{ if ne .PubDate "" }}<meta property="article:published_time" content="{{ .PubDate }}">{{ end }} @@ -21,7 +21,7 @@ <meta property="twitter:domain" content="{{ .Domain }}" /> <meta property="twitter:url" content="https://{{ .Domain }}{{ .URL }}" /> <meta name="twitter:title" content="{{ .Title }}" /> - <meta name="twitter:description" content="{{ .Description }}" /> + <meta name="twitter:description" content="{{ .PageDescription }}" /> <meta name="twitter:image" content="{{ fullStatic .Image }}" /> </head> <body hx-push-url="true"> diff --git a/backend/templates/components.html b/backend/templates/components.html index cb0fb12..280fa3d 100644 --- a/backend/templates/components.html +++ b/backend/templates/components.html @@ -2,14 +2,12 @@ <article> {{ range .Logs }} <article> - <h2><a href="/log/{{ .Slug }}">{{ .LogTitle }}</a></h2> + <h2><a href="/log/{{ .Slug }}">{{ .Title }}</a></h2> <figure> <a href="/log/{{ .Slug }}"><img src="{{ static .Img.Src }}" alt="{{ .Img.Alt }}"></a> <figcaption>{{ .Img.Legend }}</figcaption> </figure> - <p> - {{ .Description }} - </p> + <p>{{ .Description }}</p> </article> {{ end }} {{ if ne .PagesNumber 1 }} diff --git a/backend/templates/home.html b/backend/templates/home.html index de9d2af..c570845 100644 --- a/backend/templates/home.html +++ b/backend/templates/home.html @@ -3,7 +3,7 @@ <div class="introduction"> <h1>logs</h1> <p> - {{ .Description }} + {{ .PageDescription }} </p> </div> {{ template "logs_display" . }} diff --git a/backend/templates/log.html b/backend/templates/log.html index f872631..47a5d04 100644 --- a/backend/templates/log.html +++ b/backend/templates/log.html @@ -1,6 +1,6 @@ {{define "body"}} <article id="content"> - <h1>{{ .LogTitle }}</h1> + <h1>{{ .Title }}</h1> <p> {{ .Description }} </p> |
