Browse Source

Adapting nulloctet to use sothr.com color scheme

master
Drew Short 6 years ago
parent
commit
cdcfcc1ff0
  1. 5
      config.toml
  2. 10
      run_hugo_server.sh
  3. 13
      static/css/main.css
  4. 2
      themes/hyde/layouts/partials/sidebar.html

5
config.toml

@ -22,6 +22,11 @@ paginatePath = "page"
copyright = "© 2018 Drew Short. All rights reserved." copyright = "© 2018 Drew Short. All rights reserved."
[menu] [menu]
[[menu.main]]
name = "Website"
url = "https://sothr.com"
weight = -120
[[menu.main]] [[menu.main]]
name = "Tags" name = "Tags"
post = "<span class='alert'>New!</span>" post = "<span class='alert'>New!</span>"

10
run_hugo_server.sh

@ -0,0 +1,10 @@
#! /usr/bin/sh
docker run -it \
-e HUGO_WATCH=true \
-e HUGO_THEME=hyde \
-e HUGO_BASEURL=http://localhost:1313/ \
-e HUGO_DESTINATION=/src/public \
-v ${PWD}:/src \
-p 1313:1313 \
sothr.com/hugo:0.54.0 $@

13
static/css/main.css

@ -1,3 +1,16 @@
.sidebar {
background-color: #E7732F;
color: #323232;
}
.sidebar a {
color: #000000;
}
.sidebar-about h1 {
color: #000000;
}
div.sidebar-about a h1 { div.sidebar-about a h1 {
font-style: italic; font-style: italic;
} }

2
themes/hyde/layouts/partials/sidebar.html

@ -2,7 +2,7 @@
<div class="container sidebar-sticky"> <div class="container sidebar-sticky">
<div class="sidebar-about"> <div class="sidebar-about">
<a href="{{ .Site.BaseURL }}"> <a href="{{ .Site.BaseURL }}">
<img class="center" src="/nulloctet-white.svg" alt="{{ .Site.Title }}" />
<img class="center" src="/nulloctet.svg" alt="{{ .Site.Title }}" />
<h1>Null Octet</h1> <h1>Null Octet</h1>
</a> </a>
<p class="lead"> <p class="lead">

Loading…
Cancel
Save