-
+
+ {{ range .Pages.ByDate.Reverse }}
+
-
+ {{.Date.Format "2006-01-02"}} | {{.Title}}
+
+ {{- if .Description -}} + {{ .Description }} + {{- else -}} + {{ .Summary }}... + {{- end -}} +
+
+ {{ end }}
+
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6f9e615bfd..8e618bed01 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,11 @@ repos: - id: check-ast - id: check-merge-conflict - id: check-xml - exclude: ^hugo/layouts/sitemap.xml$ + exclude: | + (?x)^( + hugo/layouts/sitemap.xml| + hugo/layouts/_default/rss.xml + )$ - id: check-yaml exclude: ^python/mkdocs.yml$ - id: end-of-file-fixer diff --git a/bin/create_hugo_pages.py b/bin/create_hugo_pages.py index 5242f82d03..96bcdbd7d7 100755 --- a/bin/create_hugo_pages.py +++ b/bin/create_hugo_pages.py @@ -84,9 +84,14 @@ def create_papers(srcdir, clean=False): if not os.path.exists(paper_dir): os.makedirs(paper_dir) with open("{}/{}.md".format(paper_dir, anthology_id), "w") as f: + date = entry["ingest_date"] print("---", file=f) yaml.dump( - {"anthology_id": anthology_id, "title": entry["title"]}, + { + "anthology_id": anthology_id, + "title": entry["title"], + "date": date, + }, default_flow_style=False, stream=f, ) diff --git a/bin/create_hugo_yaml.py b/bin/create_hugo_yaml.py index 0302d99759..dee4b84f9e 100755 --- a/bin/create_hugo_yaml.py +++ b/bin/create_hugo_yaml.py @@ -64,6 +64,8 @@ def export_anthology(anthology, outdir, clean=False, dryrun=False): for id_, paper in anthology.papers.items(): log.debug("export_anthology: processing paper '{}'".format(id_)) data = paper.as_dict() + if paper.parent_volume.ingest_date: + data["ingest_date"] = paper.parent_volume.ingest_date data["title_html"] = paper.get_title("html") if "xml_title" in data: del data["xml_title"] diff --git a/hugo/config.toml b/hugo/config.toml index 866442b05f..689d0b9536 100644 --- a/hugo/config.toml +++ b/hugo/config.toml @@ -2,6 +2,7 @@ languageCode = "en-us" title = "ACL Anthology" disablePathToLower = true staticDir = ["static", "data-export"] +rssLimit = 1000 [permalinks] papers = "/:filename/" diff --git a/hugo/content/posts/_index.md b/hugo/content/posts/_index.md index dc8a4c7d52..75699a3ab0 100644 --- a/hugo/content/posts/_index.md +++ b/hugo/content/posts/_index.md @@ -1,4 +1,4 @@ --- -Title: List of all posts +Title: List of all news pages render_pagelist: true --- diff --git a/hugo/content/posts/announce_news.md b/hugo/content/posts/announce_news.md new file mode 100644 index 0000000000..a75897210c --- /dev/null +++ b/hugo/content/posts/announce_news.md @@ -0,0 +1,18 @@ +--- +Title: New page for announcements and blog posts +date: "2024-05-06" +Description: > + The ACL Anthology website now has a dedicated section for blog posts and announcements as well as an RSS feed for papers. 🎉 +--- + +The ACL Anthology website now has a dedicated section for blog posts and announcements. +If you want to stay up to date on the most important changes to the Anthology, you can subscribe to the [RSS feed for this section](/posts/index.xml). + +We will keep the [existing mailing list](http://groups.google.com/group/acl-anthology?hl=en), so you will still get your updates if you are already subscribed. +This new section mainly makes our updates available to more apps and devices via RSS, and it gives them a more appealing look. ✨ + +There is one more thing that we want to announce with this post: We now also have an [RSS feed for papers](/papers/index.xml). +By subscribing to this, you get to see the individual papers added to the Anthology and never miss any of the latest developments in NLP and computational linguistics ever again! 🎉 +The feed is limited to the latest 1000 papers, as the full file would be over 40 MB in size, otherwise. 🤯 + +We hope that you will enjoy these new features as much as we do, and we'll see you here for the next update! diff --git a/hugo/layouts/_default/index_flex.html b/hugo/layouts/_default/index_flex.html index 88ec0514ba..1df92de556 100644 --- a/hugo/layouts/_default/index_flex.html +++ b/hugo/layouts/_default/index_flex.html @@ -13,7 +13,7 @@