Create debug site and link statics
This commit is contained in:
11
exampleSite/config.toml
Normal file
11
exampleSite/config.toml
Normal file
@@ -0,0 +1,11 @@
|
||||
baseURL = "http://www.example.com"
|
||||
title = "Gokarna"
|
||||
theme = "gokarna"
|
||||
languageCode = "en"
|
||||
defaultContentLanguage = "en"
|
||||
|
||||
paginate = 20
|
||||
|
||||
pygmentsStyle = "bw"
|
||||
pygmentsCodeFences = true
|
||||
pygmentsCodeFencesGuessSyntax = true
|
||||
10
exampleSite/public/categories/index.xml
Normal file
10
exampleSite/public/categories/index.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Categories on Gokarna</title>
|
||||
<link>http://www.example.com/categories/</link>
|
||||
<description>Recent content in Categories on Gokarna</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<language>en</language><atom:link href="http://www.example.com/categories/index.xml" rel="self" type="application/rss+xml" />
|
||||
</channel>
|
||||
</rss>
|
||||
98
exampleSite/public/css/main.css
Normal file
98
exampleSite/public/css/main.css
Normal file
@@ -0,0 +1,98 @@
|
||||
html {
|
||||
font-family: open sans, helvetica neue, Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
.container {
|
||||
height: 800px;
|
||||
}
|
||||
|
||||
.header-light {
|
||||
background-color: #bbb;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.header-dark {
|
||||
background-color: #1b1c1d;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.header {
|
||||
position: fixed;
|
||||
height: 100px;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
-ms-transition: all 0.5s ease-out;
|
||||
-moz-transition: all 0.5s ease-out;
|
||||
-webkit-transition: all 0.5s ease-out;
|
||||
-o-transition: all 0.5s ease-out;
|
||||
transition: all 0.5s ease-out;
|
||||
}
|
||||
|
||||
.header.small {
|
||||
height: 70px;
|
||||
}
|
||||
|
||||
/* #header-sroll h1 {
|
||||
font-size: 30px;
|
||||
font-family: Arial;
|
||||
text-align: center;
|
||||
line-height: 50px;
|
||||
-ms-transition: all 0.2s ease-out;
|
||||
-moz-transition: all 0.2s ease-out;
|
||||
-webkit-transition: all 0.2s ease-out;
|
||||
-o-transition: all 0.2s ease-out;
|
||||
transition: all 0.2s ease-out;
|
||||
}
|
||||
#header-sroll.small h1{
|
||||
height: 70px;
|
||||
line-height: 35px;
|
||||
font-size: 25px;
|
||||
}
|
||||
*/
|
||||
|
||||
.header a {
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.header .header-nav {
|
||||
height: 64px;
|
||||
margin-top: 18px;
|
||||
-ms-transition: all 0.5s ease-out;
|
||||
-moz-transition: all 0.5s ease-out;
|
||||
-webkit-transition: all 0.5s ease-out;
|
||||
-o-transition: all 0.5s ease-out;
|
||||
transition: all 0.5s ease-out;
|
||||
}
|
||||
|
||||
.header .header-nav.small {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.header-nav .avatar {
|
||||
float: left;
|
||||
display: inline-block;
|
||||
height: 100%;
|
||||
border: 0.5px solid white;
|
||||
border-radius: 18px;
|
||||
}
|
||||
.header-nav .avatar img {
|
||||
display: block;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
overflow: hidden;
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
.header-nav .nav-title {
|
||||
display: inline-block;
|
||||
padding-left: 10px;
|
||||
height: 100%;
|
||||
line-height: 60px;
|
||||
}
|
||||
|
||||
.nav-title a {
|
||||
height: 50px;
|
||||
font-size: 20px;
|
||||
}
|
||||
10
exampleSite/public/index.xml
Normal file
10
exampleSite/public/index.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Gokarna</title>
|
||||
<link>http://www.example.com/</link>
|
||||
<description>Recent content on Gokarna</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<language>en</language><atom:link href="http://www.example.com/index.xml" rel="self" type="application/rss+xml" />
|
||||
</channel>
|
||||
</rss>
|
||||
10
exampleSite/public/js/main.js
Normal file
10
exampleSite/public/js/main.js
Normal file
@@ -0,0 +1,10 @@
|
||||
$(window).scroll(function () {
|
||||
var sc = $(window).scrollTop()
|
||||
if (sc > 100) {
|
||||
$(".header").addClass("small");
|
||||
$(".header-nav").addClass("small");
|
||||
} else {
|
||||
$(".header").removeClass("small");
|
||||
$(".header-nav").removeClass("small");
|
||||
}
|
||||
});
|
||||
11
exampleSite/public/sitemap.xml
Normal file
11
exampleSite/public/sitemap.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
<url>
|
||||
<loc>http://www.example.com/categories/</loc>
|
||||
</url><url>
|
||||
<loc>http://www.example.com/</loc>
|
||||
</url><url>
|
||||
<loc>http://www.example.com/tags/</loc>
|
||||
</url>
|
||||
</urlset>
|
||||
10
exampleSite/public/tags/index.xml
Normal file
10
exampleSite/public/tags/index.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Tags on Gokarna</title>
|
||||
<link>http://www.example.com/tags/</link>
|
||||
<description>Recent content in Tags on Gokarna</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<language>en</language><atom:link href="http://www.example.com/tags/index.xml" rel="self" type="application/rss+xml" />
|
||||
</channel>
|
||||
</rss>
|
||||
1
exampleSite/themes
Symbolic link
1
exampleSite/themes
Symbolic link
@@ -0,0 +1 @@
|
||||
../themes
|
||||
@@ -0,0 +1,5 @@
|
||||
{{ define "main" }}
|
||||
<div id="home-jumbotron" class="jumbotron text-center">
|
||||
<h1 class="title">{{ .Site.Title }}</h1>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/css/main.css">
|
||||
<script src="/js/jquery-3.6.0.slim.min.js"></script>
|
||||
<script src="/js/main.js"></script>
|
||||
{{ $title := print .Site.Title " | " .Title }}
|
||||
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
|
||||
<title>{{ $title }}</title>
|
||||
</head>
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
|
||||
<div class="avatar">
|
||||
<a href=".Site.BaseURL">
|
||||
<img src=".Site.Params.Avatar" alt=" Avatar" />
|
||||
<img src=".Site.Params.Avatar" alt="Avatar" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="nav-title">
|
||||
<a class="nav-brand" href="https://shantanugoel.com">Title title</a>
|
||||
<a class="nav-brand" href="https://example.com">Title title</a>
|
||||
</div>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
3
themes/gokarna/static/js/jquery-3.6.0.slim.min.js
vendored
Normal file
3
themes/gokarna/static/js/jquery-3.6.0.slim.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user