Sha256: 923acfa8fdf76072a96316db7fc0d6314a780b4c5f83b3b0334e59deeec96a05
Contents?: true
Size: 1.72 KB
Versions: 2
Compression:
Stored size: 1.72 KB
Contents
{% assign color = page.color | default: site.color %} <header class="w-full fixed z-50 select-none bg-{{ color }}-600 bg-opacity-10 bg-blur"> <nav class="p-4 font-serif text-xl text-{{ color }}-50 flex justify-between"> <a class="hover:text-{{ color }}-400 text-2xl" href="{{ site.url | default: "/" | relative_url }}">{{ site.title }}</a> <div class="hidden md:block space-x-4"> <a class="hover:text-{{ color }}-400" href="{{ "/categories" | relative_url }}">Categories</a> <a class="hover:text-{{ color }}-400" href="{{ "/tags" | relative_url }}">Tags</a> <a class="hover:text-{{ color }}-400" href="{{ "/about" | relative_url }}">About</a> </div> <div id="theme-menu" class="md:hidden"> <style>#theme-menu:hover > #theme-menu-dropdown { display: block; }</style> <button class="hover:outline-none hover:text-{{ color }}-400"> <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" /> </svg> </button> <div class="hidden origin-top-right absolute right-1 rounded-md py-1 bg-{{ color }}-100 bg-opacity-50 focus:block focus:outline-none" id="theme-menu-dropdown"> <a class="block px-4 py-2 text-sm text-{{ color }}-600 hover:bg-{{ color }}-200" href="{{ "/categories" | relative_url }}">Categories</a> <a class="block px-4 py-2 text-sm text-{{ color }}-600 hover:bg-{{ color }}-200" href="{{ "/tags" | relative_url }}">Tags</a> <a class="block px-4 py-2 text-sm text-{{ color }}-600 hover:bg-{{ color }}-200" href="{{ "/about" | relative_url }}">About</a> </div> </div> </nav> </header>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-theme-acg-1.0.6 | _includes/header.html |
jekyll-theme-acg-1.0.5 | _includes/header.html |