From 1cd2b23a267293f8a22adbca0330e65834117213 Mon Sep 17 00:00:00 2001
From: Olivier Maury <Olivier.Maury@inrae.fr>
Date: Fri, 25 Oct 2024 09:58:48 +0200
Subject: [PATCH] =?UTF-8?q?feat:=20Modifier=20quelques=20d=C3=A9tails=20de?=
 =?UTF-8?q?=20mise=20en=20page?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

- lien entre une note de version et toutes les notes de version
- indentation HTML de l'accueil
- lien explicite dans l'accueil vers les actualités
- rel=nofollow dans les tickets et demandes de fusion
- lien Lire plus affiché à droite
---
 themes/hugo-theme-relearn/layouts/_default/release-note.html | 3 +++
 themes/hugo-theme-relearn/layouts/home/index.html            | 5 +++--
 themes/hugo-theme-relearn/layouts/shortcodes/issue.html      | 2 +-
 .../hugo-theme-relearn/layouts/shortcodes/merge-request.html | 2 +-
 themes/hugo-theme-relearn/static/css/home.css                | 4 ++++
 5 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/themes/hugo-theme-relearn/layouts/_default/release-note.html b/themes/hugo-theme-relearn/layouts/_default/release-note.html
index 484eb48..7c58c82 100644
--- a/themes/hugo-theme-relearn/layouts/_default/release-note.html
+++ b/themes/hugo-theme-relearn/layouts/_default/release-note.html
@@ -9,4 +9,7 @@
     {{- end }}
     {{- .Content }}
 </article>
+
+<p>Retrouvez toutes les notes de version <a href="../release-notes.html">à cette page</a>.</p>
+
 {{- partial "footer.html" . }}
diff --git a/themes/hugo-theme-relearn/layouts/home/index.html b/themes/hugo-theme-relearn/layouts/home/index.html
index 26dae88..e71beba 100644
--- a/themes/hugo-theme-relearn/layouts/home/index.html
+++ b/themes/hugo-theme-relearn/layouts/home/index.html
@@ -76,9 +76,9 @@
           {{- $shortcut := . }}
           {{- with $page.Site.GetPage (printf "%s" $shortcut.URL ) }}
             {{- $to := . }}
-        <li>{{ $shortcut.Pre }}<a class="padding" href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" $to) }}">{{ safeHTML $shortcut.Name }}</a>{{ $shortcut.Post }}</li>
+      <li>{{ $shortcut.Pre }}<a class="padding" href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" $to) }}">{{ safeHTML $shortcut.Name }}</a>{{ $shortcut.Post }}</li>
           {{- else }}
-        <li>{{ $shortcut.Pre }}<a class="padding" href="{{ $shortcut.URL | relLangURL }}">{{ safeHTML $shortcut.Name }}</a>{{ $shortcut.Post }}</li>
+      <li>{{ $shortcut.Pre }}<a class="padding" href="{{ $shortcut.URL | relLangURL }}">{{ safeHTML $shortcut.Name }}</a>{{ $shortcut.Post }}</li>
           {{- end }}
         {{- end }}
       {{- end }}
@@ -122,6 +122,7 @@
     </a>
     {{- end }}
   {{- end }}
+    <div><a href="actualites.html">Toutes les actualités</a></div>
   </div>
   <footer>
     <ul>
diff --git a/themes/hugo-theme-relearn/layouts/shortcodes/issue.html b/themes/hugo-theme-relearn/layouts/shortcodes/issue.html
index 3293ec3..87a8876 100644
--- a/themes/hugo-theme-relearn/layouts/shortcodes/issue.html
+++ b/themes/hugo-theme-relearn/layouts/shortcodes/issue.html
@@ -1 +1 @@
-<a class="issue" href="{{ .Site.Params.issueUrl }}{{.Get 0}}/-/issues/{{.Get 1}}" target="_blank">#{{.Get 1}}</a>
+<a class="issue" href="{{ .Site.Params.issueUrl }}{{.Get 0}}/-/issues/{{.Get 1}}" rel="nofollow" target="_blank">#{{.Get 1}}</a>
diff --git a/themes/hugo-theme-relearn/layouts/shortcodes/merge-request.html b/themes/hugo-theme-relearn/layouts/shortcodes/merge-request.html
index 63c7b6b..2908619 100644
--- a/themes/hugo-theme-relearn/layouts/shortcodes/merge-request.html
+++ b/themes/hugo-theme-relearn/layouts/shortcodes/merge-request.html
@@ -1 +1 @@
-<a class="issue" href="{{ .Site.Params.issueUrl }}{{.Get 0}}/-/merge_requests/{{.Get 1}}" target="_blank">!{{.Get 1}}</a>
+<a class="issue" href="{{ .Site.Params.issueUrl }}{{.Get 0}}/-/merge_requests/{{.Get 1}}" rel="nofollow" target="_blank">!{{.Get 1}}</a>
diff --git a/themes/hugo-theme-relearn/static/css/home.css b/themes/hugo-theme-relearn/static/css/home.css
index abad6d9..2929c04 100644
--- a/themes/hugo-theme-relearn/static/css/home.css
+++ b/themes/hugo-theme-relearn/static/css/home.css
@@ -17,6 +17,7 @@ footer {
     padding: 1em;
 }
 
+div.actualites > div,
 h2.actualites {
     margin-left: 1em;
 }
@@ -167,6 +168,9 @@ div.actualites {
     margin-top: 0.5em;
 }
 
+.actualite > .link {
+    float: right;
+}
 .actualite > .media {
     color: var(--NEWS-MEDIA-color);
     font-weight: bold;
-- 
GitLab