Commit e0dea36efc3e8c05daea854f053844128eb3fe65

Thomas de Grivel 2022-07-03T11:08:16

add anchor to readmes

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/kmxgit_web/templates/repository/show_readmes.html.heex b/lib/kmxgit_web/templates/repository/show_readmes.html.heex
index 3187806..a6cab1f 100644
--- a/lib/kmxgit_web/templates/repository/show_readmes.html.heex
+++ b/lib/kmxgit_web/templates/repository/show_readmes.html.heex
@@ -1,7 +1,7 @@
 <%= if !@git.content do %>
   <%= Enum.map @git.readme, fn readme -> %>
     <hr/>
-    <h3><%= readme.name %></h3>
+    <h3><a id={readme.name} href={"##{readme.name}"} ><%= readme.name %></a></h3>
     <div class="container-fluid">
       <div class="container-fluid file_content">
         <div class="content_html">