Skip to content

Commit 699c0f0

Browse files
committed
Fix title and description
1 parent f1dd35f commit 699c0f0

5 files changed

Lines changed: 15 additions & 12 deletions

File tree

Makefile

100755100644
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
2-
CONTAINER_USER="$(shell id -u):$(shell id -g)"
3-
41
IMAGE="floryn90/hugo:0.154.0-ext-alpine"
52

63
CONTAINER_NAME="wdes.fr"
@@ -10,13 +7,17 @@ version:
107
docker run --name ${CONTAINER_NAME} --rm -it ${IMAGE} --version
118

129
init:
13-
docker run --name ${CONTAINER_NAME} --rm -it --user ${CONTAINER_USER} -v ${PWD}:/app --workdir /app ${IMAGE} new site ${PROJECT_NAME}
10+
docker run --name ${CONTAINER_NAME} --rm -it -v ${PWD}:/app --workdir /app ${IMAGE} new site ${PROJECT_NAME}
1411

1512
build:
16-
docker run --name ${CONTAINER_NAME} --rm --user ${CONTAINER_USER} -v ${PWD}:/app --workdir /app/${PROJECT_NAME} ${IMAGE} build
13+
docker run --name ${CONTAINER_NAME} --rm -v ${PWD}:/app --workdir /app/${PROJECT_NAME} ${IMAGE} build
1714

1815
serve:
19-
docker run --name ${CONTAINER_NAME} --rm -v ${PWD}:/app --workdir /app/${PROJECT_NAME} -p 8111:8111 ${IMAGE} serve --bind 0.0.0.0 --port 8111 --baseURL localhost
16+
docker run --name ${CONTAINER_NAME} --rm -v ${PWD}:/app -p 8111:8111 --workdir /app/${PROJECT_NAME} ${IMAGE} serve --bind 0.0.0.0 --port 8111 --baseURL localhost
17+
18+
fix-perms:
19+
find ${PWD} -type d -exec chmod 0777 {} \;
20+
find ${PWD} -type f -exec chmod 0666 {} \;
2021

2122
date:
2223
date +'%Y-%m-%dT%H:%M:%SZ' --utc

wdes.fr/config.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ disableKinds = ["taxonomy", "taxonomyTerm"]
1111
[languages]
1212
[languages.en]
1313
title = "Wdes SAS website"
14-
description = "Wdes SAS website"
1514
weight = 1
1615
[languages.fr]
1716
title = "Wdes SAS - site web"
18-
description = "Site web de Wdes SAS"
1917
weight = 2
2018

2119
[params]

wdes.fr/i18n/en.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[index-page]
2+
desc = "Wdes SAS website"
13

24
[head]
35
title = "Welcome to Wdes SAS"

wdes.fr/i18n/fr.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[index-page]
2+
desc = "Site web de Wdes SAS"
13

24
[head]
35
title = "Bienvenue chez Wdes SAS"

wdes.fr/layouts/_default/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
<meta charset="utf-8">
66
<meta content="width=device-width, initial-scale=1.0" name="viewport">
77

8-
<title>{{ .Title }}</title>
9-
<meta name="description" content="{{ .Description | default (.Summary | default .Site.Params.description ) }}">
8+
<title>{{ .Language.Title }}</title>
9+
<meta name="description" content="{{ i18n "index-page.desc" }}">
1010
<meta name="keywords" content="{{ (delimit .Keywords ",") | default .Site.Params.keywords }}">
1111
<!--sse-->
1212
<meta name="twitter:card" content="summary" />
1313
<meta name="twitter:site" content="@wdesfr" />
1414
<meta name="twitter:title" content="Wdes SAS" />
15-
<meta name="twitter:description" content="{{ .Description | default (.Summary | default .Site.Params.description ) }}" />
15+
<meta name="twitter:description" content="{{ i18n "index-page.desc" }}" />
1616
<meta name="twitter:image" content="{{ .Site.BaseURL }}assets/logo/wdes_1024x1024.png" />
1717
<meta name="p:domain_verify" content="4e98cb9abc0163d6ebb1b57e90fc35e3" />
1818
<meta property="og:title" content="Wdes SAS" />
1919
<meta property="og:type" content="website" />
2020
<meta property="og:url" content="{{ .Site.BaseURL }}" />
2121
<meta property="og:image" content="{{ .Site.BaseURL }}assets/logo/wdes_1024x1024.png" />
22-
<meta property="og:description" content="{{ .Description | default (.Summary | default .Site.Params.description ) }}" />
22+
<meta property="og:description" content="{{ i18n "index-page.desc" }}" />
2323

2424
<script type="application/ld+json">
2525
{

0 commit comments

Comments
 (0)