mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-04-29 10:16:53 +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...");
|
activity.setStatus("Generating blog pages...");
|
||||||
|
|
||||||
const blogListingTemplate = path.resolve(
|
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...");
|
reporter.info("Creating blog listings...");
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "../globals";
|
@import "../../globals";
|
||||||
|
|
||||||
.sectionBacklink {
|
.sectionBacklink {
|
||||||
display: block;
|
display: block;
|
|
@ -5,9 +5,9 @@ import { Link } from "gatsby-plugin-react-i18next";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
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 BlogListing = ({ data, pageContext }) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
|
@ -1,4 +1,4 @@
|
||||||
@import "../globals";
|
@import "../../globals";
|
||||||
|
|
||||||
.postSection {
|
.postSection {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
|
@ -6,9 +6,9 @@ import React from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import Utterances from "utterances-react";
|
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";
|
import { Link } from "gatsby-plugin-react-i18next";
|
||||||
|
|
||||||
const BlogPost = ({ data }) => {
|
const BlogPost = ({ data }) => {
|
Loading…
Add table
Reference in a new issue