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;
margin: 1rem;
font-family: monospace;
background: rgb(0,58,155);
/*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;*/
background: #d6d6d6;
}
@media only screen and (min-width: 800px) {
@ -29,7 +23,6 @@ body {
}
header {
border-bottom: 1px solid #3b3b3b;
margin-bottom: 1rem;
}
@ -39,14 +32,13 @@ footer {
}
a {
color: #524f6e !important;
opacity: .6;
}
a:hover {
color: #6d6994 !important;
text-shadow: 0px 0px 10px #685aed;
opacity: 1;
}
hr {
color: white !important;
background-color: white !important;
color: black !important;
background-color: black !important;
}

View File

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

View File

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

View File

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

View File

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

View File

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