1
1
Fork 0
portfolio/_includes/base-header.html
2024-03-25 13:56:47 -05:00

56 lines
2.3 KiB
HTML

<!doctype html>
{% if title %}
{% set pagetitle = title %}
{% else %}
{% set pagetitle = page.fileSlug %}
{% endif %}
<html class="latte dark:mocha">
<head>
<title>Portfolio - {{ pagetitle | capitalize }}</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="Portfolio - {{ pagetitle | capitalize }}" />
<meta property="og:description" content="{{ description }}" />
<link href="/styles.css" rel="stylesheet">
<link href="/catppuccin.variables.css" rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="/img/site/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/site/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/img/site/favicons/favicon-16x16.png">
<link rel="manifest" href="/img/site/favicons/site.webmanifest">
</head>
<body class="bg-crust bg-[length:20rem] bg-[url('/img/site/stars-light.gif')] dark:bg-[url('/img/site/stars-dark.gif')]">
<div class="flex gap-y-12 flex-col sm:flex-row">
<header class="
bg-base/75 contrast-more:bg-crust
border-b-2 border-base shadow
flex gap-2 justify-between flex-col xs:flex-row sm:flex-col sm:justify-start
">
<img src="/img/site/falling.gif" alt="" role="presentation" class="h-auto w-auto xs:max-w-48" />
<nav class="inline-flex flex-col relative my-auto pl-2 pb-2 sm:my-0 contrast-more:contrast-150">
{%- for navItem in navigation -%}
<a
href="{{navItem.url}}"
class="transition-colors {% if page.url == navItem.url %} border-mauve text-mauve {% else %} hover:border-pink active:border-pink text-subtext1 hover:text-subtext0 active:text-subtext0 border-transparent{% endif %} inline-flex items-center pl-1 pr-4 pt-1 border-b-2 text-lg font-medium outline-link"
{% if page.url == navItem.url %}aria-current="page"{% endif %}
>
{{navItem.title}}
</a>
{%- endfor -%}
{%- for navItem in links -%}
<a
href="{{navItem.url}}"
class="ml-1 mt-1 pr-4 link hidden xs:inline-flex"
{% if page.url == navItem.url %}aria-current="page"{% endif %}
>
{{navItem.title}}
</a>
{%- endfor -%}
</nav>
</header>