fix: many things

This commit is contained in:
d3vyce 2024-02-17 19:54:22 +01:00
parent 4fde4c4816
commit 0460a355d7
20 changed files with 116 additions and 30 deletions

2
.gitmodules vendored
View File

@ -1,4 +1,4 @@
[submodule "themes/blowfish"] [submodule "themes/blowfish"]
path = themes/blowfish path = themes/blowfish
url = https://github.com/nunocoracao/blowfish.git url = https://github.com/nunocoracao/blowfish.git
branch = main branch = v2.57.0

View File

@ -1,7 +1,7 @@
languageCode = "en" languageCode = "en"
languageName = "English" languageName = "English"
weight = 1 weight = 1
title = "d3vyce" title = "d3vyce's Blog"
[params] [params]
displayName = "EN" displayName = "EN"
@ -17,9 +17,9 @@ title = "d3vyce"
name = "d3vyce" name = "d3vyce"
image = "img/author.png" image = "img/author.png"
headline = "Hi 👋, Welcome to my Blog!" headline = "Hi 👋, Welcome to my Blog!"
bio = "test" bio = "Cybersecurity, Devops, Infrastructure"
links = [ links = [
{ email = "mailto:cotnact@d3vyce.fr" }, { email = "mailto:contact@d3vyce.fr" },
{ link = "https://d3vyce.fr/" }, { link = "https://d3vyce.fr/" },
{ github = "https://github.com/d3vyce" }, { github = "https://github.com/d3vyce" },
{ x-twitter = "https://twitter.com/d3vyce" }, { x-twitter = "https://twitter.com/d3vyce" },

View File

@ -26,9 +26,15 @@
weight = 20 weight = 20
[[main]] [[main]]
name = "Homelab" name = "Infrastructure"
parent = "Categories" parent = "Categories"
pageRef = "categories/homelab" pageRef = "categories/infrastructure"
weight = 10
[[main]]
name = "Programming"
parent = "Categories"
pageRef = "categories/programming"
weight = 10 weight = 10
[[main]] [[main]]

View File

@ -12,7 +12,7 @@ autoSwitchAppearance = true
enableSearch = true enableSearch = true
enableCodeCopy = true enableCodeCopy = true
mainSections = ["security", "homelab"] mainSections = ["infrastructure", "programming", "security"]
# robots = "" # robots = ""
disableImageOptimization = false disableImageOptimization = false
@ -39,7 +39,7 @@ smartTOCHideUnfocusedChildren = false
layout = "custom" # valid options: page, profile, hero, card, background, custom layout = "custom" # valid options: page, profile, hero, card, background, custom
homepageImage = "img/ocean.jpg" # used in: hero, and card homepageImage = "img/ocean.jpg" # used in: hero, and card
showRecent = true showRecent = true
showRecentItems = 6 showRecentItems = 9
showMoreLink = true showMoreLink = true
showMoreLinkDest = "/posts" showMoreLinkDest = "/posts"
cardView = true cardView = true

View File

@ -4,3 +4,10 @@ description: "This page was built using the Blowfish theme for Hugo."
layout: "simple" layout: "simple"
--- ---
{{< list title="Latest Projects" cardView=true limit=3 where="Type" value="projects" >}}
<div class="mt-10 flex justify-center">
<a href="projects">
<button class="bg-transparent hover:text-primary-500 prose dark:prose-invert font-semibold hover:text-white py-2 px-4 border border-primary-500 hover:border-transparent rounded">Show More</button>
</a>
</div>

View File

@ -4,10 +4,20 @@ slug: "categories"
layout: "simple" layout: "simple"
--- ---
{{< list title="Homelab" cardView=true limit=3 where="Type" value="homelab" >}} {{< list title="Infrastructure" cardView=true limit=3 where="Type" value="infrastructure" >}}
<div class="mt-10 flex justify-center"> <div class="mt-10 flex justify-center">
<a href="homelab"> <a href="infrastructure">
<button class="bg-transparent hover:text-primary-500 prose dark:prose-invert font-semibold hover:text-white py-2 px-4 border border-primary-500 hover:border-transparent rounded">Show More</button>
</a>
</div>
---
{{< list title="Programming" cardView=true limit=3 where="Type" value="programming" >}}
<div class="mt-10 flex justify-center">
<a href="programming">
<button class="bg-transparent hover:text-primary-500 prose dark:prose-invert font-semibold hover:text-white py-2 px-4 border border-primary-500 hover:border-transparent rounded">Show More</button> <button class="bg-transparent hover:text-primary-500 prose dark:prose-invert font-semibold hover:text-white py-2 px-4 border border-primary-500 hover:border-transparent rounded">Show More</button>
</a> </a>
</div> </div>

View File

@ -1,11 +0,0 @@
---
title: "Homelab"
draft: false
slug: "homelab"
layout: "simple"
showWordCount: false
showReadingTime: false
showDate: false
---
{{< list title=" " cardView=true limit=99 where="Type" value="homelab" >}}

View File

@ -0,0 +1,11 @@
---
title: "Infrastructure"
draft: false
slug: "infrastructure"
layout: "simple"
showWordCount: false
showReadingTime: false
showDate: false
---
{{< list title=" " cardView=true limit=99 where="Type" value="infrastructure" >}}

View File

@ -0,0 +1,11 @@
---
title: "Programming"
draft: false
slug: "programming"
layout: "simple"
showWordCount: false
showReadingTime: false
showDate: false
---
{{< list title=" " cardView=true limit=99 where="Type" value="programming" >}}

View File

@ -3,7 +3,7 @@ title: "Authelia : a selfhosted SSO"
date: 2022-04-10 date: 2022-04-10
draft: false draft: false
slug: "authelia-selfhosted-sso" slug: "authelia-selfhosted-sso"
tags: ["tools", "sso"] tags: ["sso", "tools"]
type: "security" type: "security"
--- ---

View File

@ -4,7 +4,7 @@ date: 2022-02-28
draft: false draft: false
slug: "how-to-host-multiple-services-on-one-public-ip" slug: "how-to-host-multiple-services-on-one-public-ip"
tags: ["reverse proxy"] tags: ["reverse proxy"]
type: "homelab" type: "infrastructure"
--- ---
You have services that you want to make accessible from outside? A Plex, a password manager, a website, ... You use a non professional connection with a dynamic external IP ? then you must have asked yourself the question of how to host more than one service with only one external IP address ! You have services that you want to make accessible from outside? A Plex, a password manager, a website, ... You use a non professional connection with a dynamic external IP ? then you must have asked yourself the question of how to host more than one service with only one external IP address !

View File

@ -4,7 +4,7 @@ date: 2022-02-01
draft: false draft: false
slug: "how-to-index-your-blog-on-google" slug: "how-to-index-your-blog-on-google"
tags: [] tags: []
type: "homelab" type: "infrastructure"
--- ---
## What's indexation ? ## What's indexation ?

View File

@ -4,7 +4,7 @@ date: 2022-07-19
draft: false draft: false
slug: "how-to-make-daily-backups-of-your-homelab" slug: "how-to-make-daily-backups-of-your-homelab"
tags: ["backup", "tools"] tags: ["backup", "tools"]
type: "homelab" type: "infrastructure"
--- ---
You have your local homelab in which you store all your data. You have set up security measures to avoid data loss: parity disk, hot spare, cold spare, RAID, ... But in the event that your server burns down, a power surge fries your server and the data it contains, ... are you ready? You have your local homelab in which you store all your data. You have set up security measures to avoid data loss: parity disk, hot spare, cold spare, RAID, ... But in the event that your server burns down, a power surge fries your server and the data it contains, ... are you ready?

View File

@ -0,0 +1,9 @@
---
title: "Migrate from Ghost to Hugo"
date: 2024-02-17
draft: false
slug: "migrate-from-ghost-to-hugo"
tags: []
type: "programming"
---

View File

@ -4,7 +4,7 @@ date: 2022-02-11
draft: false draft: false
slug: "my-current-homelab" slug: "my-current-homelab"
tags: [] tags: []
type: "homelab" type: "infrastructure"
--- ---
## What's a Homelab ? ## What's a Homelab ?

2
i18n/en.yaml Normal file
View File

@ -0,0 +1,2 @@
shortcode:
recent_articles: "Recent Articles"

View File

@ -0,0 +1 @@
<script async src="https://analytics.d3vyce.fr/script.js" data-website-id="8d5eb1cb-e5e5-4baa-aaa2-602b091c9068"></script>

View File

@ -0,0 +1,40 @@
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
<article class="flex flex-col items-center justify-center text-center">
<header class="flex flex-col items-center mb-3">
{{ with .Site.Author.image }}
{{ $authorImage := resources.Get . }}
{{ if $authorImage }}
{{ if not $disableImageOptimization }}
{{ $authorImage = $authorImage.Fill "288x288" }}
{{ end }}
<img
class="mb-2 rounded-full h-36 w-36"
width="144"
height="144"
alt="{{ $.Site.Author.name | default "Author" }}"
src="{{ $authorImage.RelPermalink }}"
/>
{{ end }}
{{ end }}
<h1 class="text-4xl font-extrabold">
{{ .Site.Author.name | default .Site.Title }}
</h1>
{{ with .Site.Author.headline }}
<h2 class="text-xl text-neutral-500 dark:text-neutral-400">
{{ . | markdownify | emojify }}
</h2>
{{ end }}
<div class="mt-1 text-2xl">
{{ partialCached "author-links.html" . }}
</div>
<div class="mt-5">
<a href="about">
<button class="bg-transparent hover:text-primary-500 prose dark:prose-invert font-semibold hover:text-white py-1 px-4 border border-primary-500 hover:border-transparent rounded">About Me</button>
</a>
</div>
</header>
</article>
<section>
{{ .Content | emojify }}
{{ partial "recent-articles/main.html" . }}
</section>

View File

@ -17,10 +17,10 @@ server {
# redirect server error pages to the static page /50x.html # redirect server error pages to the static page /50x.html
# #
error_page 500 502 503 504 /50x.html; # error_page 500 502 503 504 /50x.html;
location = /50x.html { # location = /50x.html {
root /usr/share/nginx/html; # root /usr/share/nginx/html;
} # }
# proxy the PHP scripts to Apache listening on 127.0.0.1:80 # proxy the PHP scripts to Apache listening on 127.0.0.1:80
# #