Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
santhalakshminarayana committed Apr 13, 2024
1 parent 0271f45 commit 1c5b06e
Show file tree
Hide file tree
Showing 11 changed files with 80 additions and 97 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Build and Deploy
on:
on:
push:
branches:
- master
Expand All @@ -25,7 +25,7 @@ jobs:
- run: npm run build
- run: npm run export
env:
CI: true
CI: true
- run: touch out/.nojekyll

- name: Deploy
Expand All @@ -34,4 +34,4 @@ jobs:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: out # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch
CLEAN: true # Automatically remove deleted files from the deploy branch
14 changes: 4 additions & 10 deletions components/Footer.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import { Component } from "react";

import {
SiGithub,
SiLinkedin,
SiMedium,
SiKaggle,
SiQuora,
} from "react-icons/si";
import { SiGithub, SiLinkedin, SiMedium, SiKaggle } from "react-icons/si";

const c1 = "#071013",
c2 = "#fffecb",
Expand Down Expand Up @@ -150,7 +144,7 @@ export default function Footer(props) {
</div>
) : null}

{props.medium == false ? (
{props.medium == true ? (
<div className="link-item">
<a
href="https://medium.com/@santhalakshminarayana/"
Expand All @@ -167,7 +161,7 @@ export default function Footer(props) {
</div>
) : null}

{props.kaggle == false ? (
{props.kaggle == true ? (
<div className="link-item">
<a
href="https://www.kaggle.com/santhalnr/"
Expand All @@ -188,7 +182,7 @@ export default function Footer(props) {

{props.need_copy_right == true ? (
<div className="copy-right-container">
<p className="copy-right-text">Santha Lakshmi Narayana &#169; 2023</p>
<p className="copy-right-text">Santha Lakshmi Narayana &#169; 2024</p>
</div>
) : null}

Expand Down
14 changes: 0 additions & 14 deletions image_convert.py

This file was deleted.

6 changes: 3 additions & 3 deletions next-sitemap.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
siteUrl: 'https://santhalakshminarayana.github.io',
exclude: ['/tags/*'],
siteUrl: "https://santhalakshminarayana.github.io",
exclude: ["/tags/*"],
generateRobotsTxt: true,
}
};
67 changes: 36 additions & 31 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,44 @@
const path = require("path");
const ghPages = process.env.DEPLOY_TARGET === 'gh-pages';
const ghPages = process.env.DEPLOY_TARGET === "gh-pages";

const withPlugins = require('next-compose-plugins');
const MDX = require('@next/mdx');
const withPlugins = require("next-compose-plugins");
const MDX = require("@next/mdx");

// next.js configuration
const nextConfig = {
webpack5: false,
webpack: (config, { isServer }) => {
if (!isServer) {
config.node = {
fs: 'empty'
}
}
config.resolve.alias.images = path.join(__dirname, "images");
return config
},
pageExtensions: ['js', 'jsx', 'md', 'mdx'],
target: 'serverless',
exportPathMap: function () {
return {
'/': { page: '/' },
'/about': { page: '/about' },
}
},
basePath: ghPages? '/santhalakshminarayana.github.io/' : '',
assetPrefix: ghPages ? '/santhalakshminarayana.github.io/' : '',
}

module.exports = withPlugins([
[MDX, {
extension: /\.mdx?$/,
}]
], nextConfig)
webpack5: false,
webpack: (config, { isServer }) => {
if (!isServer) {
config.node = {
fs: "empty",
};
}
config.resolve.alias.images = path.join(__dirname, "images");
return config;
},
pageExtensions: ["js", "jsx", "md", "mdx"],
target: "serverless",
exportPathMap: function () {
return {
"/": { page: "/" },
"/about": { page: "/about" },
};
},
basePath: ghPages ? "/santhalakshminarayana.github.io/" : "",
assetPrefix: ghPages ? "/santhalakshminarayana.github.io/" : "",
};

module.exports = withPlugins(
[
[
MDX,
{
extension: /\.mdx?$/,
},
],
],
nextConfig
);

/* Next Optimized Images configuration
Expand Down Expand Up @@ -76,4 +81,4 @@ module.exports = withPlugins([
}]
], nextConfig)
*/
*/
14 changes: 7 additions & 7 deletions pages/404.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { useEffect } from "react"
import { useRouter } from "next/router"
import { useEffect } from "react";
import { useRouter } from "next/router";

export default function Custom404() {
const router = useRouter()
const router = useRouter();

useEffect(() => {
router.replace("/")
})
router.replace("/");
});

return null
}
return null;
}
12 changes: 6 additions & 6 deletions pages/_document.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import Document, { Html, Head, Main, NextScript } from 'next/document'
import Document, { Html, Head, Main, NextScript } from "next/document";

class MyDocument extends Document {
static async getInitialProps(ctx) {
const initialProps = await Document.getInitialProps(ctx)
return { ...initialProps }
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}

render() {
return (
<Html lang='en'>
<Html lang="en">
<Head />
<body>
<Main />
<NextScript />
</body>
</Html>
)
);
}
}

export default MyDocument
export default MyDocument;
2 changes: 1 addition & 1 deletion pages/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ export default function About_Page(props) {
vertical_padding={"5px"}
github={true}
linkedin={true}
medium={false}
medium={true}
kaggle={false}
need_copy_right={false}
/>
Expand Down
3 changes: 1 addition & 2 deletions pages/blog/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,7 @@ export default function Blog({ postMetadata, postContent }) {
github={true}
linkedin={true}
medium={true}
kaggle={true}
quora={true}
kaggle={false}
need_copy_right={true}
/>

Expand Down
3 changes: 1 addition & 2 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ export default function Home({ postsMetaData }) {
github={true}
linkedin={true}
medium={true}
kaggle={true}
quora={true}
kaggle={false}
need_copy_right={true}
/>
</div>
Expand Down
36 changes: 18 additions & 18 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url><loc>https://santhalakshminarayana.github.io</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-12T19:18:09.628Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/about</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-12T19:18:09.628Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/advanced-golang-memory-model-concurrency</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-12T19:18:09.628Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/build-blog-with-nextjs-mdx-and-deploy-to-github-pages</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-12T19:18:09.628Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/chromatic-adaptation</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-12T19:18:09.628Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/color-science</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-12T19:18:09.628Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/color-theory</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-12T19:18:09.628Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/concurrency-patterns-python</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-12T19:18:09.628Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/create-a-notes-app-with-flutter</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-12T19:18:09.628Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/go-gotchas-and-good-practices</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-12T19:18:09.628Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/retinex-image-enhancement</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-12T19:18:09.628Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/retinex-theory-of-color-vision</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-12T19:18:09.628Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/super-fast-python-cython</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-12T19:18:09.628Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/super-fast-python-good-practices</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-12T19:18:09.628Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/super-fast-python-multi-processing</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-12T19:18:09.628Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/super-fast-python-numba</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-12T19:18:09.628Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/super-fast-python-why-python-slow</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-12T19:18:09.628Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/whiteboard-image-enhancement-opencv-python</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-12T19:18:09.628Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-13T07:27:17.819Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/about</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-13T07:27:17.819Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/advanced-golang-memory-model-concurrency</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-13T07:27:17.819Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/build-blog-with-nextjs-mdx-and-deploy-to-github-pages</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-13T07:27:17.819Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/chromatic-adaptation</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-13T07:27:17.819Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/color-science</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-13T07:27:17.819Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/color-theory</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-13T07:27:17.819Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/concurrency-patterns-python</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-13T07:27:17.819Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/create-a-notes-app-with-flutter</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-13T07:27:17.819Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/go-gotchas-and-good-practices</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-13T07:27:17.819Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/retinex-image-enhancement</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-13T07:27:17.819Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/retinex-theory-of-color-vision</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-13T07:27:17.819Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/super-fast-python-cython</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-13T07:27:17.819Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/super-fast-python-good-practices</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-13T07:27:17.819Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/super-fast-python-multi-processing</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-13T07:27:17.819Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/super-fast-python-numba</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-13T07:27:17.819Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/super-fast-python-why-python-slow</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-13T07:27:17.819Z</lastmod></url>
<url><loc>https://santhalakshminarayana.github.io/blog/whiteboard-image-enhancement-opencv-python</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2024-04-13T07:27:17.819Z</lastmod></url>
</urlset>

0 comments on commit 1c5b06e

Please sign in to comment.