thibaud frere commited on
Commit
0268a3e
·
1 Parent(s): 9b76585

fix footer numbers | fix footer title | fix pdf

Browse files
app/src/components/Footer.astro CHANGED
@@ -219,6 +219,11 @@ const { citationText, bibtex, licence, doi } = Astro.props as Props;
219
  margin-bottom: 1em;
220
  }
221
 
 
 
 
 
 
222
  .references-block a {
223
  color: var(--text-color);
224
  }
 
219
  margin-bottom: 1em;
220
  }
221
 
222
+ /* Évite le double affichage des numéros: masque le marqueur natif */
223
+ .references-block li::marker {
224
+ content: '';
225
+ }
226
+
227
  .references-block a {
228
  color: var(--text-color);
229
  }
app/src/components/Hero.astro CHANGED
@@ -59,7 +59,7 @@ function slugify(text: string): string {
59
  .slice(0, 120) || 'article';
60
  }
61
 
62
- const pdfBase = titleRaw ? titleRaw : stripHtml(title);
63
  const pdfFilename = `${slugify(pdfBase)}.pdf`;
64
  ---
65
  <section class="hero">
 
59
  .slice(0, 120) || 'article';
60
  }
61
 
62
+ const pdfBase = titleRaw ? stripHtml(titleRaw) : stripHtml(title);
63
  const pdfFilename = `${slugify(pdfBase)}.pdf`;
64
  ---
65
  <section class="hero">
app/src/pages/index.astro CHANGED
@@ -95,8 +95,9 @@ const imageAbs: string = fmOg && fmOg.startsWith('http')
95
  : (Astro.site ? new URL((fmOg ?? ogDefaultUrl), Astro.site).toString() : (fmOg ?? ogDefaultUrl));
96
 
97
  // ---- Build citation text & BibTeX from frontmatter ----
 
98
  const rawTitle = articleFM?.title ?? 'Untitled article';
99
- const titleFlat = String(rawTitle)
100
  .replace(/\\n/g, ' ')
101
  .replace(/\n/g, ' ')
102
  .replace(/\s+/g, ' ')
 
95
  : (Astro.site ? new URL((fmOg ?? ogDefaultUrl), Astro.site).toString() : (fmOg ?? ogDefaultUrl));
96
 
97
  // ---- Build citation text & BibTeX from frontmatter ----
98
+ const stripHtml = (text: string) => String(text || '').replace(/<[^>]*>/g, '');
99
  const rawTitle = articleFM?.title ?? 'Untitled article';
100
+ const titleFlat = stripHtml(String(rawTitle))
101
  .replace(/\\n/g, ' ')
102
  .replace(/\n/g, ' ')
103
  .replace(/\s+/g, ' ')