Skip to content

Commit 04e05b9

Browse files
authored
feat: Display Website Filing Information on cloudwego.cn (#1495)
Signed-off-by: rogerogers <[email protected]>
1 parent eaca805 commit 04e05b9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

layouts/partials/filing.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{{ $baseURL := urls.Parse .Site.BaseURL }}
2+
{{- if hasSuffix $baseURL.Hostname "cloudwego.cn" -}}
3+
<div class="text-white mt-1">备案号:<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener">京ICP备18026016号-10</a></div>
4+
{{- end -}}

layouts/partials/footer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<a class="cloudwego-link" href="{{ .url }}" target="_blank" rel="noopener">{{ .name }}</a>
3030
{{ end }}
3131
</p>
32+
{{ partial "filing.html" . }}
3233
</div>
3334
</div>
3435
</div>

0 commit comments

Comments
 (0)