Improve CSS a little bit, change pid and log file names

This commit is contained in:
Kelvin Ly (on the cloud) 2019-07-19 01:36:35 +00:00
parent 25c16325b6
commit 4bb04bb921
2 changed files with 19 additions and 7 deletions

View File

@ -1,6 +1,8 @@
body {
margin: 0;
background-color: rgb(240, 240, 240);
position: relative;
min-height: 100vh;
}
article {
@ -13,10 +15,17 @@ nav, footer {
background-color: rgb(1, 33, 1);
margin-right: auto;
margin-left: auto;
size: 1.5em;
color: rgb(180, 220, 180);
}
footer {
position: absolute;
bottom: 0;
width: 100%;
height: 2.5rem;
}
a {
text-decoration: none;
color: rgb(220, 220, 250);
@ -36,14 +45,16 @@ a {
}
.nav-item {
transition: 0.3s;
padding-top: 1.2em;
padding-bottom: 1.2em;
transition: 0.3s;
}
.nav-item a {
padding-left: 1.8em;
padding-right: 1.8em;
padding-top: 1.2em;
padding-bottom: 1.2em;
font-size: 1.2em;
transition: 0.3s;
}
@ -64,5 +75,5 @@ a {
padding-bottom: 1em;
padding-left: 1.0em;
padding-right: 1.0em;
bottom: 0;
/*bottom: 0;*/
}

View File

@ -99,10 +99,11 @@ const HTML_HEADER = `<!doctype html5>
<article class="markdown-body entry-content" style="padding:2em;">
`
const HTML_FOOTER = ` </article>
const HTML_FOOTER = `
</article>
<footer>
<div class="footer-wrapper">
by Kelvin Ly, source available <a href="https://github.com/cactorium/kelvinly-server">here</a>
by Kelvin Ly, source available <a href="https://github.com/cactorium/threefortiethofonehamster.com">here</a>
</div>
</footer>
</body>
@ -168,9 +169,9 @@ func main() {
daemon.AddCommand(daemon.StringFlag(signal, "reload"), syscall.SIGHUP, reloadHandler)
cntxt := &daemon.Context{
PidFileName: "/tmp/kelvinly-server-pid",
PidFileName: "/tmp/main-server-pid",
PidFilePerm: 0644,
LogFileName: "/tmp/kelvinly-server-log",
LogFileName: "/tmp/main-server-log",
LogFilePerm: 0640,
WorkDir: "/home/kelvin/main-server/",
Umask: 027,