The id() function returns the database ID of the current page. This code:
will return a number, e.g. “1” for the root page (“Home page”) created at install time.
Note that for Archive pages, (e.g., the %B %Y archive monthly archive page created during installation), the id() result will be the same no matter which month (in this example) is being displayed, since each one is the same “page”.