Changed code indentation
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import Link from "next/link"
|
import Link from "next/link"
|
||||||
import ReactMarkdown from "react-markdown"
|
import ReactMarkdown from "react-markdown"
|
||||||
import styles from "../styles/BlogList.module.css"
|
import styles from "../styles/BlogList.module.css"
|
||||||
import Image from "next/image";
|
import Image from "next/image"
|
||||||
|
|
||||||
function truncateSummary(content) {
|
function truncateSummary(content) {
|
||||||
return content.slice(0, 200).trimEnd()
|
return content.slice(0, 200).trimEnd()
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import Link from "next/link";
|
import Link from "next/link"
|
||||||
import styles from "../styles/Header.module.css"
|
import styles from "../styles/Header.module.css"
|
||||||
|
|
||||||
export default function Header(props) {
|
export default function Header(props) {
|
||||||
@@ -21,6 +21,6 @@ export default function Header(props) {
|
|||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
);
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import Header from "./Header";
|
import Header from "./Header"
|
||||||
import Meta from "./Meta"
|
import Meta from "./Meta"
|
||||||
import styles from "../styles/Layout.module.css"
|
import styles from "../styles/Layout.module.css"
|
||||||
|
|
||||||
@@ -18,5 +18,5 @@ export default function Layout(props) {
|
|||||||
<Header siteTitle={props.siteTitle} />
|
<Header siteTitle={props.siteTitle} />
|
||||||
<div className={styles.content}>{props.children}</div>
|
<div className={styles.content}>{props.children}</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
)
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user