<!doctype html>
<html lang="{% block html_lang %}{{ DEFAULT_LANG }}{% endblock html_lang %}">
<head>
	{% block head %}
	<meta charset=utf-8>
	<meta name=generator content=Pelican>
	<title>{% block title %}{% endblock %}{% if self.title() %} — {% endif %}{{ SITENAME }}</title>
	<meta name=viewport content="width=device-width">
	<link rel=manifest href="/site.webmanifest">
	<link rel=apple-touch-icon href="/apple-touch-icon.png">
	{%- if IS_PDF %}
	<link rel=preconnect href="https://fonts.googleapis.com">
	<link rel=preconnect href="https://fonts.gstatic.com" crossorigin>
	<link rel=stylesheet href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&display=swap">
	{%- endif %}
	<link rel=stylesheet href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/styles.css">
	<style>.hide, .sr-only { display: none !important; }</style>
	{%- if FEED_ALL_ATOM %}
	<link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }}">
	{%- endif %}
	{%- if FEED_ALL_RSS %}
	<link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_RSS_URL %}{{ FEED_ALL_RSS_URL }}{% else %}{{ FEED_ALL_RSS }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }}">
	{%- endif %}
	{% block extra_head %}{% endblock extra_head %}
	{% endblock head %}
	<link rel=alternate href="/posts/index.xml" type="application/atom+xml" title="The Sharat's">
</head>

<body{% if (article or page) and (article or page).bodyclass %} class="{{ (article or page).bodyclass }}"{% endif %}>

	<header>
		<div class=brand><a href="{{ SITEURL }}/" rel=home title="Go Home">{{ SITENAME }}</a></div>
		<nav class=screen-only>
			{#- TODO: Highlight for Posts page needs a better solution. #}
			{%- for title, link in MENUITEMS -%}
				<a href="{{ link }}"{% if (page and link[1:] == page.url) or (link.endswith("/posts/") and output_file == "posts/index.html") %} class=active{% endif %}>{{ title }}</a>
			{%- endfor -%}
			{%- if FEED_ALL_ATOM -%}
				<a href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" title="Atom Feed">Feed</a>
			{%- elif FEED_ALL_RSS -%}
				<a href="{{ FEED_DOMAIN }}/{% if FEED_ALL_RSS_URL %}{{ FEED_ALL_RSS_URL }}{% else %}{{ FEED_ALL_RSS }}{% endif %}">RSS</a>
			{%- endif -%}
		</nav>
	</header>

	<main>{% block content %}{% endblock %}</main>

	<footer>
		© 2010&ndash;{{ current_year }} Shrikant Sharat Kandula. Source on <a href="https://github.com/sharat87/sharats.me" target=_blank rel=noopener>GitHub</a>.
			Content licensed with <a href="/licenses/cc-by/">CC-BY</a>, and code with <a href="/licenses/mit/">MIT License</a>.
	</footer>

	<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/main.js"></script>
	<script async defer src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
	<noscript><img src="https://queue.simpleanalyticscdn.com/noscript.gif" alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>
</body>
</html>
