Error out if hugo.Version used is less than min required version

This commit is contained in:
Aditya Telange 2023-11-04 16:01:44 +05:30
parent 50cafe4b1c
commit 72ab73ffe5
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
1 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,7 @@
{{- if lt hugo.Version "0.97.1" }}
{{- errorf "=> hugo v0.97.1 or greater is required for hugo-PaperMod to build " }}
{{- end -}}
<!DOCTYPE html>
<html lang="{{ site.Language }}" dir="{{ .Language.LanguageDirection | default "auto" }}">