105 lines
4.8 KiB
HTML
105 lines
4.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
{% block meta %}
|
|
<title>
|
|
{%- if page_type == "/" %} {{ t(key="global.siteTitle") }}
|
|
{%- elif page_type == "glossary" %}{{ ts(key="public.glossaryTitle", lang=from_lang_name) }} - {{ t(key="global.siteName") }}
|
|
{%- elif page_type == "search" %}{{ ts(key="public.searchTitle", query=query, to_lang=to_lang_name | lower) }} - {{ t(key="global.siteName") }}
|
|
{%- elif title %}{{ title }} - {{ t(key="global.siteName") }}
|
|
{%- endif -%}
|
|
</title>
|
|
<meta name="description" value="
|
|
{%- if page_type == "/" %}{{ t(key="public.mainTitle") }}
|
|
{%- elif page_type == "glossary" %}{{ ts(key="public.glossaryTitle", lang=from_lang_name) }}
|
|
{%- elif page_type == "search" %}{{ ts(key="public.searchDescription", from_lang=from_lang_name, query=query, to_lang=to_lang_name) }}
|
|
{%- elif description %}{{ description }}
|
|
{%- else %}{% block description %}{% endblock %}
|
|
{%- endif -%}" />
|
|
{% endblock %}
|
|
<meta property="og:image" content="{{ consts.root_url | safe }}/static/thumb.png">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
|
|
<script>
|
|
window._ROOT_URL = "{{ consts.root_url | safe }}";
|
|
window._MAX_CONTENT_ITEMS = {{ consts.site_max_content_items }};
|
|
</script>
|
|
<link rel="shortcut icon" href="/static/favicon.png?v={{ asset_ver }}" type="image/x-icon" />
|
|
<link href="/static/_bundle.css?f=oat.min.css&f=style.css&v={{ asset_ver }}" rel="stylesheet" type="text/css" />
|
|
<script defer src="/static/oat.min.js?v={{ asset_ver }}"></script>
|
|
</head>
|
|
<body class="{% if page_type == "/" %}home{% endif %}">
|
|
<div class="container">
|
|
<main class="main">
|
|
<header class="header">
|
|
<div class="row">
|
|
<div class="logo col-4">
|
|
<a class="unstyled" href="/"><img src="/static/logo.svg?v={{ asset_ver }}" alt="{{ t(key="global.siteName") }}" /></a>
|
|
<div class="intro">
|
|
<p>ಶ್ರೀ. ವಿ. ಕೃಷ್ಣ ಅವರ ಕನ್ನಡ - ಇಂಗ್ಲಿಷ್ ನಿಘಂಟು</p>
|
|
"Alar" V. Krishna's Kannada → English dictionary
|
|
</div>
|
|
</div><!-- logo col -->
|
|
|
|
<div class="search col-8">
|
|
<form class="search-form" method="get" action="">
|
|
<fieldset class="group">
|
|
<select name="lang" aria-label="{{ t(key="public.selectDict") }}">
|
|
{% for d in dicts -%}
|
|
{%- set from = d.0 -%}
|
|
{%- set to = d.1 -%}
|
|
<option value="{{ from.id }}/{{ to.id }}">{{ from.name }} - {{ to.name }}</option>
|
|
{% endfor -%}
|
|
</select>
|
|
<input autofocus autocomplete="off" required placeholder="" aria-label="{{ t(key="public.searchWord") }}"
|
|
type="text" id="q" name="q" value="{{ query | default(value="") }}" />
|
|
<button type="submit" aria-label="{{ t(key="global.btnSearch") }}"><img src="/static/search.svg?v={{ asset_ver }}" alt="{{ t(key="global.btnSearch") }}" /></button>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
{%- block content %}{% endblock -%}
|
|
|
|
<nav class="nav justify-center" aria-label="Site">
|
|
{% if consts.enable_submissions %}
|
|
<a href="{{ consts.root_url | safe }}/submit">{{ t(key="public.submitEntry") }}</a>
|
|
{% endif %}
|
|
{% if consts.enable_glossary %}
|
|
{%- for d in dicts %}
|
|
{%- set from = d.0 -%}
|
|
{%- set to = d.1 -%}
|
|
<a href="{{ consts.root_url | safe }}/glossary/{{ from.id }}/{{ to.id }}/*" class="tab">
|
|
{{ ts(key="public.glossary", lang=from.name) }}
|
|
</a>
|
|
{% endfor -%}
|
|
{% endif %}
|
|
<a href="{{ consts.root_url | safe }}/p/about">{{ t(key="public.about") }}</a>
|
|
</nav>
|
|
</main>
|
|
|
|
<footer class="footer align-center text-light">
|
|
<span>Maintained by <a href="https://indicarchive.org">IDAF</a></span>
|
|
<span>Supported by <a href="https://zerodha.tech/blog/alar-the-making-of-an-open-source-dictionary/"><img src="/static/zerodha-logo.svg" alt="Zerodha"></a></span>
|
|
</footer>
|
|
</div><!-- container -->
|
|
|
|
<template id="tpl-form-comments">
|
|
<article class="card form-comments" popover data-success="{{ t(key="public.suggestSubmitted") }}">
|
|
<h4>{{ t(key="public.submitTitle") }}</h4>
|
|
<textarea name="comments" aria-label="{{ t(key="public.submitTitle") }}" maxlength="500"></textarea>
|
|
|
|
<footer class="hstack mt-2">
|
|
<button class="submit-comment">{{ t(key="public.suggestSubmitBtn") }}</button>
|
|
<button class="close" data-variant="secondary">{{ t(key="global.btnClose") }}</button>
|
|
</footer>
|
|
</article>
|
|
</template>
|
|
|
|
<script type="module" src="/static/_bundle.js?f=autocomp.js&f=share.js&f=main.js&f=alar.js&v={{ asset_ver }}"></script>
|
|
</body>
|
|
</html>
|