43 lines
2.0 KiB
Plaintext
43 lines
2.0 KiB
Plaintext
|
<!DOCTYPE html>
|
||
|
<html lang="en" data-theme="luxury" class="h-screen">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<link href="https://cdn.jsdelivr.net/npm/daisyui@2.47.0/dist/full.css" rel="stylesheet" type="text/css" />
|
||
|
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2/dist/tailwind.min.css" rel="stylesheet" type="text/css" />
|
||
|
<title>{% block title %}{% endblock %}</title>
|
||
|
</head>
|
||
|
<body class="h-full">
|
||
|
<div class="navbar bg-base-200">
|
||
|
<div class="navbar-start">
|
||
|
<div class="dropdown">
|
||
|
<label tabindex="0" class="btn btn-ghost lg:hidden">
|
||
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h8m-8 6h16" /></svg>
|
||
|
</label>
|
||
|
<ul tabindex="0" class="menu menu-compact dropdown-content mt-3 p-2 shadow bg-base-300 rounded-box w-52">
|
||
|
<li><a href="/">Página principal</a></li>
|
||
|
<li><a href="/about">Info</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<a class="btn btn-ghost normal-case text-xl year-data" href="#">Desafío del mejor amigo $year</a>
|
||
|
</div>
|
||
|
<div class="navbar-end hidden lg:flex">
|
||
|
<ul class="menu menu-horizontal px-1">
|
||
|
<li><a href="/">Página principal</a></li>
|
||
|
<li><a href="/about">Info</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
{% block body %}
|
||
|
{% endblock %}
|
||
|
<script>
|
||
|
const year = new Date().getFullYear().toString();
|
||
|
// Set everything to the current year
|
||
|
document.querySelectorAll(".year-data").forEach((element) => {
|
||
|
element.innerText = element.innerText.replace('$year', year);
|
||
|
})
|
||
|
document.title = `Desafío del mejor amigo ${year}${document.title}`;
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|