Releases: mochimochiki/hugo-theme-vivliocli
v0.22.0
v0.21.1
v0.21.0
v0.20.3
v0.20.2
v0.20.1
v0.20.0
Action Required for Breaking Changes
We made the following breaking changes in v0.20.0.
Allow relative links from _index.md to be written in the same way as regular pages #86
Relative links from _index.md
for section pages can now be written in the same way as regular pages. This makes creating links easier. If you have already written relative path links from _index.md
, you will need to rewrite the links to the same format as regular pages.
You can make link replacement a little easier by running a powershell script like this: However, the _index.md of the home page will also be replaced, so be careful not to change it by mistake. Also, be sure to check the link after replacement.
$scriptPath = $MyInvocation.MyCommand.Path
$scriptDir = Split-Path -Parent $scriptPath
Push-Location $scriptDir
$markdownFiles = Get-ChildItem -Filter _index.md -Recurse
foreach ($file in $markdownFiles) {
$content = Get-Content -Encoding utf8 $file.FullName
if ($content -match '\[(.*?)\]\((?!http)([^()]+)\)') {
$updatedContent = $content -creplace '\[(.*?)\]\((?!http)([^()]+)\)', '[$1](../$2)'
$updatedContent | Out-File -Encoding utf8 $file.FullName | Set-Content -Path $file.FullName -Encoding Byte
}
}
Or if you want the same behavior as before, you can configure config.toml like this:
legacy_index_link = true
Features
- Show path of source file when in server mode #87
- Allow relative links from _index.md to be written in the same way as regular pages #86
Fixes
- Broken link in render-image when image path is a URL starting with http or https #85
Full Changelog: v0.19.1...v0.20.0
v0.19.1
v0.19.0
Features
Full Changelog: v0.18.0...v0.19.0