{{ define "javascript" }} {{ end }} {{ define "meta" }} {{ end }} {{ define "main" }}
{{ $.Scratch.Set "paper_count" 0 }} {{ range $.Site.Data.papers }} {{ $.Scratch.Add "paper_count" (len .) }} {{ end }}

Welcome to the ACL Anthology!

ACL Events
{{/* ACL EVENTS */}} {{/* Hardcoded range of years because the table layout depends on it */}} {{/* Get the current year */}} {{ $current_year := now.Format "2006" | int }} {{/* The number of columns needed for the current year block */}} {{ $num_cols := add (mod $current_year 10) 1 }} {{ $all_years := seq $current_year -1 1974 }} {{/* Years that should have a border on their left-hand side */}} {{ $border_years := slice (printf "%d" $current_year) "2019" "2009" "1999" "1989" }} {{ range $venue := sort $.Site.Data.venues "slug" "asc" }} {{ if (and $venue.is_toplevel $venue.is_acl) }} {{ $venue_page := $.Site.GetPage (printf "/venues/%s" $venue.slug) }} {{ range $all_years }} {{ $year := string . }} {{ $event := printf "%s-%s" $venue.slug $year }} {{/* this is the actual default case */}} {{ end }} {{ end }} {{ end }} {{/* SIGs */}}
Venue {{ $current_year }} – 2020 2019 – 2010 2009 – 2000 1999 – 1990 1989 and older
{{ $venue.acronym }} {{- with index $.Site.Data.events $event -}} {{- with index $.Site.Data.events $event "volumes" -}} {{ slicestr $year 2 4 }} {{- end -}} {{- end -}}
SIGs {{ $sig_pages := (where $.Site.RegularPages "Section" "sigs").ByParam "short_acronym" }} {{ $len := len $sig_pages }} {{ range $index, $page := $sig_pages}} {{ $page.Params.short_acronym }}{{ if ne (add $index 1) $len }} | {{ end }} {{ end }}
Non-ACL Events
{{/* NON-ACL EVENTS */}} {{/* Hardcoded range of years because the table layout depends on it */}} {{/* Adjust this range at the beginning of each year */}} {{ $all_years := seq $current_year -1 1986 | append (slice 1984 1982 1980 1978 1975 1973 1969 1967 1965) }} {{/* Years that should have a border on their left-hand side */}} {{ $border_years := slice (printf "%d" $current_year) "2019" "2009" "1999" "1989" }} {{ range $venue := sort $.Site.Data.venues "slug" "asc" }} {{ if (and $venue.is_toplevel (not $venue.is_acl)) }} {{ $venue_page := $.Site.GetPage (printf "/venues/%s" $venue.slug) }} {{ range $all_years }} {{ $year := string . }} {{ $event := printf "%s-%s" $venue.slug $year }} {{ end }} {{ end }} {{ end }}
Venue {{ $current_year }} – 2020 2019 – 2010 2009 – 2000 1999 – 1990 1989 and older
{{ $venue.acronym }} {{- with index $.Site.Data.events $event -}} {{- with index $.Site.Data.events $event "volumes" -}} {{ slicestr $year 2 4 }} {{- end -}} {{- end -}}
{{ end }}