Skip to content

Commit

Permalink
remove multi language
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilCad committed Apr 12, 2024
1 parent 28c589b commit 19439db
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 79 deletions.
39 changes: 17 additions & 22 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,47 +20,42 @@ disableXML = true
[permalinks]
post = "/:title/"

[languages.en]
languageName = "English"
contentDir = "content/English"
weight = 1

[languages.en.profileMode]
enabled = true
title = "Nikhil Kadiyan"
subtitle = "Welcome to my site!"
[profileMode]
enabled = true
title = "Nikhil Kadiyan"
subtitle = "Welcome to my site!"

[[languages.en.profileMode.buttons]]
name = "About"
url = "about"
[[profileMode.buttons]]
name = "About"
url = "about"

[[languages.en.profileMode.buttons]]
name = "Project"
url = "projects"
[[profileMode.buttons]]
name = "Project"
url = "projects"

[[languages.en.profileMode.buttons]]
name = "Resume"
url = "./resumeLaTeX/Nikhil_Kadiyan_Resume.pdf"
[[profileMode.buttons]]
name = "Resume"
url = "./resumeLaTeX/Nikhil_Kadiyan_Resume.pdf"

[[languages.en.menu.main]]
[[menu.main]]
identifier = "About"
name = "About"
url = "about"
weight = 1

[[languages.en.menu.main]]
[[menu.main]]
identifier = "Projects"
name = "Project"
url = "projects"
weight = 2

[[languages.en.menu.main]]
[[menu.main]]
identifier = "Resume"
name = "Resume"
url = "./resumeLaTeX/Nikhil_Kadiyan_Resume.pdf"
weight = 3

[[languages.en.menu.main]]
[[menu.main]]
identifier = "Blog"
name = "Blogs"
url = "blog"
Expand Down
2 changes: 1 addition & 1 deletion public/en/categories/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link>http://localhost:1313/en/categories/</link>
<description>Recent content in Categories on Nikhil Site</description>
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<language>en-us</language>
<atom:link href="http://localhost:1313/en/categories/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>
53 changes: 1 addition & 52 deletions public/en/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,58 +113,7 @@
</ul>
</nav>
</header>
<main class="main"><div class="profile">
<div class="profile_inner">
<h1>Nikhil Kadiyan</h1>
<span>Welcome to my site!</span><div class="social-icons" >
<a href="https://github.com/nikhilcad" target="_blank" rel="noopener noreferrer me"
title="Github">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<path
d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22">
</path>
</svg>
</a>
<a href="https://www.linkedin.com/in/nikhil-kadiyan-3a044b1a0/" target="_blank" rel="noopener noreferrer me"
title="Linkedin">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path>
<rect x="2" y="9" width="4" height="12"></rect>
<circle cx="4" cy="4" r="2"></circle>
</svg>
</a>
<a href="mailto:[email protected]" target="_blank" rel="noopener noreferrer me"
title="Email">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 21" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
<polyline points="22,6 12,13 2,6"></polyline>
</svg>
</a>
</div>

<div class="buttons">
<a class="button" href="about" rel="noopener" title="About">
<span class="button-inner">
About
</span>
</a>
<a class="button" href="projects" rel="noopener" title="Project">
<span class="button-inner">
Project
</span>
</a>
<a class="button" href="./resumeLaTeX/Nikhil_Kadiyan_Resume.pdf" rel="noopener" title="Resume">
<span class="button-inner">
Resume
</span>
</a>
</div>
</div>
</div>

<main class="main">
</main>

<footer class="footer">
Expand Down
2 changes: 1 addition & 1 deletion public/en/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link>http://localhost:1313/en/</link>
<description>Recent content on Nikhil Site</description>
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<language>en-us</language>
<atom:link href="http://localhost:1313/en/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>
10 changes: 10 additions & 0 deletions public/en/page/1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>http://localhost:1313/en/</title>
<link rel="canonical" href="http://localhost:1313/en/">
<meta name="robots" content="noindex">
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=http://localhost:1313/en/">
</head>
</html>
2 changes: 1 addition & 1 deletion public/en/series/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link>http://localhost:1313/en/series/</link>
<description>Recent content in Series on Nikhil Site</description>
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<language>en-us</language>
<atom:link href="http://localhost:1313/en/series/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>
2 changes: 1 addition & 1 deletion public/en/tags/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link>http://localhost:1313/en/tags/</link>
<description>Recent content in Tags on Nikhil Site</description>
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<language>en-us</language>
<atom:link href="http://localhost:1313/en/tags/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en-us">
<head>
<title>http://localhost:1313/en/</title>
<link rel="canonical" href="http://localhost:1313/en/">
Expand Down

0 comments on commit 19439db

Please sign in to comment.