Jason 11 months ago
parent
commit
dd38cf05a7
2 changed files with 8 additions and 0 deletions
  1. 4 0
      layouts/index.html
  2. 4 0
      scripts/cron.sh

+ 4 - 0
layouts/index.html

@@ -1,7 +1,11 @@
 {{ define "main" }}
+
+{{ if not .Paginator.HasPrev }}
 <div class="homepage-content">
     {{ .Content }}
 </div>
+{{ end }}
+
 
 {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
 {{ range (.Paginate $pages).Pages }}

+ 4 - 0
scripts/cron.sh

@@ -8,6 +8,10 @@ git pull
 
 source ./env/bin/activate
 python $dir/scripts/gists.py
+
+rm $dir/public
+rm /var/www/1j.nz/public
+
 /home/linuxbrew/.linuxbrew/bin/hugo
 /home/linuxbrew/.linuxbrew/bin/hugo -b https://1j.nz/ -d /var/www/1j.nz/public