diff --git a/assets/scss/_news.scss b/assets/scss/_news.scss index 487460b..d952517 100644 --- a/assets/scss/_news.scss +++ b/assets/scss/_news.scss @@ -1,23 +1,13 @@ .in-toto-news { .in-toto-columns { - display: flex; - align-items: flex-start; margin-bottom: 10px; } .in-toto-column { - display: block; padding-left: 0.75rem; } - .is-2 { - flex: 0 0 16.67%; /* Equivalent to 2 out of 12 columns */ + .news-date { font-weight: bold; - color: var(--bs-tertiary-color); - } - - .in-toto-column-content { - flex: 1; - margin-left: 20px; } } diff --git a/content/en/news.md b/content/en/news.md index 3c72551..ce6e3a0 100644 --- a/content/en/news.md +++ b/content/en/news.md @@ -3,7 +3,14 @@ title: News menu: main: { weight: 80 } outputs: [HTML, RSS] -type: docs --- +{{% blocks/cover title="News" height="auto" %}} + +{{% /blocks/cover %}} + +{{% blocks/section color="white" %}} + {{< news >}} + +{{% /blocks/section %}} diff --git a/data/news.yaml b/data/news.yaml index c8750ca..1aa7b19 100644 --- a/data/news.yaml +++ b/data/news.yaml @@ -1,6 +1,6 @@ - date: 2023-06-05 text: | - in-toto's specification reached v1.0! Find it [here](https://github.com/in-toto/docs/blob/v1.0/in-toto-spec.md). + in-toto's specification [reaches v1.0](https://github.com/in-toto/docs/blob/v1.0/in-toto-spec.md)! - date: 2022-03-10 text: | in-toto has moved from the Cloud Native Computing Foundation (CNCF) Sandbox to the Incubator! Read the full announcement [here](https://www.cncf.io/blog/2022/03/10/supply-chain-security-project-in-toto-moves-to-the-cncf-incubator/). diff --git a/layouts/shortcodes/news.html b/layouts/shortcodes/news.html index b72f24b..c96f933 100644 --- a/layouts/shortcodes/news.html +++ b/layouts/shortcodes/news.html @@ -1,16 +1,12 @@ -{{ $news := site.Data.news }} +{{ $news := site.Data.news -}} +
{{ range $news }} - {{ $date := dateFormat "January 2, 2006" .date }} + {{ $date := dateFormat "January 2, 2006" .date -}}
-
- - {{ $date }} - -
- +
{{ $date }}
- {{ .text | markdownify }} + {{- .text | markdownify -}}
{{ end }}