mirror of https://github.com/halo-dev/halo
![]() #### What type of PR is this? /kind improvement /kind api-change /area core /milestone 2.5.x #### What this PR does / why we need it: Add property `halo.use-absolute-permalink`(default is `false`) to control permalink generation. Leave `halo.external-url` as `null` by default. Meanwhile, I enhanced `ExternalUrlSupplier#getURL` to get URL from not only properties but only http request. #### How to use it? ```yaml halo: use-absolute-permalink: false ``` Or: ```yaml halo: external-url: https://halo.run/ use-absolute-permalink: false ``` Or: ```yaml halo: external-url: https://halo.run/ use-absolute-permalink: true ``` #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/3762 #### Special notes for your reviewer: #### Does this PR introduce a user-facing change? ```release-note 新增是否生成相对地址的配置 ``` |
||
---|---|---|
.. | ||
src | ||
build.gradle |