fix: many things
This commit is contained in:
parent
4fde4c4816
commit
0460a355d7
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -1,4 +1,4 @@
|
||||
[submodule "themes/blowfish"]
|
||||
path = themes/blowfish
|
||||
url = https://github.com/nunocoracao/blowfish.git
|
||||
branch = main
|
||||
branch = v2.57.0
|
||||
|
@ -1,7 +1,7 @@
|
||||
languageCode = "en"
|
||||
languageName = "English"
|
||||
weight = 1
|
||||
title = "d3vyce"
|
||||
title = "d3vyce's Blog"
|
||||
|
||||
[params]
|
||||
displayName = "EN"
|
||||
@ -17,9 +17,9 @@ title = "d3vyce"
|
||||
name = "d3vyce"
|
||||
image = "img/author.png"
|
||||
headline = "Hi 👋, Welcome to my Blog!"
|
||||
bio = "test"
|
||||
bio = "Cybersecurity, Devops, Infrastructure"
|
||||
links = [
|
||||
{ email = "mailto:cotnact@d3vyce.fr" },
|
||||
{ email = "mailto:contact@d3vyce.fr" },
|
||||
{ link = "https://d3vyce.fr/" },
|
||||
{ github = "https://github.com/d3vyce" },
|
||||
{ x-twitter = "https://twitter.com/d3vyce" },
|
||||
|
@ -26,9 +26,15 @@
|
||||
weight = 20
|
||||
|
||||
[[main]]
|
||||
name = "Homelab"
|
||||
name = "Infrastructure"
|
||||
parent = "Categories"
|
||||
pageRef = "categories/homelab"
|
||||
pageRef = "categories/infrastructure"
|
||||
weight = 10
|
||||
|
||||
[[main]]
|
||||
name = "Programming"
|
||||
parent = "Categories"
|
||||
pageRef = "categories/programming"
|
||||
weight = 10
|
||||
|
||||
[[main]]
|
||||
|
@ -12,7 +12,7 @@ autoSwitchAppearance = true
|
||||
enableSearch = true
|
||||
enableCodeCopy = true
|
||||
|
||||
mainSections = ["security", "homelab"]
|
||||
mainSections = ["infrastructure", "programming", "security"]
|
||||
# robots = ""
|
||||
|
||||
disableImageOptimization = false
|
||||
@ -39,7 +39,7 @@ smartTOCHideUnfocusedChildren = false
|
||||
layout = "custom" # valid options: page, profile, hero, card, background, custom
|
||||
homepageImage = "img/ocean.jpg" # used in: hero, and card
|
||||
showRecent = true
|
||||
showRecentItems = 6
|
||||
showRecentItems = 9
|
||||
showMoreLink = true
|
||||
showMoreLinkDest = "/posts"
|
||||
cardView = true
|
||||
|
@ -4,3 +4,10 @@ description: "This page was built using the Blowfish theme for Hugo."
|
||||
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>
|
||||
|
@ -4,10 +4,20 @@ slug: "categories"
|
||||
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">
|
||||
<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>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -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" >}}
|
11
content/categories/infrastructure.md
Normal file
11
content/categories/infrastructure.md
Normal 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" >}}
|
11
content/categories/programming.md
Normal file
11
content/categories/programming.md
Normal 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" >}}
|
@ -3,7 +3,7 @@ title: "Authelia : a selfhosted SSO"
|
||||
date: 2022-04-10
|
||||
draft: false
|
||||
slug: "authelia-selfhosted-sso"
|
||||
tags: ["tools", "sso"]
|
||||
tags: ["sso", "tools"]
|
||||
type: "security"
|
||||
---
|
||||
|
||||
|
@ -4,7 +4,7 @@ date: 2022-02-28
|
||||
draft: false
|
||||
slug: "how-to-host-multiple-services-on-one-public-ip"
|
||||
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 !
|
||||
|
@ -4,7 +4,7 @@ date: 2022-02-01
|
||||
draft: false
|
||||
slug: "how-to-index-your-blog-on-google"
|
||||
tags: []
|
||||
type: "homelab"
|
||||
type: "infrastructure"
|
||||
---
|
||||
|
||||
## What's indexation ?
|
||||
|
@ -4,7 +4,7 @@ date: 2022-07-19
|
||||
draft: false
|
||||
slug: "how-to-make-daily-backups-of-your-homelab"
|
||||
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?
|
||||
|
9
content/posts/migrate-from-ghost-to-hugo/index.md
Normal file
9
content/posts/migrate-from-ghost-to-hugo/index.md
Normal 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"
|
||||
---
|
||||
|
@ -4,7 +4,7 @@ date: 2022-02-11
|
||||
draft: false
|
||||
slug: "my-current-homelab"
|
||||
tags: []
|
||||
type: "homelab"
|
||||
type: "infrastructure"
|
||||
---
|
||||
|
||||
## What's a Homelab ?
|
||||
|
2
i18n/en.yaml
Normal file
2
i18n/en.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
shortcode:
|
||||
recent_articles: "Recent Articles"
|
1
layouts/partials/extend-head.html
Normal file
1
layouts/partials/extend-head.html
Normal file
@ -0,0 +1 @@
|
||||
<script async src="https://analytics.d3vyce.fr/script.js" data-website-id="8d5eb1cb-e5e5-4baa-aaa2-602b091c9068"></script>
|
40
layouts/partials/home/custom.html
Normal file
40
layouts/partials/home/custom.html
Normal 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>
|
@ -17,10 +17,10 @@ server {
|
||||
|
||||
# redirect server error pages to the static page /50x.html
|
||||
#
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
# error_page 500 502 503 504 /50x.html;
|
||||
# location = /50x.html {
|
||||
# root /usr/share/nginx/html;
|
||||
# }
|
||||
|
||||
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user