From 920018950bb9b7e3d2ced48804be8c5b27843dfb Mon Sep 17 00:00:00 2001 From: Yanislav Igonin Date: Mon, 28 Feb 2022 12:33:20 +0200 Subject: [PATCH] Revert "fix: seo + uploads" This reverts commit 424a5ff4df1828048df23cc1b81f3e85353e7cd4. --- templates/components/post.html | 4 ++-- templates/components/thread-card.html | 2 +- templates/head/meta-tags-dynamic.html | 6 +++--- templates/head/meta-tags-static.html | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/components/post.html b/templates/components/post.html index 7041269..97c386e 100644 --- a/templates/components/post.html +++ b/templates/components/post.html @@ -12,8 +12,8 @@
{{ range $File := .Files }} {{ end }} diff --git a/templates/components/thread-card.html b/templates/components/thread-card.html index 293dc03..28349c0 100644 --- a/templates/components/thread-card.html +++ b/templates/components/thread-card.html @@ -4,7 +4,7 @@ {{ $length := len .Files }} {{ if gt $length 0 }} {{ $FirstFile := index .Files 0 }} - Uploaded picture + Uploaded picture {{ end }}
diff --git a/templates/head/meta-tags-dynamic.html b/templates/head/meta-tags-dynamic.html index 6444773..91707d4 100644 --- a/templates/head/meta-tags-dynamic.html +++ b/templates/head/meta-tags-dynamic.html @@ -3,7 +3,7 @@ {{ $SeoImageUrl := "" }} {{ if .Files }} {{ $FirstFile := index .Files 0 }} - {{ $SeoImageUrl = printf "uploads/%d/t/%d.%s" .ID $FirstFile.ID $FirstFile.Ext }} + {{ $SeoImageUrl = printf "https://micrach.igonin.dev/uploads/%d/t/%d.%s" .ID $FirstFile.ID $FirstFile.Ext }} {{ else }} {{ $SeoImageUrl = "https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png" }} {{ end }} @@ -17,14 +17,14 @@ - + - + diff --git a/templates/head/meta-tags-static.html b/templates/head/meta-tags-static.html index ad5d25e..28be81e 100644 --- a/templates/head/meta-tags-static.html +++ b/templates/head/meta-tags-static.html @@ -8,14 +8,14 @@ - + - +