diff --git a/themes/papercut/.gitignore b/themes/papercut/.gitignore index 2a6f4a8..4a2f7f1 100644 --- a/themes/papercut/.gitignore +++ b/themes/papercut/.gitignore @@ -1,2 +1,3 @@ static/css/bootstrap*.css static/js/bootstrap*.js +static/fonts/*.woff* diff --git a/themes/papercut/layouts/_default/list.html b/themes/papercut/layouts/_default/list.html index f7ecd5b..79c82b5 100644 --- a/themes/papercut/layouts/_default/list.html +++ b/themes/papercut/layouts/_default/list.html @@ -2,12 +2,14 @@
+
{{ range .Pages.ByPublishDate.Reverse }} -

- {{ .PublishDate.Format "2006-01-02" }} +

+ {{ .Title }} -

+
{{ end }} +
diff --git a/themes/papercut/static/css/styles.css b/themes/papercut/static/css/styles.css index 9980f51..db9b70c 100644 --- a/themes/papercut/static/css/styles.css +++ b/themes/papercut/static/css/styles.css @@ -1,3 +1,56 @@ +@font-face { + font-family: 'Ubuntu Mono'; + src: url('/fonts/UbuntuMono-Regular.woff2') format('woff2'), + url('/fonts/UbuntuMono-Regular.woff') format('woff'); + font-weight: normal; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Ubuntu'; + src: url('/fonts/Ubuntu-Bold.woff2') format('woff2'), + url('/fonts/Ubuntu-Bold.woff') format('woff'); + font-weight: bold; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Ubuntu'; + src: url('/fonts/Ubuntu-BoldItalic.woff2') format('woff2'), + url('/fonts/Ubuntu-BoldItalic.woff') format('woff'); + font-weight: bold; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: 'Ubuntu'; + src: url('/fonts/Ubuntu-Italic.woff2') format('woff2'), + url('/fonts/Ubuntu-Italic.woff') format('woff'); + font-weight: normal; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: 'Ubuntu'; + src: url('/fonts/Ubuntu.woff2') format('woff2'), + url('/fonts/Ubuntu.woff') format('woff'); + font-weight: normal; + font-style: normal; + font-display: swap; +} + +body { + font-family: 'Ubuntu', sans-serif; +} + +.font-monospace { + font-family: 'Ubuntu Mono', monospace !important; +} + img { display: block; border-radius: 8px; diff --git a/themes/papercut/theme.toml b/themes/papercut/theme.toml index 7401bdc..dfe5f89 100644 --- a/themes/papercut/theme.toml +++ b/themes/papercut/theme.toml @@ -1,5 +1,5 @@ name = "Papercut" -license = "The Unlicense +license = "The Unlicense" description = "" homepage = "http://example.com/" tags = []