redid layout to use flexbox instead of grid

master
Adam Veldhousen 4 years ago
parent 0167ecb5ba
commit ba83f7c418
Signed by: adam
GPG Key ID: 6DB29003C6DD1E4B

@ -23,31 +23,34 @@ p {
.container {
max-width: 1280px;
margin: 0 auto;
display: grid;
grid-template-columns: 3fr 1fr;
}
display: flex;
flex-direction: column;
#header {
margin-bottom: 20px;
grid-column-start: 1;
grid-column-end: 3;
}
#header {
margin-bottom: 20px;
}
#content {
grid-column-start: 1;
grid-row-start: 2;
}
#center {
display: flex;
flex-direction: row-reverse;
width: 100%;
#sidebar {
grid-column-start: 2;
padding-top: 20px;
padding-left: 20px;
}
#content {
flex-grow: 2;
max-width: 1010px;
}
#sidebar {
padding-top: 20px;
padding-left: 20px;
flex-grow: 1;
min-width: 230px;
}
}
#footer {
grid-column-start: 1;
grid-column-end: 3;
font-size: 0.8rem;
#footer {
font-size: 0.8rem;
}
}
.highlight {

@ -1,5 +1,5 @@
---
title: "Kubernetes Loadbalancing with Metal LB"
title: "Kubernetes Load balancing with Metal LB"
date: 2020-01-02T20:57:36Z
tags: ["kubernetes", "homelab", "networking"]
draft: false

@ -22,13 +22,15 @@
<a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
</header>
<div id="sidebar">
{{ partial "navigation.html" . }}
</div>
<div id="center">
<div id="sidebar">
{{ partial "navigation.html" . }}
</div>
<div id="content">
{{ block "main" . }}{{ end }}
</div>
<div id="content">
{{ block "main" . }}{{ end }}
</div>
</div>
<footer id="footer">
{{ partial "foot.html" . }}

@ -21,12 +21,15 @@ test-publish: build
docker-build-dev:
@docker build --build-arg='VERSION=0.62.0' -t hugo -f Dockerfile.dev .
deploy:
k rollout restart deployment blog
assets: ./assets/css/syntax.css ./layouts/partials/openring.out.html
clean:
@rm -rf ./public ./resources ./assets/css/syntax.css ./layouts/partials/openring.out.html
.PHONY: serve new-post build publish test-publish docker-build-dev assets clean
.PHONY: serve new-post build publish test-publish docker-build-dev assets clean deploy
$(HUGO_BIN):
@go get -u --tags extended -v github.com/gohugoio/hugo

Loading…
Cancel
Save