Merge pull request #31658 from sftim/20220207_revise_community_page_and_styles
Revise community page and styles
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
{{ define "main" }}
|
||||
<link rel="stylesheet" type="text/css" href="{{ "css/newcommunity.css" | relURL }}">
|
||||
{{ .Content }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user