From 22df2838e5e420874cc8c26aaad50bf0e0b2b369 Mon Sep 17 00:00:00 2001 From: fundor333 Date: Thu, 16 Jan 2025 22:32:49 +0100 Subject: [PATCH] Fix social card --- .gitmodules | 3 +++ config/_default/hugo.yaml | 5 +---- content/redirect/social_card.md | 9 +++++++++ content/social_card.md | 8 -------- themes/hugo-redirect | 1 + 5 files changed, 14 insertions(+), 12 deletions(-) create mode 100644 .gitmodules create mode 100644 content/redirect/social_card.md delete mode 100644 content/social_card.md create mode 160000 themes/hugo-redirect diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..de9af35a --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/hugo-redirect"] + path = themes/hugo-redirect + url = https://github.com/gcc42/hugo-redirect.git diff --git a/config/_default/hugo.yaml b/config/_default/hugo.yaml index c5d19c95..4d1b7cc2 100644 --- a/config/_default/hugo.yaml +++ b/config/_default/hugo.yaml @@ -9,10 +9,7 @@ module: imports: - path: github.com/hugo-sid/hugo-blog-awesome -theme: "github.com/hugo-sid/hugo-blog-awesome" - -footer: - disclaimer: "ciao" +theme: ["hugo-redirect", "github.com/hugo-sid/hugo-blog-awesome"] related: includeNewer: true diff --git a/content/redirect/social_card.md b/content/redirect/social_card.md new file mode 100644 index 00000000..0c147e09 --- /dev/null +++ b/content/redirect/social_card.md @@ -0,0 +1,9 @@ ++++ +# For example, to Redirect from /old_blog to /blog, set +# url to "/old_blog" and redirect_to to "/blog" below +type = "redirect" +url = "/social_card/" +redirect_to = "https://linktr.ee/fundor333" +redirect_enabled = true +private = true ++++ diff --git a/content/social_card.md b/content/social_card.md deleted file mode 100644 index db876d66..00000000 --- a/content/social_card.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "Fundor333" -type: about -specialpost: true ---- -Sviluppatore e fotografo nel tempo libero. - -Qui sotto i miei link diff --git a/themes/hugo-redirect b/themes/hugo-redirect new file mode 160000 index 00000000..debb2475 --- /dev/null +++ b/themes/hugo-redirect @@ -0,0 +1 @@ +Subproject commit debb2475769eae4436809669e149bbe7bca77f49