Skip to content

Commit

Permalink
add public folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Its-Just-Nans committed May 31, 2024
1 parent 1c43bef commit 90ec786
Show file tree
Hide file tree
Showing 6 changed files with 308 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
`"golb".split("").reverse().join("")`

Link to the GitHub Project : [golb](https://github.com/Its-Just-Nans/golb)

## Sitemap

```sh
python -m static_sitemap https://golb.n4n5.dev/ --sitemap
```
5 changes: 5 additions & 0 deletions functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,15 @@ async function copyDir(src, dest) {
}
}

async function copyPublicFolder() {
await copyDir("./public", path.join(config.buildDir));
}

module.exports = {
makeMenu,
makeHTMLMenu,
build,
copyDataFolder,
compileCSS,
copyPublicFolder,
};
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const run = async () => {
await commands.build(completeMenu, completeMenu, { dev, files });
await commands.compileCSS();
await commands.copyDataFolder();
await commands.copyPublicFolder();
};

run();
4 changes: 4 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
User-agent: *
Allow: /

Sitemap: https://golb.n4n5.dev/sitemap.xml
290 changes: 290 additions & 0 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,290 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>
https://golb.n4n5.dev/
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/style.css
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/index
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/links
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/computer_science
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/docker
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/ffmpeg
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/git
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/make
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/mongodb
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/eco
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/electricity
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/maths
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/network
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/optical
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/others
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/quantum_mechanics
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/telecom
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/sql
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/android
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/c
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/cpp
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/go
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/html_css
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/java
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/javascript
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/jupyter-notebook
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/latex
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/php
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/python
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/rust
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/commands
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/gpg
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/ip
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/nix
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/ssh
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/useful-commands
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/utils-debug
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/utils-linux
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/js
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>
https://golb.n4n5.dev/knowledge
</loc>
<lastmod>2024-05-31T19:46:05Z</lastmod>
<changefreq>weekly</changefreq>
</url>
</urlset>
3 changes: 2 additions & 1 deletion template/head.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="utf-8" />
<meta name="description" content="Just a simple knowledge base" />
<link rel="icon" href="https://its-just-nans.github.io/favicon.ico" />
<link rel="icon" href="https://n4n5.dev/favicon.ico" />
<link rel="sitemap" type="application/xml" href="/sitemap.xml" />
<link rel="stylesheet" href="./style.css" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/katex.min.css" />
<script src="https://unpkg.com/lunr/lunr.js"></script>
Expand Down

0 comments on commit 90ec786

Please sign in to comment.