mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-04-28 09:46:52 +02:00
Organize code
This commit is contained in:
parent
186089db83
commit
2b5ce06ca0
7 changed files with 8 additions and 8 deletions
|
@ -78,9 +78,9 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
|
|||
activity.setStatus("Generating blog pages...");
|
||||
|
||||
const blogListingTemplate = path.resolve(
|
||||
`src/templates/blogListing.tsx`
|
||||
`src/templates/blog/listing.tsx`
|
||||
);
|
||||
const blogTemplate = path.resolve(`src/templates/blogPost.tsx`);
|
||||
const blogTemplate = path.resolve(`src/templates/blog/post.tsx`);
|
||||
|
||||
reporter.info("Creating blog listings...");
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@import "../globals";
|
||||
@import "../../globals";
|
||||
|
||||
.sectionBacklink {
|
||||
display: block;
|
|
@ -5,9 +5,9 @@ import { Link } from "gatsby-plugin-react-i18next";
|
|||
import React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
import Layout from "../layouts/default";
|
||||
import Layout from "../../layouts/default";
|
||||
|
||||
import * as styles from "./blogListing.module.scss";
|
||||
import * as styles from "./listing.module.scss";
|
||||
|
||||
const BlogListing = ({ data, pageContext }) => {
|
||||
const { t } = useTranslation();
|
|
@ -1,4 +1,4 @@
|
|||
@import "../globals";
|
||||
@import "../../globals";
|
||||
|
||||
.postSection {
|
||||
flex-grow: 1;
|
|
@ -6,9 +6,9 @@ import React from "react";
|
|||
import { useTranslation } from "react-i18next";
|
||||
import Utterances from "utterances-react";
|
||||
|
||||
import Layout from "../layouts/default";
|
||||
import Layout from "../../layouts/default";
|
||||
|
||||
import * as styles from "./blogPost.module.scss";
|
||||
import * as styles from "./post.module.scss";
|
||||
import { Link } from "gatsby-plugin-react-i18next";
|
||||
|
||||
const BlogPost = ({ data }) => {
|
Loading…
Add table
Reference in a new issue