-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
src/ | ||
examples/ | ||
docs/ | ||
.gitignore | ||
.prettierignore | ||
.prettierrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# vite-plugin-multip docs | ||
Documentation of the plugin (web version in arrtive) vite-plugin-multip | ||
|
||
- [custom html](https://github.com/vclemenzi/vite-plugin-multip/blob/main/docs/custom-html.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# HTML Customization with vite-plugin-multip | ||
|
||
With the `vite-plugin-multip` plugin, you have the ability to fully customize the HTML structure using a custom HTML template. | ||
|
||
Configuration: | ||
```ts | ||
multipage({ customHtml: "path/to/your/template.html" }) | ||
``` | ||
|
||
Example of the custom HTML template: | ||
```html | ||
<!DOCTYPE HTML> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>My Custom HTML</title> | ||
</head> | ||
<body> | ||
{% body %} | ||
</body> | ||
</html> | ||
``` | ||
|
||
`{% body %}` will be replaced with the content of the specific page's body. This feature allows you to completely tailor the appearance and structure of your multipage setup, offering greater flexibility in design. | ||
|
||
*You can find an example [here](https://github.com/vclemenzi/vite-plugin-multip/tree/main/examples/custom-html)* |