Skip to content

Commit

Permalink
fix hugo config
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremie Plante committed Feb 29, 2024
1 parent 69857d5 commit 24d7340
Show file tree
Hide file tree
Showing 13 changed files with 533 additions and 155 deletions.
15 changes: 9 additions & 6 deletions content/posts/my-first-post.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
+++
title = 'My First Post'
date = 2024-02-29T14:35:14-05:00
draft = false
+++
---
title: My First Post
description: Test post!
date: 2024-02-29
draft: false
tags:
- test
---

Hello World!
Hello World :-)
113 changes: 112 additions & 1 deletion hugo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,115 @@
baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'
title = 'sin.io'
theme = "hugo-blog-awesome"

# This defines how dates are formatted
defaultContentLanguage = "en-gb"

# To enable Google Analytics 4 (gtag.js) provide G-MEASUREMENT_ID below.
# To disable Google Analytics, simply leave the field empty or remove the next line
googleAnalytics = '' # G-MEASUREMENT_ID

# Enable emojis globally
enableEmoji = true
ignoreErrors = ["additional-script-loading-error"] # ignore error of loading additional scripts.

# To enable Disqus comments, provide Disqus Shortname below.
# To disable Disqus comments, simply leave the field empty or remove the next line
disqusShortname = ''

# set markup.highlight.noClasses=false to enable code highlight
[markup]
[markup.highlight]
noClasses = false
[markup.goldmark.renderer]
unsafe = true
[markup.tableOfContents]
startLevel = 2 # ToC starts from H2
endLevel = 4 # ToC ends at H4
ordered = false # generates <ul> instead of <ol>

############################## English language ################################
[Languages.en-gb]
languageName = "English"
languageCode = "en-gb"
contentDir = "content/en"
weight = 1

[Languages.en-gb.menu]
[[Languages.en-gb.menu.main]]
# The page reference (pageRef) is useful for menu highlighting
# When pageRef is set, setting `url` is optional; it will be used as a fallback if the page is not found.
pageRef="/"
name = 'Home'
url = '/'
weight = 10
[[Languages.en-gb.menu.main]]
pageRef="posts"
name = 'Posts'
url = '/posts/'
weight = 20
[[Languages.en-gb.menu.main]]
pageRef="about"
name = 'About'
url = '/about/'
weight = 30

[Languages.en-gb.params]
sitename = "sin.io"
defaultColor = "dark" # set color mode: dark, light, auto
# Setting it to 'auto' applies the color scheme based on the visitor's device color preference.If you don't specify anything, ignore this parameter, or leave it blank,
# the default value is set to 'auto'.
# You can take a look at layouts/index.html for more information.
description = "sin.io"
mainSections = ['posts']
toc = true # set to false to disable table of contents 'globally'
tocOpen = false # set to true to open table of contents by default
goToTop = true # set to false to disable 'go to top' button
additionalScripts = ['js/custom.js', 'js/custom-2.js']
# Will try to load 'assets/js/custom.js' and 'assets/js/custom-2.js'.
# Your custom scripts will be concatinated to one file `custom.js`.
# When building for production it will be minified.
# The file `custom.js` is loaded on each page (before body tag ends).
dateFormat = "" # date format used to show dates on various pages. If nothing is specified, then "2 Jan 2006" format is used.
# See https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference for available date formats.
rssFeedDescription = "summary" # available options: 1) summary 2) full
# summary - includes a short summary of the blog post in the RSS feed. Generated using Hugo .Summary .
# full - includes full blog post in the RSS feed. Generated using Hugo .Content .
# By default (or if nothing is specified), summary is used.

[Languages.en-gb.params.author]
avatar = "avatar.jpg" # put the file in assets folder; also ensure that image has same height and width
# Note: image is not rendered if the resource(avatar image) is not found. No error is displayed.
intro = "Awesome hugo blog"
name = "Sidharth R"
description = "A fast, minimalistic Hugo theme with light and dark mode support, for running a personal site or blog."

# Allow to override webmanifest options
[Languages.en-gb.params.webmanifest]
name = "sitename" # will use "params.sitename" or "title" by default
short_name = "sitename" # same as name
start_url = "/" # will use homepage url by default
theme_color = "#434648" # default is "#434648" (base color of text). Also will override html `<meta name="theme-color" />`
background_color = "#fff" # by default depend on "params.defaultColor" for "light" or "auto" will be set to "#fff" for dark will be "#131418" (color of dark mode background)
display = "standalone"


###################################################################

# Allow to override `browserconfig.xml` params (configuration for windows embeded browsers)
[params.browserconfig]
TileColor = "#2d89ef" # default windows 10 blue tile color

[[params.socialIcons]]
name = "github"
url = "https://github.com/hugo-sid"

[[params.socialIcons]]
name = "twitter"
url = "https://twitter.com"

[[params.socialIcons]]
name = "Rss"
url = "index.xml"

128 changes: 97 additions & 31 deletions public/404.html
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
<!DOCTYPE html>
<html lang="en-us"><head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script><meta charset="utf-8">
<html lang="en-gb"><head><meta charset="utf-8">
<meta http-equiv="content-type" content="text/html">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title itemprop="name">404 Page not found | My New Hugo Site</title>
<meta property="og:title" content="404 Page not found | My New Hugo Site" />
<meta name="twitter:title" content="404 Page not found | My New Hugo Site" />
<meta itemprop="name" content="404 Page not found | My New Hugo Site" />
<meta name="application-name" content="404 Page not found | My New Hugo Site" />
<meta property="og:site_name" content="" />
<title itemprop="name">404 Page not found | sin.io</title>
<meta property="og:title" content="404 Page not found | sin.io" />
<meta name="twitter:title" content="404 Page not found | sin.io" />
<meta itemprop="name" content="404 Page not found | sin.io" />
<meta name="application-name" content="404 Page not found | sin.io" />
<meta property="og:site_name" content="Awesome hugo blog" />

<meta name="description" content="">
<meta itemprop="description" content="" />
<meta property="og:description" content="" />
<meta name="twitter:description" content="" />
<meta name="description" content="Minimal Hugo blog theme with light and dark mode support">
<meta itemprop="description" content="Minimal Hugo blog theme with light and dark mode support" />
<meta property="og:description" content="Minimal Hugo blog theme with light and dark mode support" />
<meta name="twitter:description" content="Minimal Hugo blog theme with light and dark mode support" />

<meta property="og:locale" content="en-us" />
<meta name="language" content="en-us" />
<meta property="og:locale" content="en-gb" />
<meta name="language" content="en-gb" />

<link rel="alternate" hreflang="en" href="http://localhost:1313/404.html" title="" />
<link rel="alternate" hreflang="en-gb" href="https://example.org/404.html" title="English" />



<meta itemprop="image" content="http://localhost:1313/" />
<meta property="og:image" content="http://localhost:1313/" />
<meta name="twitter:image" content="http://localhost:1313/" />
<meta name="twitter:image:src" content="http://localhost:1313/" />
<meta itemprop="image" content="https://example.org/" />
<meta property="og:image" content="https://example.org/" />
<meta name="twitter:image" content="https://example.org/" />
<meta name="twitter:image:src" content="https://example.org/" />



Expand All @@ -35,8 +35,8 @@



<link rel="canonical" href="http://localhost:1313/404.html">
<link href="/style.min.18927ce2d0dc33c991e188f9b4efd25929b9589151125f809e2b3f45e447e971.css" rel="stylesheet">
<link rel="canonical" href="https://example.org/404.html">
<link href="/style.min.d43bc6c79baa87f006efb2b92be952faeedeb1a3ab626c1d6abda52eae049355.css" rel="stylesheet">
<link href="/code-highlight.min.706d31975fec544a864cb7f0d847a73ea55ca1df91bf495fd12a177138d807cf.css" rel="stylesheet">


Expand All @@ -49,7 +49,7 @@



<link rel="manifest" href="http://localhost:1313/site.webmanifest">
<link rel="manifest" href="https://example.org/site.webmanifest">

<meta name="msapplication-config" content="/browserconfig.xml">
<meta name="msapplication-TileColor" content="#2d89ef">
Expand All @@ -58,18 +58,19 @@

<link rel="icon" type="image/svg+xml" href="/icons/favicon.svg">


</head>
<body data-theme = "" class="notransition">
<body data-theme = "dark" class="notransition">

<script src="/js/theme.js"></script>
<script src="/js/theme.min.8961c317c5b88b953fe27525839672c9343f1058ab044696ca225656c8ba2ab0.js" integrity="sha256-iWHDF8W4i5U/4nUlg5ZyyTQ/EFirBEaWyiJWVsi6KrA="></script>

<div class="navbar" role="navigation">
<nav class="menu" aria-label="Main Navigation">
<a href="http://localhost:1313/" class="logo">
<a href="https://example.org/" class="logo">
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25"
viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" class="feather feather-home">
<title></title>
<title>Home</title>
<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
<polyline points="9 22 9 12 15 12 15 22"></polyline>
</svg>
Expand All @@ -85,6 +86,27 @@
<ul class="trigger-container">


<li>
<a class="menu-link " href="/">
Home
</a>

</li>

<li>
<a class="menu-link " href="/posts/">
Posts
</a>

</li>

<li>
<a class="menu-link " href="/about/">
About
</a>

</li>

<li class="menu-separator">
<span>|</span>
</li>
Expand All @@ -103,30 +125,74 @@

<div class="wrapper">
<main class="main-404" aria-label="Content">
<h1></h1>
<p></p>
<h1>404 NOT FOUND</h1>
<p>You just hit a route that doesn&#39;t exist.</p>
</main>
</div>
<footer class="footer">
<span class="footer_item"> </span>
&nbsp;

<div class="footer_social-icons">
<a href="https://github.com/hugo-sid" 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://twitter.com" target="_blank" rel="noopener noreferrer me"
title="Twitter">
<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="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z">
</path>
</svg>
</a>
<a href="index.xml" target="_blank" rel="noopener noreferrer me"
title="Rss">
<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="M4 11a9 9 0 0 1 9 9" />
<path d="M4 4a16 16 0 0 1 16 16" />
<circle cx="5" cy="19" r="1" />
</svg>
</a>
</div>
<small class="footer_copyright">
© 2024 .

© 2024 Sidharth R.
Powered by <a href="https://github.com/hugo-sid/hugo-blog-awesome" target="_blank" rel="noopener">Hugo blog awesome</a>.
</small>
</footer>
</footer><a href="#" title="Go to top" id="totop">
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="currentColor" stroke="currentColor" viewBox="0 96 960 960">
<path d="M283 704.739 234.261 656 480 410.261 725.739 656 677 704.739l-197-197-197 197Z"/>
</svg>

</a>








<script async src="http://localhost:1313/js/main.js" ></script>












<script src="https://example.org/js/main.min.35f435a5d8eac613c52daa28d8af544a4512337d3e95236e4a4978417b8dcb2f.js" integrity="sha256-NfQ1pdjqxhPFLaoo2K9USkUSM30&#43;lSNuSkl4QXuNyy8="></script>



Expand Down
Loading

0 comments on commit 24d7340

Please sign in to comment.