-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
936 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright 2019, Kailash Nadh | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# dictmaker-alar | ||
This repository is the [dictmaker](https://github.com/knadh/dictmaker) site theme for the Kannada-English dictionary site [Alar.ink](https://alar.ink) | ||
|
||
This can be cloned and used as a theme for building dictionary site themes for dictmaker. | ||
|
||
Licensed under the MIT License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{{- define "header" -}} | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title> | ||
{{- if eq .Page "/" }}Welcome to the dictionary. | ||
{{- else if eq .Page "glossary" }}Glossary of words | ||
{{- else if eq .Page "search" }}"{{ .Query.Query }}" meaning. | ||
{{- else if ne .Title "" }}{{ .Title }} | ||
{{- else }}{{ block "title" . }}{{end}} | ||
{{- end -}} | ||
</title> | ||
<meta name="description" value=" | ||
{{- if eq .Page "/" }}Dictionary website | ||
{{- else if eq .Page "glossary" }}Glossary of words. | ||
{{- else if eq .Page "search" }}{{ .Query.Query }} meaning. | ||
{{- 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="shortcut icon" href="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 box"> | ||
<header class="header"> | ||
<div class="row"> | ||
<div class="logo four columns"> | ||
<a href="/"><img src="/static/logo.svg" alt="Dictionary logo" /></a> | ||
<div class="taglines"> | ||
<p>Welcome to the dictionary website</p> | ||
</div> | ||
</div><!-- logo col --> | ||
|
||
<div class="search eight columns"> | ||
<form class="search-form" method="get" action="/dictionary/english/italian"> | ||
<div> | ||
<input autofocus autocomplete="off" required placeholder="" | ||
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/english/italian/a">Glossary</a> | ||
<a href="/pages/about">About</a> | ||
</nav> | ||
</div> | ||
<footer class="footer"> | ||
<a href="https://dict.press">Powered by DictPress</a> | ||
</footer> | ||
<script src="/static/global.js"></script> | ||
</body> | ||
|
||
</html> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{ define "glossary-words" }} | ||
{{ if not .Words }} | ||
<h2>No words</h2> | ||
<p>No words were found in this glossary.</p> | ||
{{ else }} | ||
<ul class="noul words"> | ||
{{ range $i, $w := .Words }} | ||
<li><a href="/dictionary/{{ UnicodeURL $.FromLang }}/{{ UnicodeURL $.ToLang }}/{{ UnicodeURL $w.Content }}">{{ $w.Content }}</a></li> | ||
{{ end }} | ||
</ul> | ||
{{ end }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{{ define "glossary" }} | ||
{{ template "header" . }} | ||
|
||
<section class="content glossary"> | ||
{{ if not .Initials }} | ||
<h2>Glossary not found</h2> | ||
<p>No glossary was found for that language.</p> | ||
{{ else }} | ||
<nav class="index"> | ||
{{ range $k, $a := .Initials }} | ||
<a href="{{ UnicodeURL $a }}"{{ if eq $a $.Initial }} class="sel"{{ end }}>{{ $a }}</a> | ||
{{ end }} | ||
</nav> | ||
|
||
<nav class="pagination top">{{ .PgBar }}</nav> | ||
{{ template "glossary-words" .Glossary }} | ||
<nav class="pagination bottom">{{ .PgBar }}</nav> | ||
{{ end}} | ||
</section> | ||
|
||
{{ template "footer" . }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{{ define "index" }} | ||
{{ template "header" . }} | ||
{{ template "footer" . }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{ define "message" }} | ||
{{ template "header" . }} | ||
|
||
<section class="content"> | ||
<h1>{{ .Title }}</h1> | ||
<p>{{ .Description }}</p> | ||
</section> | ||
|
||
{{ template "footer" . }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{ define "title" }}About this site{{ end }} | ||
{{ define "description" }}About this site{{ end }} | ||
{{ define "page-about" }} | ||
{{ template "header" . }} | ||
<section class="content about"> | ||
<h1>About</h1> | ||
<p> | ||
This dictionary site is built with <a href="https://dict.press">DictPress</a>. | ||
This page can be customized by editing <code>site/pages/about.html</code>. | ||
</p> | ||
</section> | ||
{{ template "footer" . }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{{ define "results" }} | ||
<ol class="entries"> | ||
{{ range $k, $r := .Results.Entries }} | ||
<li class="entry" data-guid="{{ $r.GUID }}"> | ||
<header class="head"> | ||
<h3 class="title">{{ $r.Content }}</h3> | ||
<span class="pronun">♪ {{ JoinStrings $r.Phones "," }}</span> | ||
</header> | ||
|
||
<ol class="defs"> | ||
{{ $prevTypes := "" }} | ||
{{ range $k, $d := $r.Relations }} | ||
{{ $types := (JoinStrings $d.RelationTypes ", ") }} | ||
{{ if ne $prevTypes $types }} | ||
<div class="types"> | ||
<span>{{ $types }}</span> | ||
</div> | ||
{{ end }} | ||
<li> | ||
<div data-guid="{{ $d.GUID }}" class="d">{{ $d.Content }}</div> | ||
</li> | ||
{{ $prevTypes = $types }} | ||
{{ end }} | ||
</ol> | ||
</li> | ||
{{ end }} | ||
</ol> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{ define "search" }} | ||
{{ template "header" . }} | ||
|
||
<section class="content results"> | ||
{{ if not .Results.Entries }} | ||
<h2>ದೊರೆತಿಲ್ಲ</h2> | ||
<p> | ||
“{{ .Query.Query }}” ಪದಕ್ಕೆ ವಿವರಣೆ ದೊರಕುತ್ತಿಲ್ಲ. | ||
ಹುಡುಕಿದ ಪದ ಕನ್ನಡದಲ್ಲಿದೆ ಎಂದು ಖಚಿತಪಡಿಸಿಕೊಳ್ಳಿ. | ||
</p> | ||
<p> | ||
No results found for “{{ .Query.Query }}”. | ||
Make sure the search query is in Kannada. | ||
</p> | ||
{{ else }} | ||
{{ template "results" . }} | ||
{{ end }} | ||
</section> | ||
|
||
{{ template "footer" . }} | ||
{{ end }} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
.container { | ||
position: relative; | ||
width: 100%; | ||
max-width: 960px; | ||
margin: 0 auto; | ||
padding: 20px; | ||
box-sizing: border-box; | ||
} | ||
.row { | ||
box-sizing: border-box; | ||
display: flex; | ||
flex: 0 1 auto; | ||
flex-flow: row wrap; | ||
} | ||
.row.nogutter { | ||
margin-left: 0; | ||
margin-right: 0; | ||
} | ||
.row.nogutter > .columns { | ||
padding-left: 0; | ||
padding-right: 0; | ||
} | ||
.columns { | ||
box-sizing: border-box; | ||
flex: 0 1 auto; | ||
} | ||
.one { | ||
flex-basis: 8.33333333%; | ||
} | ||
.two { | ||
flex-basis: 16.66666667%; | ||
} | ||
.three { | ||
flex-basis: 25%; | ||
} | ||
.four { | ||
flex-basis: 33.3333333333%; | ||
} | ||
.five { | ||
flex-basis: 41.66666667%; | ||
} | ||
.six { | ||
flex-basis: 50%; | ||
} | ||
.seven { | ||
flex-basis: 58.33333333%; | ||
} | ||
.eight { | ||
flex-basis: 66.66666667%; | ||
} | ||
.nine { | ||
flex-basis: 75%; | ||
} | ||
.ten { | ||
flex-basis: 83.33333333%; | ||
} | ||
.eleven { | ||
flex-basis: 91.66666667%; | ||
} | ||
.twelve { | ||
flex-basis: 100%; | ||
} | ||
.col-offset-0 { | ||
margin-left: 0; | ||
} | ||
.col-offset-1 { | ||
margin-left: 8.33333333%; | ||
} | ||
.col-offset-2 { | ||
margin-left: 16.66666667%; | ||
} | ||
.col-offset-3 { | ||
margin-left: 25%; | ||
} | ||
.col-offset-4 { | ||
margin-left: 33.33333333%; | ||
} | ||
.col-offset-5 { | ||
margin-left: 41.66666667%; | ||
} | ||
.col-offset-6 { | ||
margin-left: 50%; | ||
} | ||
.col-offset-7 { | ||
margin-left: 58.33333333%; | ||
} | ||
.col-offset-8 { | ||
margin-left: 66.66666667%; | ||
} | ||
.col-offset-9 { | ||
margin-left: 75%; | ||
} | ||
.col-offset-10 { | ||
margin-left: 83.33333333%; | ||
} | ||
.col-offset-11 { | ||
margin-left: 91.66666667%; | ||
} | ||
.between { | ||
justify-content: space-between; | ||
} | ||
.end { | ||
justify-content: flex-end; | ||
} | ||
.around { | ||
justify-content: space-around; | ||
} | ||
.row-align-center { | ||
align-items: center; | ||
} | ||
.space-right { | ||
margin-right: 10px; | ||
} | ||
.space-left { | ||
margin-left: 10px; | ||
} | ||
.space-bottom { | ||
margin-bottom: 10px; | ||
} | ||
.space-top { | ||
margin-top: 10px; | ||
} | ||
@media (min-width: 320px) and (max-width: 780px) { | ||
.columns { | ||
flex: 1 1 auto; | ||
} | ||
.offset-0, | ||
.offset-1, | ||
.offset-2 { | ||
margin: unset; | ||
} | ||
} /*# sourceMappingURL=dist/flexit.min.css.map */ |
Oops, something went wrong.