-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcss.html
More file actions
36 lines (33 loc) · 2.01 KB
/
Copy pathcss.html
File metadata and controls
36 lines (33 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{{define "css"}}{{$v := . -}}
<meta charset="utf-8" />
<meta name="description" content="Sustainable pharmacology and harmreduction wiki." />
<meta name="color-scheme" content="{{default "light" .Theme | stripHTML}}" />
{{if $v.Title -}}
<meta property="og:title" content="{{$v.Title}}">
{{if eq $v.Type "user" -}}
<meta property="og:description" content="{{template "stripuser" $v.About}}">
{{if printf "/user/%s/pfp.jpg" $v.Title | fileExists -}}
<meta property="og:image" content="https://anodyne.wiki/user/{{$v.Title}}/pfp.jpg">
{{end -}}
<meta name="twitter:card" content="summary">
{{else if eq $v.Title "About" -}}
<meta property="og:description" content="A meta-wiki optimized for chemicals affecting biological life-forms and their use and administration and interactions.">
<meta property="og:image" content="https://anodyne.wiki/assets/logo.png">
{{else -}}
<meta property="og:description" content="{{$v.Title}}{{if $v.ChemicalClasses}} is a {{with $v.Classes}}{{template "rcad" .}} {{end}}substance of the {{template "rcad" $v.ChemicalClasses}} class.{{end}}">
<meta property="og:image" content="https://anodyne.wiki/structure/{{lower $v.Title | replace " " "_"}}.jpg">
<meta name="twitter:card" content="summary_large_image">
{{- end}}
<meta property="og:url" content="https://anodyne.wiki{{placeholder "http.request.orig_uri.path"}}">
{{- end}}
<link rel="stylesheet" href="/css/theme/light.css">
<link rel="stylesheet" href="/css/theme/dark.css">
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/icons.css">
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
<link rel="preconnect" href="https://rsms.me/">
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
{{/*<script type="text/javascript" src="/js/JSmol.min.js"></script>*/}}
{{/*<script type="text/javascript" src="/js/JSmol.GLmol.min.js"></script>*/}}
{{if contains "true" $v.Editable}}<script type="text/javascript" src="/js/editable.js"></script>{{end}}
{{- end}}