Commit 2384c36 1 parent c25b798 commit 2384c36 Copy full SHA for 2384c36
File tree 3 files changed +22
-7
lines changed
bloggen/_components/PostLayout
3 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 12
12
}
13
13
14
14
.intro {
15
+ width : 100% ;
15
16
max-width : 720px ;
16
17
display : flex;
17
18
flex-wrap : wrap;
57
58
58
59
.content img {
59
60
display : block;
60
- width : 860px !important ;
61
+ width : 860px ;
61
62
margin : var (--ds-spacing-12 ) 0 ;
62
63
margin-left : calc ((100% - 860px ) / 2 ) !important ;
63
64
background-color : var (--ds-color-neutral-background-subtle );
64
65
}
65
66
67
+ .main > figure {
68
+ margin : auto;
69
+ width : 100% ;
70
+ }
71
+
72
+ .main > figure img {
73
+ width : 100% ;
74
+ }
75
+
66
76
.content : last-child {
67
77
margin-bottom : var (--ds-spacing-12 );
68
78
}
Original file line number Diff line number Diff line change @@ -61,13 +61,13 @@ function PostLayout({
61
61
< span > { author } </ span >
62
62
</ Paragraph >
63
63
</ div >
64
+ < Image
65
+ src = { imageSrc }
66
+ alt = { imageAlt }
67
+ caption = { imageCaption }
68
+ boxShadow = { false }
69
+ />
64
70
< MdxContent classname = { classes . content } >
65
- < Image
66
- src = { imageSrc }
67
- alt = { imageAlt }
68
- caption = { imageCaption }
69
- boxShadow = { false }
70
- />
71
71
{ content }
72
72
< div className = { classes . wantToWrite } >
73
73
< Heading level = { 3 } size = 'xs' >
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ import type { Metadata } from 'next';
9
9
import { Footer } from '../components/Footer/Footer' ;
10
10
11
11
export const metadata : Metadata = {
12
+ metadataBase : new URL (
13
+ process . env . VERCEL_GIT_COMMIT_REF !== 'main'
14
+ ? 'https://next.designsystemet.no'
15
+ : 'https://designsystemet.no' ,
16
+ ) ,
12
17
title : {
13
18
template : '%s - Designsystemet' ,
14
19
default : 'Designsystemet' ,
You can’t perform that action at this time.
0 commit comments