diff --git a/docs/_blog/index.html b/docs/_blog/index.html
index b1ad4787b41b..055b069b303d 100644
--- a/docs/_blog/index.html
+++ b/docs/_blog/index.html
@@ -6,7 +6,7 @@
{{ page.title }}
- {% for post in site.posts %}
+ {% for post in site.subpages %}
-
{{ post.title }}
diff --git a/docs/_docs/usage/dottydoc.md b/docs/_docs/usage/dottydoc.md
index 28c29606a301..f7010a0ab3b8 100644
--- a/docs/_docs/usage/dottydoc.md
+++ b/docs/_docs/usage/dottydoc.md
@@ -107,7 +107,7 @@ An example of this would be:
To be rendered as templates, each blog post should have front-matter and a
`layout` declaration.
-The posts are also available in the variable `site.posts` throughout the site.
+The posts are also available in the variable `site.subpages` throughout the site.
The fields of these objects are the same as in
`[BlogPost](dotty.tools.dottydoc.staticsite.BlogPost)`.
diff --git a/docs/_layouts/index.html b/docs/_layouts/index.html
index 29d875645428..72e3bb609d56 100644
--- a/docs/_layouts/index.html
+++ b/docs/_layouts/index.html
@@ -7,9 +7,9 @@ {{ page.title }}
Table of Contents
- {% for child in site.posts %}
+ {% for subpage in site.subpages %}
-
- {{ child.title }}
+ {{ subpage.title }}
{% endfor %}
diff --git a/scaladoc/src/dotty/tools/scaladoc/site/LoadedTemplate.scala b/scaladoc/src/dotty/tools/scaladoc/site/LoadedTemplate.scala
index 86234812732e..659409f2ef67 100644
--- a/scaladoc/src/dotty/tools/scaladoc/site/LoadedTemplate.scala
+++ b/scaladoc/src/dotty/tools/scaladoc/site/LoadedTemplate.scala
@@ -39,7 +39,7 @@ case class LoadedTemplate(
)
def resolveToHtml(ctx: StaticSiteContext): ResolvedPage =
- val posts = children.filterNot(_.hidden).map(_.lazyTemplateProperties(ctx))
+ val subpages = children.filterNot(_.hidden).map(_.lazyTemplateProperties(ctx))
def getMap(key: String) = templateFile.settings.getOrElse(key, Map.empty).asInstanceOf[Map[String, Object]]
val sourceLinks = if !file.exists() then Nil else
@@ -50,7 +50,7 @@ case class LoadedTemplate(
ctx.sourceLinks.pathTo(actualPath, operation = "edit", optionalRevision = Some("master")).map("editSource" -> _)
val updatedSettings = templateFile.settings ++ ctx.projectWideProperties +
- ("site" -> (getMap("site") + ("posts" -> posts))) + ("urls" -> sourceLinks.toMap) +
+ ("site" -> (getMap("site") + ("subpages" -> subpages))) + ("urls" -> sourceLinks.toMap) +
("page" -> (getMap("page") + ("title" -> templateFile.title.name)))
templateFile.resolveInner(RenderingContext(updatedSettings, ctx.layouts))(using ctx)