Minor website changes

This commit is contained in:
Kelvin Ly (on the cloud) 2019-12-21 06:14:18 +00:00
parent 382da3a7b5
commit a26d012df6
2 changed files with 3 additions and 4 deletions

View File

@ -21,7 +21,7 @@ article {
}
nav, footer {
background-color: rgb(1, 33, 1);
background-color: rgb(32, 164, 32);
margin-right: auto;
margin-left: auto;
color: rgb(180, 220, 180);

View File

@ -40,8 +40,7 @@ const HTML_HEADER = `<!doctype html5>
<nav>
<div class="nav-wrapper">
<div class="nav-item"><a href="/">Home</a></div>
<div class="nav-item"><a href="/projects.md">Projects</a></div>
<div class="nav-item"><a href="/builds.md">Builds</a></div>
<div class="nav-item"><a href="/builds.md">Projects</a></div>
<div class="nav-item"><a href="/resume/resume-KelvinLy-hardware.pdf">Resume</a></div>
</div>
</nav>
@ -95,7 +94,7 @@ func serveMarkdown(w http.ResponseWriter, r *http.Request, paths ...string) {
func rootHandler(w http.ResponseWriter, r *http.Request) {
if r.Method == "GET" {
if r.URL.Path == "/" {
serveMarkdown(w, r, "static/intro.md", "static/projects.md", "static/builds.md")
serveMarkdown(w, r, "static/intro.md", "static/builds.md")
} else if strings.HasSuffix(r.URL.Path, ".md") {
if strings.Contains(r.URL.Path, "..") {
w.WriteHeader(403)