Skip to content

Commit a623a79

Browse files
fix: update tina to save image in public/assets directory
1 parent f9388d6 commit a623a79

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

content/posts/hello-world.md

+12-11
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ External Link: [google](https://google.com)
1212

1313
Internal Link: [Blog Posts](/posts)
1414

15-
1615
External Image: ![](https://octodex.github.com/images/minion.png)
1716

18-
Internal Image: ![](/image.png)
17+
Internal Image:
18+
19+
![](/assets/image.png)
1920

2021
> blockqoute
2122
@@ -39,16 +40,16 @@ function sum(a, b) {
3940

4041
## Tables
4142

42-
| Option | Description |
43-
| ------ | ----------- |
43+
| Option | Description |
44+
| ------ | ------------------------------------------------------------------------- |
4445
| data | path to data files to supply the data that will be passed into templates. |
45-
| engine | engine to be used for processing templates. Handlebars is the default. |
46-
| ext | extension to be used for dest files. |
46+
| engine | engine to be used for processing templates. Handlebars is the default. |
47+
| ext | extension to be used for dest files. |
4748

4849
Right aligned columns
4950

50-
| Option | Description |
51-
| ------:| -----------:|
52-
| data | path to data files to supply the data that will be passed into templates. |
53-
| engine | engine to be used for processing templates. Handlebars is the default. |
54-
| ext | extension to be used for dest files. |
51+
| Option | Description |
52+
| -----: | ------------------------------------------------------------------------: |
53+
| data | path to data files to supply the data that will be passed into templates. |
54+
| engine | engine to be used for processing templates. Handlebars is the default. |
55+
| ext | extension to be used for dest files. |
File renamed without changes.

tina/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default defineConfig({
2121
},
2222
media: {
2323
tina: {
24-
mediaRoot: "",
24+
mediaRoot: "assets",
2525
publicFolder: "public",
2626
},
2727
},

0 commit comments

Comments
 (0)