Conversation
code-example shortcode 透過 Hugo 的 .Content 取得頁面內容時, 只能取得 front matter 以下的內容區塊,無法包含 layout 提供的 HTML 外殼,導致原始碼展示缺少完整的 HTML 文件結構。 移除 demo-page layout,改用 layout: raw 搭配 shortcode: - 新增 demo-page-head / demo-page-foot shortcode 提供 HTML 外殼 - 新增 breadcrumb-step partial/shortcode(對應 Jekyll 版本) - 5 個 demo page 改用上述 shortcode,code-example 能正確顯示完整原始碼
demo-page 頁面的「元件客製化調整」章節原本以 Jekyll 框架搭配 Liquid 模板語法作為 breadcrumb 元件的應用範例,遷移至 Hugo 後 改寫為等效的 Hugo Go template 語法範例,並修正 aria-current 屬性及 href 路徑以符合實際 partial 實作。
form-page-s3 引用 /assets/mt-scode.png 但該檔案未從 Jekyll 搬到 Hugo,放入 static/assets/ 使路徑對應。
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 此拉取請求引入了全新的「親和力」章節,旨在提供全面的網頁親和力資源和示範頁面。它重構了示範頁面的渲染方式,使其能夠展示完整的 HTML 結構,並更新了內部連結機制,以提高部署的靈活性。 Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
14f0010 to
69e0165
Compare
8814cc5 to
d098e53
Compare
內容
遷移調整
demo-pagelayout,改用layout: raw搭配demo-page-head/demo-page-footshortcode,使code-example能展示完整 HTML 文件結構(含<!DOCTYPE>、<head>、<body>)breadcrumb-steppartial/shortcode,對應 Jekyll 版_includes/demo-page/breadcrumb-step.htmlabsURL/relURLshortcode,確保部署至子路徑環境能正常運作