mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-02-18 17:50:06 +00:00
docs: formatting
This commit is contained in:
parent
3aaf76a9f1
commit
4218dc3978
1 changed files with 7 additions and 7 deletions
|
@ -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:
|
||||
|
||||
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 |
|
||||
| ------------- | ---------------------------- | ---------- |
|
||||
| Branch bundle | `(ref\s+"[^"]*)/_index\.md"` | `$1"` |
|
||||
| Leaf bundle | `(ref\s+"[^"]*)/index\.md"` | `$1"` |
|
||||
| Page | `(ref\s+"[^"]*)\.md"` | `$1"` |
|
||||
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.
|
||||
|
||||
---
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue