Add /admin to file if in production (#4826)

* add /admin if in production

* Use /admin regardless of env

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
This commit is contained in:
Nitwel
2021-04-07 18:22:24 +02:00
committed by GitHub
parent 632895eb68
commit 11e191f426

View File

@@ -85,7 +85,7 @@ export default defineComponent({
filenameParts.shift();
}
const newFilename = `${rootPath}img/docs/${filenameParts.join('/')}`;
const newFilename = `/admin${rootPath}img/docs/${filenameParts.join('/')}`;
const newImage = rawImage[0].replace(rawImage.groups!.filename, newFilename);
markdown = markdown.replace(rawImage[0], newImage);
}
@@ -168,7 +168,6 @@ export default defineComponent({
h4,
h5,
h6 {
position: relative;
margin: 40px 0 8px;
padding: 0;
@@ -386,7 +385,7 @@ export default defineComponent({
blockquote {
margin-bottom: 4rem;
padding: .25rem 0 .25rem 1rem;
padding: 0.25rem 0 0.25rem 1rem;
color: var(--foreground-subdued);
font-size: 18px;
border-left: 2px solid var(--background-normal);