Merge pull request #31658 from sftim/20220207_revise_community_page_and_styles

Revise community page and styles
This commit is contained in:
Kubernetes Prow Robot
2022-03-24 17:19:50 -07:00
committed by GitHub
16 changed files with 664 additions and 288 deletions
+1 -2
View File
@@ -1,4 +1,3 @@
{{ define "main" }}
<link rel="stylesheet" type="text/css" href="{{ "css/newcommunity.css" | relURL }}">
{{ .Content }}
{{ .Content }}
{{ end }}
+8
View File
@@ -92,6 +92,14 @@
<script async src="{{ "js/mermaid.min.js" | relURL }}"></script>
{{ end }}
{{- if eq (lower .Params.cid) "community" -}}
{{- if eq .Params.community_styles_migrated true -}}
<link href="/css/community.css" rel="stylesheet"><!-- legacy styles -->
{{- else -}}
<link href="/css/legacy_community.css" rel="stylesheet">
{{- end -}}
<script defer src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
{{- end -}}
<script src="{{ "js/script.js" | relURL }}"></script>
{{ with .Params.js }}{{ range (split . ",") }}<script src="{{ (trim . " ") | relURL }}"></script><!-- custom js added -->
{{ end }}{{ else }}<!-- no custom js detected -->{{ end }}