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

imbajin pushed a commit to branch feat/oink-community-content
in repository https://gitbox.apache.org/repos/asf/hugegraph-doc.git

commit 7803403db18edca97bf716f45a01759bd4e51cf3
Author: dark <[email protected]>
AuthorDate: Fri Sep 4 20:07:32 2026 +0800

    fix(community): preserve Markdown page heading
    
    - render the Community title as the first Markdown heading\n- preserve an 
optional quoted page description\n- omit HTML-only page metadata from Markdown 
output\n- assert bilingual headings and section order
---
 layouts/community/landing.md     | 7 ++++++-
 scripts/test_community_roster.py | 3 +++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/layouts/community/landing.md b/layouts/community/landing.md
index cd96ba06a..b93fe79d8 100644
--- a/layouts/community/landing.md
+++ b/layouts/community/landing.md
@@ -3,7 +3,12 @@
   its text renderer unchanged; only the nested roster uses the site partial.
 */ -}}
 {{- .Store.Set "tdOutputFormat" "markdown" -}}
-{{- partial "page-meta-lastmod.html" . }}
+# {{ .Title }}
+
+{{- with .Description }}
+> {{ . }}
+
+{{- end }}
 
 {{- $page := . -}}
 {{- $landing := partial "landing/data.html" . -}}
diff --git a/scripts/test_community_roster.py b/scripts/test_community_roster.py
index 60f203fdd..74f026c9b 100644
--- a/scripts/test_community_roster.py
+++ b/scripts/test_community_roster.py
@@ -272,6 +272,9 @@ class CommunityContentContractTests(unittest.TestCase):
         }
         for relative, markers in expected.items():
             rendered = (self.site / relative).read_text(encoding="utf-8")
+            expected_title = "# 社区" if relative.startswith("cn/") else "# 
Community"
+            self.assertTrue(rendered.startswith(expected_title + "\n"))
+            self.assertNotIn("td-page-meta__footer", rendered)
             positions = [rendered.index(marker) for marker in markers]
             self.assertEqual(positions, sorted(positions))
         about = {

Reply via email to