Add hugo.IsMultiHost

This commit is contained in:
razonyang 2024-02-29 23:58:57 +08:00 committed by Bjørn Erik Pedersen
parent ada3fceea8
commit 1f48b717c7
4 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,13 @@
hugo
stdout 'IsMultiHost: true'
-- hugo.toml --
title = "Hugo IsMultiHost Test"
[languages.en]
baseURL = "https://example.org"
[languages.zh]
baseURL = "https://zh.example.org"
-- layouts/index.html --
{{ warnf "IsMultiHost: %v" hugo.IsMultiHost }}