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

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


The following commit(s) were added to refs/heads/main by this push:
     new fe4740f  Blog: Center article content (#113)
fe4740f is described below

commit fe4740f6c3eeb1d29bb5b96831cb1dd1ecb520f2
Author: Nuno Faria <[email protected]>
AuthorDate: Sat Sep 20 13:47:33 2025 +0100

    Blog: Center article content (#113)
---
 content/css/app.css                  | 5 ++++-
 content/theme/templates/generic.html | 4 ++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/content/css/app.css b/content/css/app.css
index 2e0951e..67250d6 100644
--- a/content/css/app.css
+++ b/content/css/app.css
@@ -2,6 +2,10 @@
     max-width: 900px;
 }
 
+.toc-container {
+    max-width: 400px;
+}
+
 .toc {
     position: sticky;
     top: 20px;
@@ -12,7 +16,6 @@
     border-radius: 10px;
     border-width: 1px;
     border-style: solid;
-    max-width: 400px;
 }
 
 .toctitle {
diff --git a/content/theme/templates/generic.html 
b/content/theme/templates/generic.html
index e437e4a..49d1616 100644
--- a/content/theme/templates/generic.html
+++ b/content/theme/templates/generic.html
@@ -9,7 +9,7 @@
         <p>Posted on: {{ article.locale_date }} by {{ article.author }}</p>
 
         {% if article.toc %}
-        <aside class="d-md-none mb-2">
+        <aside class="toc-container d-md-none mb-2">
           {{ article.toc }}
         </aside>
         {% endif %}
@@ -19,7 +19,7 @@
         {% include "comments.html" %}
       </div>
       {% if article.toc %}
-      <aside class="d-none d-md-block col-md-4 col-xl-3 ms-xl-2">
+      <aside class="toc-container d-none d-md-block col-md-4 col-xl-3 ms-xl-2">
         {{ article.toc }}
       </aside>
       {% endif %}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to