diff --git a/layouts/index.html b/layouts/index.html index 350a0615..820bdc1b 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,9 @@ {{ define "main" }}
-

Spreading the hacker culture

+
+

Spreading the hacker culture

+

What we do

    @@ -17,12 +19,12 @@

    What we do

-
-

Upcoming events

+
+

Upcoming events

-
-

Friday Hacks

+
+

Friday Hacks

  • Supported by NEC and IDA. @@ -60,8 +62,8 @@

    {{ $topic.title }}

-
-

Hackerschool

+
+

Hackerschool

    {{ range $index, $event := $.Site.Data.hacker_school.events }} @@ -77,8 +79,9 @@

    {{ $event.topic }}

-
-

Articles

+
+

Articles

+ Read more
    {{ range first 8 .Data.Pages }} @@ -88,7 +91,7 @@

    Articles

    {{ .LinkTitle }}

    {{ .Date.Format "Mon, Jan 2" }} • {{ .ReadingTime }} min read
- {{ .Summary | truncate 150 }} Read more + {{ .Summary | truncate 150 }} more {{ end }} diff --git a/layouts/section/archive.html b/layouts/section/archive.html index 4354cdf1..ed6b33f7 100644 --- a/layouts/section/archive.html +++ b/layouts/section/archive.html @@ -1,13 +1,13 @@ {{ define "main" }}
-
- {{ $paginator := .Paginate (where .Site.Pages "Type" "post") }} +
+ {{ $paginator := .Paginate (where .Site.Pages "Type" "post") 15 }} {{ range $paginator.Pages.GroupByDate "2006"}} -

{{ .Key }}

-
    +

    {{ .Key }}

    +
      {{ range .Pages }} -
    • +
    • {{ .LinkTitle }}

      diff --git a/static/scss/archive.scss b/static/scss/archive.scss new file mode 100644 index 00000000..55ac694d --- /dev/null +++ b/static/scss/archive.scss @@ -0,0 +1,9 @@ +.archive { + .archive-list { + @extend .clear-list; + } + + .posts-title { + font-weight: 500; + } +} diff --git a/static/scss/front-page.scss b/static/scss/front-page.scss index fdd6dc06..1dc2fca6 100644 --- a/static/scss/front-page.scss +++ b/static/scss/front-page.scss @@ -1,10 +1,6 @@ $font-small: 0.9rem; .front-page { - h1 { - border-bottom: 2px dotted $highlight-orange; - } - h3, h4, h5, @@ -23,7 +19,17 @@ $font-small: 0.9rem; } .section { - margin-bottom: 1.5rem; + .section-header { + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 0.75rem; + border-bottom: 2px dotted $highlight-orange; + } + + .section-title { + margin-bottom: 0; + } } } @@ -46,8 +52,8 @@ $font-small: 0.9rem; } } -.front { - .front-header { +.front-header { + .front-title { margin-bottom: 0; } .front-list { diff --git a/static/scss/main.scss b/static/scss/main.scss index c2aeca3e..99020c96 100644 --- a/static/scss/main.scss +++ b/static/scss/main.scss @@ -64,3 +64,5 @@ h6 { @import "./section.scss"; @import "./footer.scss"; @import "./front-page.scss"; +@import "./archive.scss"; +@import "./paginate.scss"; diff --git a/static/scss/paginate.scss b/static/scss/paginate.scss index f4553a64..c7f01537 100644 --- a/static/scss/paginate.scss +++ b/static/scss/paginate.scss @@ -1,5 +1,3 @@ -// Styles - .pagination { display: flex; // 1-2: Disable browser default list styles