Commit 043c5f1d authored by joanca's avatar joanca

Adding space between articles in main container

parent 1ba08f0c
@import 'reset';
@import 'general';
\ No newline at end of file
@import 'general';
@import 'posts';
\ No newline at end of file
......@@ -7,5 +7,9 @@ body {
font-size: $font-size-regular;
margin: 0 auto;
max-width: $max-width;
padding: $padding-medium;
padding: $separator-medium;
}
main {
}
\ No newline at end of file
@import 'variables';
.main-container {
article {
margin: $separator-medium 0;
}
}
\ No newline at end of file
......@@ -4,4 +4,4 @@ $font-size-regular: 16px;
// Layout
$max-width: 1000px;
$padding-medium: 15px;
\ No newline at end of file
$separator-medium: 15px;
\ No newline at end of file
{{ define "main" }}
{{ range .Pages }}
<article>
<h1>
<a href="{{.Permalink}}">{{ .Title }}</a>
</h1>
{{ .Content }}
</article>
{{ end }}
{{ range .Pages }}
<main class="main-container">
<article>
<h1>
<a href="{{.Permalink}}">{{ .Title }}</a>
</h1>
{{ .Content }}
</article>
</main>
{{ end }}
{{ end }}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment