This is an automated email from the ASF dual-hosted git repository.

spectrometerHBH pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 8e6eb7ae09a Load layout-demo iframe and MathJax at runtime so the site 
build's embed localizer doesn't reject their query URLs (#60)
8e6eb7ae09a is described below

commit 8e6eb7ae09acf15bbf8c06131a1bb83fb3e30e22
Author: Bohan Hou <[email protected]>
AuthorDate: Sun Jun 21 20:35:07 2026 -0700

    Load layout-demo iframe and MathJax at runtime so the site build's embed 
localizer doesn't reject their query URLs (#60)
---
 _layouts/default.html     | 2 +-
 _posts/2026-06-22-tirx.md | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/_layouts/default.html b/_layouts/default.html
index 57138fddf3b..d401322f6d3 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -12,7 +12,7 @@
       <meta property="og:image" content="{{ page.preview_image }}">
     {% endif %}
     {% if page.mathjax %}
-      <script 
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS_CHTML";></script>
+      <script>(function () { var s = document.createElement('script'); s.src = 
'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS_CHTML';
 document.head.appendChild(s); })();</script>
     {% endif %}
 </head>
 <body>
diff --git a/_posts/2026-06-22-tirx.md b/_posts/2026-06-22-tirx.md
index 66e3f2244f1..902c19d9074 100644
--- a/_posts/2026-06-22-tirx.md
+++ b/_posts/2026-06-22-tirx.md
@@ -119,10 +119,11 @@ For example, element 57 at logical (3, 9) maps to:
 
 <details>
 <summary>Unfold to see the interactive layout demo</summary>
-<iframe id="tirx-layout-demo" 
src="https://mlc.ai/modern-gpu-programming-for-mlsys/_static/tirx-layout-demo/index.html?preset=tensor-core&amp;notitle&amp;lock";
+<iframe id="tirx-layout-demo" 
data-src="https://mlc.ai/modern-gpu-programming-for-mlsys/_static/tirx-layout-demo/index.html?preset=tensor-core&amp;notitle&amp;lock";
         style="width:100%; height:560px; border:1px solid #dfe1e6; 
border-radius:10px; margin:12px 0;"
         title="TIRx interactive layout demo: tensor-core tile" 
loading="lazy"></iframe>
 <script>
+(function () { var f = document.getElementById('tirx-layout-demo'); if (f && 
!f.src) f.src = f.getAttribute('data-src'); })();
 window.addEventListener('message', function (e) {
   var h = e.data && e.data.tirxLayoutDemoHeight;
   if (!h) return;

Reply via email to