Compare commits
No commits in common. "8834ee3951115302a6293a48d765a78bbb130d80" and "976e1f73ad43e92c60f300dfaf0caf061e0a6ceb" have entirely different histories.
8834ee3951
...
976e1f73ad
|
@ -2,10 +2,3 @@
|
||||||
|
|
||||||
1. Build Docker image: `docker build -t hugo .`
|
1. Build Docker image: `docker build -t hugo .`
|
||||||
2. Run container: `docker run --rm -v $PWD:/var/www/html -p 1313:1313 hugo`
|
2. Run container: `docker run --rm -v $PWD:/var/www/html -p 1313:1313 hugo`
|
||||||
|
|
||||||
## Create a new news post
|
|
||||||
|
|
||||||
```sh
|
|
||||||
export TITLE="insert-title-here"
|
|
||||||
hugo new "news/$TITLE.md" && cp "content/news/$TITLE.md" "content/news/$TITLE.de.md"
|
|
||||||
```
|
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
---
|
|
||||||
title: "{{ replace .Name "-" " " | title }}"
|
|
||||||
date: {{ .Date }}
|
|
||||||
menu:
|
|
||||||
main:
|
|
||||||
parent: News
|
|
||||||
---
|
|
||||||
|
|
|
@ -83,7 +83,7 @@ ul {
|
||||||
|
|
||||||
.nav {
|
.nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: column wrap;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
&.nav-main {
|
&.nav-main {
|
||||||
|
@ -132,7 +132,3 @@ ul {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.date {
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<main>
|
<main>
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
<p class="date">{{ .Date.Format "2006-01-02 15:04" }}</p>
|
<p>{{ .Date.Format "2006-01-02 15:04" }}</p>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</main>
|
</main>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue