Skip to content

Commit

Permalink
added the backend to github
Browse files Browse the repository at this point in the history
  • Loading branch information
kKaskak committed Oct 31, 2023
1 parent 5c4640e commit b5cf124
Show file tree
Hide file tree
Showing 19 changed files with 20,611 additions and 38 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
/node_modules
/.pnp
.pnp.js
/timothy-blog
/.env

# testing
Expand Down
10 changes: 10 additions & 0 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,16 @@
<lastmod>2023-07-01T18:52:01+00:00</lastmod>
<priority>0.51</priority>
</url>
<url>
<loc>https://www.curiositytakeover.com/blog/are-elephants-friendly</loc>
<lastmod>2023-07-01T18:52:01+00:00</lastmod>
<priority>0.51</priority>
</url>
<url>
<loc>https://www.curiositytakeover.com/blog/is-turkey-sausage-healthy</loc>
<lastmod>2023-07-01T18:52:01+00:00</lastmod>
<priority>0.51</priority>
</url>


</urlset>
37 changes: 2 additions & 35 deletions src/containers/Blog/Blog.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { useState, useEffect } from "react";
import { client } from "../../client";
import { Helmet } from "react-helmet";
import BlogPost from "./BlogPost";
import { Loading, PageLayout } from "../../components";
import "./Blog.css";
import BlogHelmet from './BlogHelmet';

const Blog = () => {
const [isLoading, setIsLoading] = useState(true);
Expand All @@ -20,40 +20,7 @@ const Blog = () => {
return (
<>
<PageLayout>
<Helmet>
<title>Curiosity Blog Page</title>
<meta
name="description"
content="Explore a diverse range of articles on Fashion, Tech, Animals, Culture, Space, Earth, Health, Lifestyle, and Fitness. Discover valuable insights, latest trends, and expert perspectives in one convenient blog."
/>
<meta
name="keywords"
content="Fashion, Tech, Animals, Culture, Space, Earth, Health, Lifestyle, Fitness, Article, Blog, Animals"
/>
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="blog" />
<meta property="og:title" content="Curiosity Blog Page" />
<meta
property="og:description"
content="Curosity blog page. Discover a captivating blend of Fashion, Tech, Animals, Culture, Space, Earth, Health, Lifestyle, and Fitness."
/>
<meta property="og:url" content="https://curiositytakeover.com/blog" />
<meta property="og:site_name" content="Curiosity Takeover Blog page" />
<meta
property="og:image"
content="https://cdn.sanity.io/images/zeqqep1d/production/8fd4f7bbe00d780519edb6e20498da223fdb47da-2250x1272.png"
/>
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="800" />
<meta property="og:image:type" content="image/png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content="@curiosity__blog" />
<meta name="twitter:site" content="@curiosity__blog" />
<meta
name="twitter:image"
content="https://cdn.sanity.io/images/zeqqep1d/production/8fd4f7bbe00d780519edb6e20498da223fdb47da-2250x1272.png"
/>
</Helmet>
<BlogHelmet />
{isLoading ? (
<Loading />
) : (
Expand Down
43 changes: 43 additions & 0 deletions src/containers/Blog/BlogHelmet.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import React from 'react'
import { Helmet } from 'react-helmet'

const BlogHelmet = () => {
return (
<Helmet>
<title>Curiosity Blog Page</title>
<meta
name="description"
content="Explore a diverse range of articles on Fashion, Tech, Animals, Culture, Space, Earth, Health, Lifestyle, and Fitness. Discover valuable insights, latest trends, and expert perspectives in one convenient blog."
/>
<meta
name="keywords"
content="Fashion, Tech, Animals, Culture, Space, Earth, Health, Lifestyle, Fitness, Article, Blog, Animals"
/>
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="blog" />
<meta property="og:title" content="Curiosity Blog Page" />
<meta
property="og:description"
content="Curosity blog page. Discover a captivating blend of Fashion, Tech, Animals, Culture, Space, Earth, Health, Lifestyle, and Fitness."
/>
<meta property="og:url" content="https://curiositytakeover.com/blog" />
<meta property="og:site_name" content="Curiosity Takeover Blog page" />
<meta
property="og:image"
content="https://cdn.sanity.io/images/zeqqep1d/production/8fd4f7bbe00d780519edb6e20498da223fdb47da-2250x1272.png"
/>
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="800" />
<meta property="og:image:type" content="image/png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content="@curiosity__blog" />
<meta name="twitter:site" content="@curiosity__blog" />
<meta
name="twitter:image"
content="https://cdn.sanity.io/images/zeqqep1d/production/8fd4f7bbe00d780519edb6e20498da223fdb47da-2250x1272.png"
/>
</Helmet>
)
}

export default BlogHelmet
4 changes: 2 additions & 2 deletions src/containers/Blog/Post.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const Post = ({ post }) => {
<Link style={{ textDecoration: "none" }} to={`/blog/${post.slug.current}`}>
<img src={urlFor(post.previewImage)} alt={post.title} />
<div className="ct__blog-article-component-date">
<p>{post.categories.map((category) => category.title).join(", ")}</p>
<p>{post.publishedAt}</p>
<p style={{ color: post.categoriesPreviewColor }}>{post.categories.map((category) => category.title).join(", ")}</p>
<p style={{ color: post.publishedAtPreviewColor }}>{post.publishedAt}</p>
</div>
<div className="ct__blog-article-component-title">
<h3
Expand Down
3 changes: 3 additions & 0 deletions timothy-blog/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@sanity/eslint-config-studio"
}
29 changes: 29 additions & 0 deletions timothy-blog/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# Dependencies
/node_modules
/.pnp
.pnp.js

# Compiled Sanity Studio
/dist

# Temporary Sanity runtime, generated by the CLI on every dev server start
/.sanity

# Logs
/logs
*.log

# Coverage directory used by testing tools
/coverage

# Misc
.DS_Store
*.pem

# Typescript
*.tsbuildinfo

# Dotenv and similar local-only files
*.local
11 changes: 11 additions & 0 deletions timothy-blog/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Sanity Blogging Content Studio

Congratulations, you have now installed the Sanity Content Studio, an open source real-time content editing environment connected to the Sanity backend.

Now you can do the following things:

- [Read “getting started” in the docs](https://www.sanity.io/docs/introduction/getting-started?utm_source=readme)
- Check out the example frontend: [React/Next.js](https://github.com/sanity-io/tutorial-sanity-blog-react-next)
- [Read the blog post about this template](https://www.sanity.io/blog/build-your-own-blog-with-sanity-and-next-js?utm_source=readme)
- [Join the community Slack](https://slack.sanity.io/?utm_source=readme)
- [Extend and build plugins](https://www.sanity.io/docs/content-studio/extending?utm_source=readme)
Loading

0 comments on commit b5cf124

Please sign in to comment.