diff --git a/assets/css/abstracts/_variables.scss b/assets/css/abstracts/_variables.scss index 2ad4ac5..b773860 100644 --- a/assets/css/abstracts/_variables.scss +++ b/assets/css/abstracts/_variables.scss @@ -5,7 +5,7 @@ $light: #fffff0; // Fonts $default-font: "Domitian", "Palatino Linotype", "Book Antiqua", palatino, garamond, serif; -$code-font: "Input Mono", "Lucida Console", monaco, monospace; +$code-font: "Input Mono", "Lucida Console", monaco, "Courier New", monospace; // Breakpoints $breakpoints: ( diff --git a/assets/css/base/_typography.scss b/assets/css/base/_typography.scss index 2528e55..00ce614 100644 --- a/assets/css/base/_typography.scss +++ b/assets/css/base/_typography.scss @@ -56,6 +56,7 @@ h5, h6 { font-weight: normal; margin: 0; + font-variant-numeric: slashed-zero; } a { diff --git a/assets/css/feeds.scss b/assets/css/feeds.scss new file mode 100644 index 0000000..1d9509d --- /dev/null +++ b/assets/css/feeds.scss @@ -0,0 +1,39 @@ +@import "abstracts/variables"; +@import "abstracts/mixins"; + +@import "base/typography"; + +.feed { + padding: 10px 20px; + background-color: $light; + color: $dark; + margin: 0 auto; + max-width: 800px; + font-weight: normal; + text-align: center; + gap: 2em; + display: flex; + flex-direction: column; +} + +.nav__notice { + display: block; + border: 2px solid $dark; + padding: 20px; + width: 80%; + margin-inline: auto; +} + +.summary { + font-style: italic; +} + +.feed__header { + padding-block-end: 1em; + margin-block-end: 1em; + border-block-end: 1px solid $dark; +} + +.feed__item { + margin-block: 1em; +} diff --git a/assets/css/pages/_organisations-list.scss b/assets/css/pages/_organisations-list.scss index 97ed1d3..348c93b 100644 --- a/assets/css/pages/_organisations-list.scss +++ b/assets/css/pages/_organisations-list.scss @@ -1,6 +1,8 @@ .organisations-table { inline-size: 80% !important; + & thead { + z-index: 1; position: sticky; & th { @@ -10,9 +12,15 @@ } } + &__logo { + max-inline-size: 5em; + max-block-size: 5em; + fill: $dark; + } + &__items-icon { padding: 1em; - font-size: 1.4em; + font-size: 0.8em; text-align: center; float: inline-start; padding-inline-end: 1em; diff --git a/assets/css/pages/_single-organisation.scss b/assets/css/pages/_single-organisation.scss index ba22fa2..5182f60 100644 --- a/assets/css/pages/_single-organisation.scss +++ b/assets/css/pages/_single-organisation.scss @@ -102,13 +102,6 @@ } } -.organisation-table { - &__logo { - max-inline-size: 5em; - max-block-size: 5em; - } -} - .timeline__legend { inline-size: fit-content; display: flex; diff --git a/assets/css/pages/_single.scss b/assets/css/pages/_single.scss index 2882684..b788bcf 100644 --- a/assets/css/pages/_single.scss +++ b/assets/css/pages/_single.scss @@ -62,6 +62,11 @@ align-content: center; position: relative; + &--fit { + background-size: contain; + padding: 1em; + } + & .attr { position: absolute; background-color: $dark; diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index e1c2d59..0f9c2eb 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -115,6 +115,12 @@ href="{{ $printStylesheet.Permalink }}" integrity="{{ $printStylesheet.Data.Integrity | html }}" /> + {{- $feedsStylesheet := resources.Get "css/feeds.scss" }} + {{- $feedsStylesheet := $feedsStylesheet | css.Sass }} + {{- if .Param "math" -}} {{- partialCached "math.html" . -}} diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 871e41d..401d5e6 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -11,11 +11,13 @@ {{- $pages = $pages | first $limit -}} {{- end -}} {{- printf "" | safeHTML }} - +{{- printf "" | safeHTML }} + {{ if eq .Title .Site.Title }}{{ .Site.Title | plainify }}{{ else }}{{ with .Title }}{{ . | plainify }} on {{ end }}{{ .Site.Title | plainify }}{{ end }} {{ .Permalink }} Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} + {{ .FirstSection.Title }} {{ with .Site.LanguageCode }}{{.}}{{end}} {{ with .Site.Params.Author.email }}{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}} {{ with .Site.Params.Author.email }}{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}} @@ -26,12 +28,14 @@ {{- end -}} {{ range $pages }} - {{ .Title | plainify }} + {{ .Title }} {{ .Permalink }} + {{ range .GetTerms "categories" }}{{ .Title }}{{ end }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ with .Site.Params.Author.email }}{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} - {{ .Summary | html }} + {{ .Summary | htmlEscape | plainify }} + {{ printf "" .Content | safeHTML }} {{ end }}