fix(publisher): footer credit links to the editor Space
Browse filesThe footer credit used to point at the legacy Astro-only static
template (tfrere/research-article-template). The editor is now
the canonical entry point - it bundles the static renderer and is
what people fork to start a new article. Update the credit link
accordingly so readers landing on a published article find the
right starting point.
Snapshot refreshed.
Co-authored-by: Cursor <cursoragent@cursor.com>
backend/src/publisher/html-renderer.ts
CHANGED
|
@@ -1022,10 +1022,13 @@ function renderFooter(meta: PublishMeta): string {
|
|
| 1022 |
sections += `
|
| 1023 |
<section class="references-block"></section>`;
|
| 1024 |
|
| 1025 |
-
// Template credit
|
|
|
|
|
|
|
|
|
|
| 1026 |
sections += `
|
| 1027 |
<div class="template-credit">
|
| 1028 |
-
<p>Made with ❤️ with <a href="https://huggingface.co/spaces/tfrere/research-article-template" target="_blank" rel="noopener noreferrer">research article template</a></p>
|
| 1029 |
</div>`;
|
| 1030 |
|
| 1031 |
return `<footer class="footer"><div class="footer-inner">${sections}</div></footer>`;
|
|
|
|
| 1022 |
sections += `
|
| 1023 |
<section class="references-block"></section>`;
|
| 1024 |
|
| 1025 |
+
// Template credit. Point at the editor Space (which IS the
|
| 1026 |
+
// template you fork to start a new article) instead of the legacy
|
| 1027 |
+
// Astro-only static template - the editor is now the canonical
|
| 1028 |
+
// entry point and bundles the static renderer.
|
| 1029 |
sections += `
|
| 1030 |
<div class="template-credit">
|
| 1031 |
+
<p>Made with ❤️ with <a href="https://huggingface.co/spaces/tfrere/research-article-template-editor" target="_blank" rel="noopener noreferrer">research article template editor</a></p>
|
| 1032 |
</div>`;
|
| 1033 |
|
| 1034 |
return `<footer class="footer"><div class="footer-inner">${sections}</div></footer>`;
|
backend/tests/__snapshots__/html-renderer-snapshot.test.ts.snap
CHANGED
|
@@ -214,7 +214,7 @@ exports[`snapshot - full render > matches snapshot for a typical article 1`] = `
|
|
| 214 |
</section>
|
| 215 |
<section class="references-block"></section>
|
| 216 |
<div class="template-credit">
|
| 217 |
-
<p>Made with ❤️ with <a href="https://huggingface.co/spaces/tfrere/research-article-template" target="_blank" rel="noopener noreferrer">research article template</a></p>
|
| 218 |
</div></div></footer>
|
| 219 |
|
| 220 |
<!-- Image lightbox -->
|
|
|
|
| 214 |
</section>
|
| 215 |
<section class="references-block"></section>
|
| 216 |
<div class="template-credit">
|
| 217 |
+
<p>Made with ❤️ with <a href="https://huggingface.co/spaces/tfrere/research-article-template-editor" target="_blank" rel="noopener noreferrer">research article template editor</a></p>
|
| 218 |
</div></div></footer>
|
| 219 |
|
| 220 |
<!-- Image lightbox -->
|