mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 21:34:16 +08:00
docs: formatting
This commit is contained in:
parent
3aaf76a9f1
commit
4218dc3978
@ -425,15 +425,15 @@ This document shows you what's new in the latest release. For a detailed list of
|
|||||||
|
|
||||||
In this case, you must apply one of two options:
|
In this case, you must apply one of two options:
|
||||||
|
|
||||||
1. Copy the old implementation files `theme/hugo-theme-relearn/layouts/shortcode/ref.html` and `theme/hugo-theme-relearn/layouts/shortcode/relref.html` to your own projects `layouts/shortcode/ref.html` and `layouts/shortcode/relref.html` respectively. **This is not recommended** as your project will still rely on non-standard behavior afterwards.
|
1. Start up a text editor with regular expression support for search and replace. Apply the following conversions in the given order on all `*.md` files. **This is the recommended choice**.
|
||||||
|
|
||||||
2. Start up a text editor with regular expression support for search and replace. Apply the following conversions in the given order on all `*.md` files. **This is the recommended choice**.
|
| Type | Search | Replace by |
|
||||||
|
| ------------- | ---------------------------- | ---------- |
|
||||||
|
| Branch bundle | `(ref\s+"[^"]*)/_index\.md"` | `$1"` |
|
||||||
|
| Leaf bundle | `(ref\s+"[^"]*)/index\.md"` | `$1"` |
|
||||||
|
| Page | `(ref\s+"[^"]*)\.md"` | `$1"` |
|
||||||
|
|
||||||
| Type | Search | Replace by |
|
2. Copy the old implementation files `theme/hugo-theme-relearn/layouts/shortcode/ref.html` and `theme/hugo-theme-relearn/layouts/shortcode/relref.html` to your own projects `layouts/shortcode/ref.html` and `layouts/shortcode/relref.html` respectively. **This is not recommended** as your project will still rely on non-standard behavior afterwards.
|
||||||
| ------------- | ---------------------------- | ---------- |
|
|
||||||
| Branch bundle | `(ref\s+"[^"]*)/_index\.md"` | `$1"` |
|
|
||||||
| Leaf bundle | `(ref\s+"[^"]*)/index\.md"` | `$1"` |
|
|
||||||
| Page | `(ref\s+"[^"]*)\.md"` | `$1"` |
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user