generic: update website style

This commit is contained in:
Kevin J. 2024-09-28 20:24:40 +02:00
parent 10efec6176
commit 0d013ef57a
6 changed files with 23 additions and 55 deletions

View File

@ -7,13 +7,7 @@ body {
line-height: 1.5; line-height: 1.5;
margin: 1rem; margin: 1rem;
font-family: monospace; font-family: monospace;
background: rgb(0,58,155); background: #d6d6d6;
/*background: linear-gradient(0deg, rgba(0,78,255,1) 0%, rgba(0,0,0,1) 100%);
*/
background-image: url('../hacker-manifesto-bg.jpg');
background-repeat: repeat;
/*background-size: contain;
background-attachment: fixed;*/
} }
@media only screen and (min-width: 800px) { @media only screen and (min-width: 800px) {
@ -29,7 +23,6 @@ body {
} }
header { header {
border-bottom: 1px solid #3b3b3b;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
@ -39,14 +32,13 @@ footer {
} }
a { a {
color: #524f6e !important; opacity: .6;
} }
a:hover { a:hover {
color: #6d6994 !important; opacity: 1;
text-shadow: 0px 0px 10px #685aed;
} }
hr { hr {
color: white !important; color: black !important;
background-color: white !important; background-color: black !important;
} }

View File

@ -3,32 +3,32 @@ languageCode = 'en-us'
title = 'My New Hugo Site' title = 'My New Hugo Site'
[[menus.main]] [[menus.main]]
name = 'Home' name = 'home'
pageRef = '/' pageRef = '/'
weight = 10 weight = 10
[[menus.main]] [[menus.main]]
name = 'About' name = 'about'
pageRef = '/pages/about-me' pageRef = '/pages/about-me'
weight = 25 weight = 25
[[menus.main]] [[menus.main]]
name = 'Resources' name = 'resources'
pageRef = '/pages/resources' pageRef = '/pages/resources'
weight = 30 weight = 30
[[menus.main]] [[menus.main]]
name = 'Git' name = 'git'
url = 'http://git.0xdeadbeer.xyz/0xdeadbeer/' url = 'http://git.0xdeadbeer.xyz/0xdeadbeer/'
weight = 33 weight = 33
[[menus.main]] [[menus.main]]
name = 'Archive' name = 'archive'
url = 'http://archive.0xdeadbeer.xyz' url = 'http://archive.0xdeadbeer.xyz'
weight = 35 weight = 35
[[menus.main]] [[menus.main]]
name = 'RSS' name = 'rss'
url = '/index.xml' url = '/index.xml'
weight = 40 weight = 40

View File

@ -3,8 +3,10 @@
{{ .Content }} {{ .Content }}
{{ $postsDir := .Site.Params.Posts | default (slice "posts" "post") }} {{ $postsDir := .Site.Params.Posts | default (slice "posts" "post") }}
{{ $allPostsList := where (where site.RegularPages "Section" "in" $postsDir) "Section" "!=" "" }} {{ $allPostsList := where (where site.RegularPages "Section" "in" $postsDir) "Section" "!=" "" }}
<p>posts:</p>
<ul>
{{ range $allPostsList }} {{ range $allPostsList }}
<h2><a class="title" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2> <li><a class="title" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
{{ .Summary }}
{{ end }} {{ end }}
</ul>
{{ end }} {{ end }}

View File

@ -1,8 +1,6 @@
{{ define "main" }} {{ define "main" }}
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
{{ .Content }}
{{ range .Pages }} {{ range .Pages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2> <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ .Summary }}
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@ -1,26 +1,4 @@
<div class="header"> <div class="header">
<!--<h1>{{ site.Title }}</h1>--> <h1>&lt;&lt;0xDEADBEER&gt;&gt;</h1>
<pre class="header-bg">
( (
( ( ) ) ( ( )\ ) ( ) )\ )
` ) )( )\ /(( ( /( ( )\ ) )\ ( (()/( ))\ ( /( (()/(
/(/( (()\((_)(_))\ )(_)) )\(()/( ((_) )\ ((_))/((_))(_)) ((_))
((_)_\ ((_)(_)_)((_)((_)_ ((_))(_)) (_)((_) _| |(_)) ((_)_ _| |
| '_ \)| '_|| |\ V / / _` |/ _|| || | | |(_-< / _` |/ -_)/ _` |/ _` |
| .__/ |_| |_| \_/ \__,_|\__| \_, | |_|/__/ \__,_|\___|\__,_|\__,_|
|_| |__/</pre>
<pre class="header-sm">
( ( ) ) (
` ) )( )\ /(( ( /( ( )\ )
/(/( (()((_|_))\ )(_)) )(()/(
((_)_\ ((_|_))((_|(_)_ ((_)(_))
| '_ \) '_| \ V // _` / _| || |
| .__/|_| (_|\_/ \__,_\_(|\_, |
|(| )\ ) ( ) )\|)_/
)\ ( (()/( ))\( /( (()/(
((_))\ ((_))((_)(_)) ((_))
(_|(_) _| (_))((_)_ _| |
| (_-< / _` / -_) _` / _` |
|_/__/ \__,_\___\__,_\__,_| </pre>
{{ partial "menu.html" (dict "menuID" "main" "page" .) }} {{ partial "menu.html" (dict "menuID" "main" "page" .) }}
</div> </div>

View File

@ -7,13 +7,14 @@
background: white; background: white;
} }
* {
color: white; code {
background: black !important;
color: white !important;
} }
pre code { pre code {
display: block; display: block;
background: black;
} }
.post-title { .post-title {
@ -22,7 +23,7 @@ pre code {
.container { .container {
margin: auto !important; margin: auto !important;
background: #0d0d0d !important; background: #e8e6e6 !important;
padding: 20px 20px; padding: 20px 20px;
} }
@ -42,7 +43,7 @@ pre code {
@media only screen and (min-width: 800px) { @media only screen and (min-width: 800px) {
.container { .container {
max-width: 800px; max-width: 800px;
border: 1px solid white; border: 1px solid #303030;
} }
.header .header-bg { .header .header-bg {
font-size: 18px; font-size: 18px;
@ -85,6 +86,7 @@ pre code {
code { code {
background: #333333; background: #333333;
color: white;
padding: 2px; padding: 2px;
} }
@ -92,8 +94,4 @@ img {
width: 100%; width: 100%;
} }
.code {
background: #ffffff !important;
color: black !important;
}