From 424a5ff4df1828048df23cc1b81f3e85353e7cd4 Mon Sep 17 00:00:00 2001 From: Yanislav Igonin Date: Mon, 28 Feb 2022 12:10:37 +0200 Subject: [PATCH] fix: seo + uploads --- 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 97c386e..7041269 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 28349c0..293dc03 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 91707d4..6444773 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 "https://micrach.igonin.dev/uploads/%d/t/%d.%s" .ID $FirstFile.ID $FirstFile.Ext }} + {{ $SeoImageUrl = printf "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 28be81e..ad5d25e 100644 --- a/templates/head/meta-tags-static.html +++ b/templates/head/meta-tags-static.html @@ -8,14 +8,14 @@ - + - +