mirror of
https://github.com/Vimux/Binario.git
synced 2024-11-11 01:38:28 +00:00
Add hideNoPostsWarning param
This commit is contained in:
parent
ecfa7f6421
commit
30e3277682
2 changed files with 3 additions and 2 deletions
|
@ -115,6 +115,7 @@ googleAnalytics = "" # Enable Google Analytics by entering your tracking id
|
|||
mathjax = true # Enable MathJax for all site pages
|
||||
mathjaxPath = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" # Specify MathJax path. Optional
|
||||
mathjaxConfig = "TeX-AMS-MML_HTMLorMML" # Specify MathJax config. Optional
|
||||
hideNoPostsWarning = false # Don't show no posts empty state warning in main page, if true
|
||||
|
||||
[Params.Social]
|
||||
email = "example@example.com"
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{- if eq $paginator.TotalNumberOfElements 0 }}
|
||||
{{- if and (not .Site.Params.hideNoPostsWarning) (eq $paginator.TotalNumberOfElements 0) }}
|
||||
<div class="empty block center">
|
||||
<div class="empty__icon">¯\_(ツ)_/¯</div>
|
||||
<h3 class="empty__title">{{ T "empty_title" }}</h3>
|
||||
|
|
Loading…
Reference in a new issue