Compare commits
No commits in common. "b541808f35b94ea44bfeacf2f6d64bcb74dc8280" and "d5f0151bb1fd749b3763c2775dc8f59fcf8db4d4" have entirely different histories.
b541808f35
...
d5f0151bb1
|
@ -46,10 +46,7 @@ func Initialise() AppConfig {
|
|||
if cfg, err := loadConfig(); err == nil {
|
||||
app.ListenPort = cfg.Port
|
||||
app.UseCache = cfg.UseCache
|
||||
app.LogLevel, err = log.ParseLevel(cfg.LogLevel)
|
||||
if err != nil {
|
||||
app.LogLevel = defaults.LogLevel
|
||||
}
|
||||
app.LogLevel = logLevelFromString(cfg.LogLevel)
|
||||
} else {
|
||||
app.Logger.Print("Failed loading config from environment", "err", err)
|
||||
}
|
||||
|
@ -69,3 +66,23 @@ func loadConfig() (ConfigDatabase, error) {
|
|||
return cfg, nil
|
||||
}
|
||||
}
|
||||
|
||||
// logLevelFromString turns a string like "warn" into a log.Level like log.WarnLevel
|
||||
func logLevelFromString(level string) log.Level {
|
||||
switch level {
|
||||
case "debug":
|
||||
return log.DebugLevel
|
||||
case "info":
|
||||
return log.InfoLevel
|
||||
case "warn":
|
||||
return log.WarnLevel
|
||||
case "error":
|
||||
return log.ErrorLevel
|
||||
case "fatal":
|
||||
return log.FatalLevel
|
||||
case "none":
|
||||
return math.MaxInt32
|
||||
default:
|
||||
return defaults.LogLevel
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,18 +28,10 @@ a:hover {
|
|||
color: #999;
|
||||
}
|
||||
|
||||
a#back {
|
||||
a.back {
|
||||
color: #111;
|
||||
}
|
||||
|
||||
a.links {
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
a.homelinks {
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
#stuff {
|
||||
margin: 55px 150px 25px 150px;
|
||||
}
|
||||
|
@ -98,39 +90,33 @@ h2 {
|
|||
/* width specific settings */
|
||||
@media screen and (max-width: 1200px) {
|
||||
|
||||
#words,
|
||||
#bigwords {
|
||||
width: 90%;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 800px) {
|
||||
|
||||
#words,
|
||||
#bigwords {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#leftfooter,
|
||||
#rightfooter {
|
||||
#leftfooter {
|
||||
position: fixed;
|
||||
bottom: 10px;
|
||||
right: 10px;
|
||||
text-align: right;
|
||||
left: 0px;
|
||||
display: block;
|
||||
font-size: 2vw;
|
||||
}
|
||||
|
||||
#leftfooter {
|
||||
bottom: 10px;
|
||||
}
|
||||
|
||||
#rightfooter {
|
||||
position: fixed;
|
||||
bottom: 35px;
|
||||
right: 10px;
|
||||
}
|
||||
|
||||
#stuff {
|
||||
margin: 15px 25px 25px 25px;
|
||||
margin: 15px 50px 25px 50px;
|
||||
}
|
||||
|
||||
a.links {
|
||||
font-size: 5ev;
|
||||
}
|
||||
|
||||
a.homelinks {
|
||||
font-size: 7ev;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
StringMap:
|
||||
about: she/her; 1989; queer anarchist; self-taught, aspiring developer and sysadmin; lover of music, games, books, free software, history, fog, mountains, and forests;
|
||||
about: she/her; 1989; queer anarchist; lover of music, games, books, free software, history, fog, mountains, and forests; self-taught, aspiring developer and sysadmin
|
||||
LinkMap:
|
||||
Personal:
|
||||
- href: https://matrix.to/#/@celediel:burning.moe
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<br />
|
||||
<span id="words">
|
||||
{{ range (index .LinkMap "Pages")}}
|
||||
<a href="{{ .Href }}" class="homelinks">{{ .Text }}</a><br />
|
||||
<a href="{{ .Href }}">{{ .Text }}</a><br />
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end -}}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{{- range $key, $value := .LinkMap }}
|
||||
<h4>{{ $key }}</h4>
|
||||
{{- range $value }}
|
||||
<a href="{{ .Href }}" class="links">
|
||||
<a href="{{ .Href }}">
|
||||
{{- if (ne .Icon "") }}
|
||||
<span class="iconify" data-icon="{{ .Icon }}"></span>
|
||||
{{ end }}
|
||||
|
@ -16,7 +16,7 @@
|
|||
{{- end }}
|
||||
{{ end -}}
|
||||
<br />
|
||||
<a href="/" id="back">
|
||||
<a href="/">
|
||||
<span class="iconify" data-icon="material-symbols:keyboard-arrow-left"></span>
|
||||
back
|
||||
</a>
|
||||
|
|
Loading…
Reference in a new issue