瀏覽代碼

[enhancement] Fix year in copyright notice (#528)

* Fix link to email address

See https://github.com/hossainemruz/toha/issues/7

* fix: 🐛 year of copyright notice should be generated
Jean-Baptiste Le Duigou 3 年之前
父節點
當前提交
1e951589ef
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      layouts/partials/footer.html

+ 1 - 1
layouts/partials/footer.html

@@ -32,7 +32,7 @@
     {{ $customMenus = (index site.Data site.Language.Lang).site.customMenus }}
   {{ end }}
 
-  {{ $copyrightNotice := "© 2021 Copyright."}}
+  {{ $copyrightNotice := now.Format "2006" | printf "© %s Copyright."}}
   {{ if (index site.Data site.Language.Lang).site }}
     {{ $siteConfig := (index site.Data site.Language.Lang).site }}
     {{ if $siteConfig.copyright }}