Skip to content

Commit

Permalink
add resource page and fixed header
Browse files Browse the repository at this point in the history
  • Loading branch information
h3athen committed Nov 4, 2024
1 parent 87eedc3 commit 9ec454f
Show file tree
Hide file tree
Showing 19 changed files with 1,132 additions and 120 deletions.
8 changes: 4 additions & 4 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ disableTextInHeader = false
# smartTOC = true
# smartTOCHideUnfocusedChildren = true

giteaDefaultServer = "https://git.fsfe.org"
forgejoDefaultServer = "https://v8.next.forgejo.org"
# giteaDefaultServer = "https://git.fsfe.org"
# forgejoDefaultServer = "https://v8.next.forgejo.org"

[header]
layout = "basic" # valid options: basic, fixed, fixed-fill, fixed-gradient, fixed-fill-blur
layout = "fixed" # valid options: basic, fixed, fixed-fill, fixed-gradient, fixed-fill-blur

[footer]
showMenu = true
showCopyright = true
showThemeAttribution = true
showThemeAttribution = false
showAppearanceSwitcher = true
showScrollToTop = true

Expand Down
2 changes: 1 addition & 1 deletion content/posts/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Blogs"
description: "Learn how to use Blowfish and its features."
description: "This is where I write about my life, learning and research"
---

{{< lead >}}
Expand Down
14 changes: 14 additions & 0 deletions content/resources/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: "Resources"
showDate: false
showAuthor: false
showZenMode: false
showReadingTime: false

---

{{< lead >}}
Some useful links and posts
{{< /lead >}}

test
28 changes: 17 additions & 11 deletions public/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@
</div>


<div style="padding-left:0;padding-right:0;padding-top:2px;padding-bottom:3px"
<div class="min-h-[148px]"></div>
<div class="fixed inset-x-0 pl-[24px] pr-[24px]" style="z-index:100">
<div id="menu-blur" class="absolute opacity-0 inset-x-0 top-0 h-full single_hero_background nozoom backdrop-blur-2xl shadow-2xl"></div>
<div class="relative max-w-[64rem] ml-auto mr-auto">
<div style="padding-left:0;padding-right:0;padding-top:2px;padding-bottom:3px"
class="main-menu flex items-center justify-between px-4 py-6 sm:px-6 md:justify-start space-x-3">

<div class="flex flex-1 items-center justify-between">
Expand Down Expand Up @@ -171,7 +175,7 @@



<a href="" class="flex items-center text-gray-500 hover:text-primary-600 dark:hover:text-primary-400">
<a href="/resources/" class="flex items-center text-gray-500 hover:text-primary-600 dark:hover:text-primary-400">

<p class="text-base font-medium" title="">
Resources
Expand Down Expand Up @@ -421,7 +425,7 @@


<li class="mt-1">
<a href="" class="flex items-center text-gray-500 hover:text-primary-600 dark:hover:text-primary-400">
<a href="/resources/" class="flex items-center text-gray-500 hover:text-primary-600 dark:hover:text-primary-400">

<p class="text-bg font-bg" title="">
Resources
Expand Down Expand Up @@ -539,6 +543,16 @@



</div>
</div>
<script>
window.addEventListener('scroll', function (e) {
var scroll = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
var background_blur = document.getElementById('menu-blur');
background_blur.style.opacity = (scroll / 300);
});
</script>


<div class="relative flex flex-col grow">
<main id="main-content" class="grow">
Expand Down Expand Up @@ -592,14 +606,6 @@ <h1 class="mb-3 text-4xl font-extrabold">Page Not Found 😕</h1>



<p class="text-xs text-neutral-500 dark:text-neutral-400">


Powered by <a class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
href="https://gohugo.io/" target="_blank" rel="noopener noreferrer">Hugo</a> &amp; <a class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
href="https://blowfish.page/" target="_blank" rel="noopener noreferrer">Blowfish</a>
</p>


</div>
<script>
Expand Down
28 changes: 17 additions & 11 deletions public/authors/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@
</div>


<div style="padding-left:0;padding-right:0;padding-top:2px;padding-bottom:3px"
<div class="min-h-[148px]"></div>
<div class="fixed inset-x-0 pl-[24px] pr-[24px]" style="z-index:100">
<div id="menu-blur" class="absolute opacity-0 inset-x-0 top-0 h-full single_hero_background nozoom backdrop-blur-2xl shadow-2xl"></div>
<div class="relative max-w-[64rem] ml-auto mr-auto">
<div style="padding-left:0;padding-right:0;padding-top:2px;padding-bottom:3px"
class="main-menu flex items-center justify-between px-4 py-6 sm:px-6 md:justify-start space-x-3">

<div class="flex flex-1 items-center justify-between">
Expand Down Expand Up @@ -173,7 +177,7 @@



<a href="" class="flex items-center text-gray-500 hover:text-primary-600 dark:hover:text-primary-400">
<a href="/resources/" class="flex items-center text-gray-500 hover:text-primary-600 dark:hover:text-primary-400">

<p class="text-base font-medium" title="">
Resources
Expand Down Expand Up @@ -423,7 +427,7 @@


<li class="mt-1">
<a href="" class="flex items-center text-gray-500 hover:text-primary-600 dark:hover:text-primary-400">
<a href="/resources/" class="flex items-center text-gray-500 hover:text-primary-600 dark:hover:text-primary-400">

<p class="text-bg font-bg" title="">
Resources
Expand Down Expand Up @@ -541,6 +545,16 @@



</div>
</div>
<script>
window.addEventListener('scroll', function (e) {
var scroll = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
var background_blur = document.getElementById('menu-blur');
background_blur.style.opacity = (scroll / 300);
});
</script>


<div class="relative flex flex-col grow">
<main id="main-content" class="grow">
Expand Down Expand Up @@ -636,14 +650,6 @@ <h1 class="mt-5 text-4xl font-extrabold text-neutral-900 dark:text-neutral">Auth



<p class="text-xs text-neutral-500 dark:text-neutral-400">


Powered by <a class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
href="https://gohugo.io/" target="_blank" rel="noopener noreferrer">Hugo</a> &amp; <a class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
href="https://blowfish.page/" target="_blank" rel="noopener noreferrer">Blowfish</a>
</p>


</div>
<script>
Expand Down
28 changes: 17 additions & 11 deletions public/categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@
</div>


<div style="padding-left:0;padding-right:0;padding-top:2px;padding-bottom:3px"
<div class="min-h-[148px]"></div>
<div class="fixed inset-x-0 pl-[24px] pr-[24px]" style="z-index:100">
<div id="menu-blur" class="absolute opacity-0 inset-x-0 top-0 h-full single_hero_background nozoom backdrop-blur-2xl shadow-2xl"></div>
<div class="relative max-w-[64rem] ml-auto mr-auto">
<div style="padding-left:0;padding-right:0;padding-top:2px;padding-bottom:3px"
class="main-menu flex items-center justify-between px-4 py-6 sm:px-6 md:justify-start space-x-3">

<div class="flex flex-1 items-center justify-between">
Expand Down Expand Up @@ -173,7 +177,7 @@



<a href="" class="flex items-center text-gray-500 hover:text-primary-600 dark:hover:text-primary-400">
<a href="/resources/" class="flex items-center text-gray-500 hover:text-primary-600 dark:hover:text-primary-400">

<p class="text-base font-medium" title="">
Resources
Expand Down Expand Up @@ -423,7 +427,7 @@


<li class="mt-1">
<a href="" class="flex items-center text-gray-500 hover:text-primary-600 dark:hover:text-primary-400">
<a href="/resources/" class="flex items-center text-gray-500 hover:text-primary-600 dark:hover:text-primary-400">

<p class="text-bg font-bg" title="">
Resources
Expand Down Expand Up @@ -541,6 +545,16 @@



</div>
</div>
<script>
window.addEventListener('scroll', function (e) {
var scroll = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
var background_blur = document.getElementById('menu-blur');
background_blur.style.opacity = (scroll / 300);
});
</script>


<div class="relative flex flex-col grow">
<main id="main-content" class="grow">
Expand Down Expand Up @@ -636,14 +650,6 @@ <h1 class="mt-5 text-4xl font-extrabold text-neutral-900 dark:text-neutral">Cate



<p class="text-xs text-neutral-500 dark:text-neutral-400">


Powered by <a class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
href="https://gohugo.io/" target="_blank" rel="noopener noreferrer">Hugo</a> &amp; <a class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
href="https://blowfish.page/" target="_blank" rel="noopener noreferrer">Blowfish</a>
</p>


</div>
<script>
Expand Down
28 changes: 17 additions & 11 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@
</div>


<div style="padding-left:0;padding-right:0;padding-top:2px;padding-bottom:3px"
<div class="min-h-[148px]"></div>
<div class="fixed inset-x-0 pl-[24px] pr-[24px]" style="z-index:100">
<div id="menu-blur" class="absolute opacity-0 inset-x-0 top-0 h-full single_hero_background nozoom backdrop-blur-2xl shadow-2xl"></div>
<div class="relative max-w-[64rem] ml-auto mr-auto">
<div style="padding-left:0;padding-right:0;padding-top:2px;padding-bottom:3px"
class="main-menu flex items-center justify-between px-4 py-6 sm:px-6 md:justify-start space-x-3">

<div class="flex flex-1 items-center justify-between">
Expand Down Expand Up @@ -192,7 +196,7 @@



<a href="" class="flex items-center text-gray-500 hover:text-primary-600 dark:hover:text-primary-400">
<a href="/resources/" class="flex items-center text-gray-500 hover:text-primary-600 dark:hover:text-primary-400">

<p class="text-base font-medium" title="">
Resources
Expand Down Expand Up @@ -442,7 +446,7 @@


<li class="mt-1">
<a href="" class="flex items-center text-gray-500 hover:text-primary-600 dark:hover:text-primary-400">
<a href="/resources/" class="flex items-center text-gray-500 hover:text-primary-600 dark:hover:text-primary-400">

<p class="text-bg font-bg" title="">
Resources
Expand Down Expand Up @@ -560,6 +564,16 @@



</div>
</div>
<script>
window.addEventListener('scroll', function (e) {
var scroll = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
var background_blur = document.getElementById('menu-blur');
background_blur.style.opacity = (scroll / 300);
});
</script>


<div class="relative flex flex-col grow">
<main id="main-content" class="grow">
Expand Down Expand Up @@ -806,14 +820,6 @@ <h2 class="mt-8 text-2xl font-extrabold mb-10">Recent</h2>



<p class="text-xs text-neutral-500 dark:text-neutral-400">


Powered by <a class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
href="https://gohugo.io/" target="_blank" rel="noopener noreferrer">Hugo</a> &amp; <a class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
href="https://blowfish.page/" target="_blank" rel="noopener noreferrer">Blowfish</a>
</p>


</div>
<script>
Expand Down
Loading

0 comments on commit 9ec454f

Please sign in to comment.