💄 Add gitter chat room page.
This commit is contained in:
6
layouts/partials/_thirdparty/chat/gitter.html
vendored
Normal file
6
layouts/partials/_thirdparty/chat/gitter.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<script type="text/javascript" src="//sidecar.gitter.im/dist/sidecar.v1.js" async></script>
|
||||
<script type="text/javascript">
|
||||
((window.gitter = {}).chat = {}).options = {
|
||||
room: {{ .Site.Params.gitter.room }}
|
||||
};
|
||||
</script>
|
||||
@@ -21,6 +21,10 @@
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- if .Site.Params.gitter.enable }}
|
||||
{{ partial "_thirdparty/chat/gitter.html" . }}
|
||||
{{- end }}
|
||||
|
||||
<noscript>
|
||||
<div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
|
||||
</noscript>
|
||||
Reference in New Issue
Block a user