0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-22 06:48:11 +00:00

Adjust paths to relative on relocated images.

This commit is contained in:
David Bolack
2025-12-29 12:18:18 -06:00
parent ab19097521
commit 8fc4c946d7
5 changed files with 15 additions and 15 deletions

View File

@@ -36,7 +36,7 @@ After clicking the "Print" item in the navbar a new page will open and a print d
If you want to save ink or have a monochrome printer, add the **PRINT → {{fas,fa-tint}} Ink Friendly** snippet to your brew!
}}
![homebrew mug](https://i.imgur.com/hMna6G0.png) {position:absolute,bottom:20px,left:130px,width:220px}
![homebrew mug](/assets/hMna6G0.png) {position:absolute,bottom:20px,left:130px,width:220px}
{{artist,bottom:160px,left:100px
##### Homebrew Mug
@@ -162,7 +162,7 @@ Images must be hosted online somewhere, like [Imgur](https://www.imgur.com). You
Using *Curly Injection* you can assign an id, classes, or inline CSS properties to the Markdown image syntax.
![alt-text](https://s-media-cache-ak0.pinimg.com/736x/4a/81/79/4a8179462cfdf39054a418efd4cb743e.jpg) {width:100px,border:"2px solid",border-radius:10px}
![alt-text](/assets/4a8179462cfdf39054a418efd4cb743e.jpg) {width:100px,border:"2px solid",border-radius:10px}
\* *When using Imgur-hosted images, use the "direct link", which can be found when you click into your image in the Imgur interface.*

View File

@@ -40,7 +40,7 @@ module.exports = [
icon : 'fas fa-image',
gen : [
'<img ',
' src=\'https://homebrewery.naturalcrit.com/assets/4a8179462cfdf39054a418efd4cb743e.jpg\' ',
' src=\'/assets/4a8179462cfdf39054a418efd4cb743e.jpg\' ',
' style=\'width:325px\' />',
'Credit: Kyounghwan Kim'
].join('\n')
@@ -50,7 +50,7 @@ module.exports = [
icon : 'fas fa-tree',
gen : [
'<img ',
' src=\'https://homebrewery.naturalcrit.com/assets/hMna6G0.png\' ',
' src=\'/assets/hMna6G0.png\' ',
' style=\'position:absolute; top:50px; right:30px; width:280px\' />'
].join('\n')
},

View File

@@ -96,7 +96,7 @@ module.exports = {
${_.sample(footnote)}
}}
![background image](https://homebrewery.naturalcrit.com/assets/IwHRrbF.jpg){position:absolute,bottom:0,left:0,height:100%}
![background image](/assets/IwHRrbF.jpg){position:absolute,bottom:0,left:0,height:100%}
\page`;
},
@@ -110,7 +110,7 @@ module.exports = {
___
{{imageMaskCenter${_.random(1, 16)},--offsetX:0%,--offsetY:0%,--rotation:0
![background image](https://homebrewery.naturalcrit.com/assets/IsfUnFR.jpg){position:absolute,bottom:0,left:0,height:100%}
![background image](/assets/IsfUnFR.jpg){position:absolute,bottom:0,left:0,height:100%}
}}
{{logo ![](/assets/naturalCritLogoRed.svg)}}
@@ -126,7 +126,7 @@ module.exports = {
## ${_.sample(subtitles)}
{{imageMaskEdge${_.random(1, 8)},--offset:10cm,--rotation:180
![Background image](https://homebrewery.naturalcrit.com/assets/9TU96xY.jpg){position:absolute,bottom:0,left:0,height:100%}
![Background image](/assets/9TU96xY.jpg){position:absolute,bottom:0,left:0,height:100%}
}}
\page`;
@@ -143,7 +143,7 @@ module.exports = {
For use with any fantasy roleplaying ruleset. Play the best game of your life!
![background image](https://homebrewery.naturalcrit.com/assets/MJ4YHu7.jpg){position:absolute,bottom:0,left:0,height:100%}
![background image](/assets/MJ4YHu7.jpg){position:absolute,bottom:0,left:0,height:100%}
{{logo
![](/assets/naturalCritLogoWhite.svg)

View File

@@ -631,25 +631,25 @@ module.exports = [
name : 'Image',
icon : 'fas fa-image',
gen : dedent`
![cat warrior](https://homebrewery.naturalcrit.com/assets/4a8179462cfdf39054a418efd4cb743e.jpg) {width:325px,mix-blend-mode:multiply}`
![cat warrior](/assets/4a8179462cfdf39054a418efd4cb743e.jpg) {width:325px,mix-blend-mode:multiply}`
},
{
name : 'Image Wrap Left',
icon : 'fac image-wrap-left',
gen : dedent`
![homebrewery_mug](https://homebrewery.naturalcrit.com/assets/hMna6G0.png) {width:280px,margin-right:-3cm,wrapLeft}`
![homebrewery_mug](/assets/hMna6G0.png) {width:280px,margin-right:-3cm,wrapLeft}`
},
{
name : 'Image Wrap Right',
icon : 'fac image-wrap-right',
gen : dedent`
![homebrewery_mug](https://homebrewery.naturalcrit.com/assets/hMna6G0.png) {width:280px,margin-left:-3cm,wrapRight}`
![homebrewery_mug](/assets/hMna6G0.png) {width:280px,margin-left:-3cm,wrapRight}`
},
{
name : 'Background Image',
icon : 'fas fa-tree',
gen : dedent`
![homebrew mug](https://homebrewery.naturalcrit.com/assets/hMna6G0.png) {position:absolute,top:50px,right:30px,width:280px}`
![homebrew mug](/assets/hMna6G0.png) {position:absolute,top:50px,right:30px,width:280px}`
},
{
name : 'Watercolor Splatter',

View File

@@ -5,7 +5,7 @@ module.exports = {
center : ()=>{
return dedent`
{{imageMaskCenter${_.random(1, 16)},--offsetX:0%,--offsetY:0%,--rotation:0
![](https://homebrewery.naturalcrit.com/assets/GZfjDWV.png){height:100%}
![](/assets/GZfjDWV.png){height:100%}
}}
<!-- Use --offsetX to shift the mask left or right (can use cm instead of %)
Use --offsetY to shift the mask up or down
@@ -21,7 +21,7 @@ module.exports = {
}[side];
return dedent`
{{imageMaskEdge${_.random(1, 8)},--offset:0%,--rotation:${rotation}
![](https://homebrewery.naturalcrit.com/assets/GZfjDWV.png){height:100%}
![](/assets/GZfjDWV.png){height:100%}
}}
<!-- Use --offset to shift the mask away from page center (can use cm instead of %)
Use --rotation to set rotation angle in degrees. -->\n\n`;
@@ -32,7 +32,7 @@ module.exports = {
const offsetY = (y == 'top' ? '50%' : '-50%');
return dedent`
{{imageMaskCorner${_.random(1, 37)},--offsetX:${offsetX},--offsetY:${offsetY},--rotation:0
![](https://homebrewery.naturalcrit.com/assets/GZfjDWV.png){height:100%}
![](/assets/GZfjDWV.png){height:100%}
}}
<!-- Use --offsetX to shift the mask left or right (can use cm instead of %)
Use --offsetY to shift the mask up or down