This is an automated email from the ASF dual-hosted git repository.
skygo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/netbeans-antora-ui.git
The following commit(s) were added to refs/heads/main by this push:
new b1bfa28 image url recalculate
b1bfa28 is described below
commit b1bfa28e3083d3930df6fcfc56536b969c6f2ef8
Author: Eric Barboni <[email protected]>
AuthorDate: Thu Feb 22 16:59:26 2024 +0100
image url recalculate
---
src/helpers/pages-blog.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/helpers/pages-blog.js b/src/helpers/pages-blog.js
index 6527c90..15ce800 100644
--- a/src/helpers/pages-blog.js
+++ b/src/helpers/pages-blog.js
@@ -47,6 +47,9 @@ function blogcontent (s) {
const startpoint = Math.min( startofparagraph>-1 ? startofparagraph :
Infinity, startofpreamble >-1 ? startofpreamble: Infinity)
const endpoint = Math.min( endofsection>-1 ? endofsection : Infinity,
endofarticle >-1 ? endofarticle: Infinity)
const split = s.substring( startpoint, endpoint)
- return split
+ // hack for image
+ const imagerewrite = split.replaceAll('"../../../_images','"../_images')
+ //
+ return imagerewrite
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists