{{ $filteredPages := .Site.RegularPages }}
    {{ range $.Param "notAllowedTypesInArchive" }}
      {{ $filteredPages = (where $filteredPages "Type" "!=" (lower .)) }}
    {{ end }}
  {{ if gt (len $filteredPages) 0 }}
    {{ $paginator := .Paginate ($filteredPages.GroupByDate ($.Param "archiveGroupByDate" | default "2006")) ($.Param "archivePaginate") }}
    {{ range ($paginator).PageGroups }}
      
{{ .Key }}
      
        {{ range .Pages }}
        - 
          
            {{ if ne ($.Param "languagedir") "rtl" }}
              {{ .Type }}
              {{ .Date.Format (i18n "archive-dateformat") }}
            {{ else }}
              {{ .Date.Format (i18n "archive-dateformat") }}
              {{ .Type }}
            {{ end }}
          
          {{ .Title }}        
        
 
        {{ end }}
      
    {{ end }}
  {{ else }}
    {{ i18n "no-contents" | default "There is nothing to display" }}
  {{ end }}
  
 
  
  {{ partial "pagination/pagination" . }}
  
    {{ partial "search/site-search" . }}
  
  {{ partial "script/archive-script" . }}
{{ end }}