diff --git a/build.sh b/build.sh index 6694f9c..10c100b 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ hugo rsync -arP --delete public/* root@server:/var/www/site git add . -git commit -m "Site rebuild" +git commit -m "Site update" git push diff --git a/hugo.toml b/hugo.toml index 020dd91..bdbdd5d 100644 --- a/hugo.toml +++ b/hugo.toml @@ -16,3 +16,4 @@ enableEmoji = true [params] description = "My shitty website" title = "Crony Akatsuki's Website" + dateFormat = "02-01-2006" diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 6d59e1e..6bcf073 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -7,7 +7,7 @@
{{ range .Pages.ByPublishDate.Reverse }} - {{ .Date.Format "02-01-2006" }} || {{ .Title }} + {{ .Date.Format .Site.Params.dateFormat }} || {{ .Title }}
{{ end }}
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 23b6df4..009295a 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -17,7 +17,7 @@ {{ .Title }} {{ .Permalink }} -{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} +{{ .Params.date.Format .Site.Params.dateFormat | safeHTML }} {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{- .Content | html -}} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b24cc9c..da1ab96 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,6 +2,10 @@

{{ .Title }}

-{{ .Content }} +{{ if isset .Params "date" }} -{{ end}} +
+

{{ .Date.Format .Site.Params.dateFormat }}

+
+ +{{ end }} {{ .Content }} {{ end }} diff --git a/public/about/index.html b/public/about/index.html index c8ec86f..69c1f79 100644 --- a/public/about/index.html +++ b/public/about/index.html @@ -36,7 +36,7 @@

Who am I?

-

I’m Crony Akatsuki, 20 year old who doesn’t go to college. +

I’m Crony Akatsuki, 20 year old who doesn’t go to college. Living in Croatia. At the current moment working as a store cleck. I love linux, computer’s and foss. To pass time I read manga, program stupid little programs, @@ -53,9 +53,7 @@ and showcase naruto, FUCK CROATIA!).

  • Discord: cronyakatsuki
  • XMPP: crony@cronyakatsuki.xyz
  • - - - +