update templates
David Valentine

David Valentine commited on 2024-12-07 19:54:09
Showing 3 changed files, with 7 additions and 6 deletions.

... ...
@@ -65,6 +65,7 @@ ${endif}
65 65
 $-- additional stylesheets may be defined through the `css` prop
66 66
 $-- in theme.yml
67 67
 $--------------------------------------------------------------------
68
+$-- @todo : mettre dans component et CSS BEM
68 69
 <style>
69 70
   div.sitenav { display: flex; flex-direction: row; flex-wrap: wrap; }
70 71
   span.navlink { flex: 1; }
... ...
@@ -79,14 +80,12 @@ ${endfor}
79 80
 $-- scripts
80 81
 $-- additional scripts may be defined through the `js` prop
81 82
 $-- in theme.yml
82
-${if(js)}
83 83
 <!-- Scripts -->
84 84
 ${for(js)}
85 85
 <script src="${js}"></script>
86 86
 ${endfor}
87
-${else}
88
-<!-- No JavaScripts -->
89
-${endif}
87
+<!-- Hypothesis tool bar -->
88
+<script src="https://hypothes.is/embed.js" async></script>
90 89
 
91 90
 $-- favicon
92 91
 $-- If the favicon is set, reference it; otherwise, resort to a small
... ...
@@ -5,14 +5,15 @@
5 5
   $-- head
6 6
   ${../components/head.html()}
7 7
 
8
-  $-- JSON-LD
8
+  $-- Basic JSON-LD
9
+  $-- opengraph = false car pas de diffusion
9 10
 
10 11
 ${if(header-includes)}
11 12
 $for(header-includes)$
12 13
   $header-includes$
13 14
 $endfor$
14 15
 ${endif}
15
-<script src="https://hypothes.is/embed.js" async></script>
16
+
16 17
 </head>
17 18
 <body>
18 19
 $-- top-of-the-page includes
... ...
@@ -21,6 +22,7 @@ $for(include-before)$
21 22
 $include-before$
22 23
 $endfor$
23 24
 <header>
25
+
24 26
   <!-- Top navigation (sitenav) -->
25 27
   ${../components/site-nav.html()}
26 28
 
27 29