Commit 1efbf687 authored by diamondburned (Forefront)'s avatar diamondburned (Forefront) 😶

Added extra options

parent 72b15fe8
......@@ -5,30 +5,33 @@ theme = "burned"
description = "made by diamondburned"
[params]
icon = ""
icon = "" # favicon
footer = "Made with ~~child labor~~"
author = "diamondburned"
[params.tweaks]
blend = "false"
stretchbar = "false"
# you might need to go to the css file and save it for Hugo to reload cache
# known bug
credits = "true"
[params.home]
fonts = ["Source Sans Pro", "Noto Sans", "Helvetica", "Segoe UI"]
blend = "false" # blending body with the background
stretchbar = "false" # stretching the navbar to fullwidth
floatingbar = "true" # makes the bar float
darkshadowbar = "false" # use dark shadow instead
credits = "true" # show credit
fontawesome = "true" # use fontawesome, required for `icon` to work
[params.home] # Homepage
text = ""
icon = "fas fa-home"
[params.about]
[params.about] # website
text = ""
icon = "fas fa-info-circle"
url = "https://diamondb.xyz/"
[params.github]
username = "diamondburned"
text = ""
icon = "fab fa-github"
# < commenting a block hides its button
#[params.github]
# username = "diamondburned"
# text = ""
# icon = "fab fa-github"
[params.gitlab]
username = "diamondburned"
......
......@@ -11,7 +11,7 @@ html, body {
padding: 0
}
html {
font-family: "Source Sans Pro", "Noto Sans", "Helvetica", "Segoe UI", sans-serif, "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-family: sans-serif, "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 1rem;
overflow-y: scroll;
background: #171717;
......@@ -356,9 +356,14 @@ main {
width: 100vw;
padding: 0 .5em;
}
.if-nav-fixed {
height: 0px;
}
.nav {
box-shadow:0 2px 2px -2px rgba(255, 255, 255, 0.2);
box-shadow: 0 0px .5px 0px rgba(255, 255, 255, 0.5);
overflow:auto;
min-height: 65px;
background: #1d1d1d;
}
.nav-container {
margin: 1em auto;
......@@ -394,9 +399,6 @@ main {
}
h2.nav-title {
}
.nav {
min-height: 65px;
}
.nav ul {
list-style-type:none;
margin: 0;
......@@ -425,12 +427,12 @@ footer {
position: absolute;
bottom: 0;
height: 24px;
padding: 30px 0;
padding: 3em 0;
text-align: center;
max-width: 500px;
width: 100vw;
margin: 0 auto;
bottom: 15px;
bottom: 1em;
left: 0;
right: 0;
}
......@@ -439,7 +441,7 @@ footer span {
font-size:.8rem
}
p.footer {
margin: 0 !important;
margin: 0;
}
.pagination {
border-top: .5px solid transparent;
......@@ -448,7 +450,7 @@ p.footer {
max-width: 500px;
width: 100vw;
margin: 0 auto;
bottom: 50px;
bottom: 4em;
left: 0;
right: 0;
}
......
......@@ -3,7 +3,7 @@
<p class="footer">{{ .Site.Params.Footer | markdownify }}</p>
{{ if isset .Site.Params "tweaks" }}
{{ if eq .Site.Params.Tweaks.Credits "true" }}
<p class="footer">
<p class="footer credits">
{{ "[Theme made by diamondburned](https://gitlab.com/diamondburned/burned/), powered by [Hu**go**](https://gohugo.io/)" | markdownify }}
</p>
{{ end }}
......
......@@ -18,24 +18,47 @@
</title>
<!-- CSS
<link rel="stylesheet" href="/main.css"> -->
{{ partial "css.html" . }}
{{ if isset .Site.Params "tweaks" }}
{{ if eq .Site.Params.Tweaks.Blend "true" }}
<style>
body {background: none; box-shadow: none;}
</style>
{{ end }}
{{ if eq .Site.Params.Tweaks.StretchBar "true" }}
<style>
body {max-width: 100vw; box-shadow: none;}
.nav-container {display: inline;}
.title, .menu {margin: 1rem 20px;}
main {margin: 0 auto; padding: 0 20px;}
</style>
{{ end }}
{{ end }}
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
<link rel="stylesheet" href="/main.css"> -->
{{ partial "css.html" . }}
{{ if isset .Site.Params "tweaks" }}
{{ if isset .Site.Params.Tweaks "fonts" }}
<style>
html {
font-family: {{ range $fonts := .Site.Params.Tweaks.Fonts }}"{{ $fonts }}",{{ end }}
sans-serif, "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"
}
</style>
{{ end }}
{{ if eq .Site.Params.Tweaks.Blend "true" }}
<style>
body {background: none; box-shadow: none;}
.nav {background: none;}
</style>
{{ end }}
{{ if eq .Site.Params.Tweaks.StretchBar "true" }}
<style>
body {max-width: 100vw; box-shadow: none;}
.nav-container {display: inline;}
.title, .menu {margin: 1rem 20px;}
main {margin: 0 auto; padding: 0 20px;}
</style>
{{ end }}
{{ if eq .Site.Params.Tweaks.FloatingBar "true" }}
<style>
.nav {position: fixed; max-width: 800px; width: 100vw;}
.if-nav-fixed {max-height: 12vh; height: 8vw;}
@media only screen and (max-width: 600px) { .if-nav-fixed {max-height: 22vh; height: 18vh;} }
</style>
{{ end }}
{{ if eq .Site.Params.Tweaks.DarkShadowBar "true" }}
<style>
.nav {box-shadow: 0 0px 3px 0px rgba(0, 0, 0, .75);}
</style>
{{ end }}
{{ if eq .Site.Params.Tweaks.FontAwesome "true" }}
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
{{ end }}
{{ end }}
<link rel="icon" href="{{ .Site.Params.Icon }}">
<!-- RSS -->
......
......@@ -42,4 +42,5 @@
</ul>
</h2></div>
</div>
</nav>
\ No newline at end of file
</nav>
<div class="if-nav-fixed"></div>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment