-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbase.html
78 lines (73 loc) · 3.73 KB
/
base.html
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{{ define "header" }}<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>
{{- if eq .Page "/" }}Alar (ಅಲರ್). Kannada - English dictionary. ಕನ್ನಡ-ಇಂಗ್ಲಿಷ್ ನಿಘಂಟು.
{{- else if eq .Page "glossary" }}ಕನ್ನಡ ಪದಕೋಶ. Kannada - English words glossary and dictionary
{{- else if eq .Page "search" }}"{{ .Query.Query }}" — Kannada (ಅರ್ಥ) to English meaning of "{{ .Query.Query }}."
{{- else if ne .Title "" }}{{ .Title }}
{{- else }}{{ block "title" . }}{{end}}
{{- end -}}
</title>
<meta name="description" value="
{{- if eq .Page "/" }}ಅಲರ್ (Alar) ಕನ್ನಡ-ಇಂಗ್ಲಿಷ್ ನಿಘಂಟು. Free and open source Kannada - English dictionary with lakhs of meanings and pronunciations.
{{- else if eq .Page "glossary" }}ಕನ್ನಡ-ಇಂಗ್ಲಿಷ್ ಪದಗಳ ಗ್ಲಾಸರಿ. Free and open source Kannada - English words glossary with lakhs of words.
{{- else if eq .Page "search" }}{{ .Query.Query }} ಅರ್ಥ / English meaning of {{ .Query.Query }}. Free Kannada-English dictionary.
{{- else if ne .Description "" }}{{ .Description }}
{{- else }}{{ block "description" . }}{{end}}
{{- end -}}" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
<link rel="image_src" href="https://alar.ink/static/thumb.png" />
<meta property="og:image" content="https://alar.ink/static/thumb.png" />
<link rel="shortcut icon" href="https://alar.ink/static/favicon.png" type="image/x-icon" />
<link href="/static/flexit.css" rel="stylesheet" type="text/css" />
<link href="/static/style.css" rel="stylesheet" type="text/css" />
</head>
<body class="{{ if eq .Page "/"}}home{{ end }}">
<div class="container wrap">
<header class="header">
<div class="row">
<div class="logo four columns">
<a href="/"><img src="/static/logo.svg" alt="Alar logo" title="Alar: Kannada - English dictionary" /></a>
<div class="taglines">
<p class="tagline-native">
ಶ್ರೀ. ವಿ. ಕೃಷ್ಣ ಅವರ ಕನ್ನಡ - ಇಂಗ್ಲಿಷ್ ನಿಘಂಟು
</p>
<p class="tagline-english">
<strong><em>“Alar”</em></strong> V. Krishna's Kannada
→ English dictionary
</p>
</div>
</div><!-- logo col -->
<div class="search eight columns">
<form class="search-form" method="get" action="/dictionary/kannada/english">
<div>
<input autofocus required autocomplete="off" placeholder="eg: ಹೆಸರು, hesaru" type="text" id="q" name="q" value="{{ if .Query }}{{ .Query.Query }}{{ end }}" />
<button type="submit"><img src="/static/search.svg" alt="Search" /></button>
</div>
</form>
</div>
</div>
</header>
{{ end}}
{{ define "footer" }}
<div id="fakelog"></div>
<nav class="nav">
<a href="/glossary/kannada/english/ಅ">ಪದಕೋಶ (Glossary)</a>
<a href="/pages/about">ಬಗ್ಗೆ (About)</a>
</nav>
</div>
<footer class="footer">
Data © V. Krishna <span class="slash">•</span>
<a href="https://github.com/knadh/dictmaker">built with dictmaker</a> <span class="slash">•</span>
supported by
<a href="https://zerodha.tech/blog/alar-the-making-of-an-open-source-dictionary/" class="credit"><img src="https://zerodha.com/static/images/logo.svg"
alt="Zerodha" /></a>
</footer>
<script src="/static/autocomplete.js"></script>
<script src="/static/global.js"></script>
</body>
</html>
{{ end }}