Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions module/layouts/_partials/components/guide/render-guide.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,15 @@ <h4 class="h6 text-muted mb-3 flex-shrink-0 d-none d-md-block">{{ i18n "guide_ta
{{- /* Header with title, date, and download buttons */ -}}
<header class="content-header">
<div class="row mb-2">
<div class="col-12 col-md-6"><h2 class="content-title mb-0">{{ .Title }}</h2></div>
<div class="col-12 col-md-6 text-end">
<div class="d-flex gap-2">
<div class="col-12 col-md-8">
<h1 class="content-title mb-0">{{ .Title }}</h1>
{{- if .Params.subtitle }}
<p class="content-subtitle text-muted fs-5 mt-2">{{ .Params.subtitle }}</p>
{{- end }}
</div>d
<div class="col-12 col-md-4">
<div class="d-flex gap-2 justify-content-md-end">
Comment on lines +83 to +90
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Remove the stray “d” text node.

Line 88 has a literal d after the closing </div>, which will render in the header. That’s a visible defect.

🛠️ Proposed fix
-              </div>d
+              </div>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<div class="col-12 col-md-8">
<h1 class="content-title mb-0">{{ .Title }}</h1>
{{- if .Params.subtitle }}
<p class="content-subtitle text-muted fs-5 mt-2">{{ .Params.subtitle }}</p>
{{- end }}
</div>d
<div class="col-12 col-md-4">
<div class="d-flex gap-2 justify-content-md-end">
<div class="col-12 col-md-8">
<h1 class="content-title mb-0">{{ .Title }}</h1>
{{- if .Params.subtitle }}
<p class="content-subtitle text-muted fs-5 mt-2">{{ .Params.subtitle }}</p>
{{- end }}
</div>
<div class="col-12 col-md-4">
<div class="d-flex gap-2 justify-content-md-end">
🤖 Prompt for AI Agents
In `@module/layouts/_partials/components/guide/render-guide.html` around lines 83
- 90, Remove the stray "d" text node that follows the closing </div> in the
header block of render-guide.html (the block containing the <h1
class="content-title mb-0">{{ .Title }}</h1> and the optional {{ if
.Params.subtitle }} paragraph); delete that literal character so the markup
returns to valid HTML and nothing extra renders in the header.


{{- if ne .Site.Language.Lang "en" }}
<a
href="{{ .Site.Params.githubUrl }}/issues/new?template=translation-error.yml"
Expand Down Expand Up @@ -171,6 +177,7 @@ <h4 class="h6 text-muted mb-3 flex-shrink-0 d-none d-md-block">{{ i18n "guide_ta
{{- end }}
</div>
</div>

</div>
{{ if .Date }}
<div class="publish-date">
Expand Down