From ad2be2b20c337d99ebe6e7d4b8cf6106cfba77df Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Sat, 12 Jun 2021 14:21:59 +0200 Subject: Initial commit --- .gitignore | 2 + config.toml | 16 ++ content/1/index.md | 17 ++ content/_index.md | 4 + post.sh | 45 ++++ sass/_responsive_fonts.sass | 18 ++ sass/_webfonts.sass | 239 +++++++++++++++++++++ sass/style.sass | 172 +++++++++++++++ static/avatars/wolf.jpg | Bin 0 -> 21963 bytes static/fonts/OFL.txt | 93 ++++++++ static/fonts/alegreya-cyrillic-ext.woff2 | Bin 0 -> 15540 bytes static/fonts/alegreya-cyrillic.woff2 | Bin 0 -> 16448 bytes static/fonts/alegreya-greek-ext.woff2 | Bin 0 -> 9092 bytes static/fonts/alegreya-greek.woff2 | Bin 0 -> 11548 bytes static/fonts/alegreya-latin-ext.woff2 | Bin 0 -> 21568 bytes static/fonts/alegreya-latin.woff2 | Bin 0 -> 25672 bytes static/fonts/alegreya-sans-bold-cyrillic-ext.woff2 | Bin 0 -> 11160 bytes static/fonts/alegreya-sans-bold-cyrillic.woff2 | Bin 0 -> 11880 bytes static/fonts/alegreya-sans-bold-greek-ext.woff2 | Bin 0 -> 8572 bytes static/fonts/alegreya-sans-bold-greek.woff2 | Bin 0 -> 8876 bytes static/fonts/alegreya-sans-bold-latin-ext.woff2 | Bin 0 -> 18344 bytes static/fonts/alegreya-sans-bold-latin.woff2 | Bin 0 -> 20460 bytes static/fonts/alegreya-sans-bold-vietnamese.woff2 | Bin 0 -> 7348 bytes .../fonts/alegreya-sans-italic-cyrillic-ext.woff2 | Bin 0 -> 11480 bytes static/fonts/alegreya-sans-italic-cyrillic.woff2 | Bin 0 -> 12488 bytes static/fonts/alegreya-sans-italic-greek-ext.woff2 | Bin 0 -> 8612 bytes static/fonts/alegreya-sans-italic-greek.woff2 | Bin 0 -> 9080 bytes static/fonts/alegreya-sans-italic-latin-ext.woff2 | Bin 0 -> 18488 bytes static/fonts/alegreya-sans-italic-latin.woff2 | Bin 0 -> 21116 bytes static/fonts/alegreya-sans-italic-vietnamese.woff2 | Bin 0 -> 7152 bytes .../fonts/alegreya-sans-regular-cyrillic-ext.woff2 | Bin 0 -> 11140 bytes static/fonts/alegreya-sans-regular-cyrillic.woff2 | Bin 0 -> 11716 bytes static/fonts/alegreya-sans-regular-greek-ext.woff2 | Bin 0 -> 8524 bytes static/fonts/alegreya-sans-regular-greek.woff2 | Bin 0 -> 8864 bytes static/fonts/alegreya-sans-regular-latin-ext.woff2 | Bin 0 -> 17872 bytes static/fonts/alegreya-sans-regular-latin.woff2 | Bin 0 -> 20388 bytes .../fonts/alegreya-sans-regular-vietnamese.woff2 | Bin 0 -> 7176 bytes static/fonts/alegreya-vietnamese.woff2 | Bin 0 -> 7652 bytes static/icon.svg | 18 ++ templates/atom.xml | 33 +++ templates/base.html | 27 +++ templates/index.html | 8 + templates/macros.html | 43 ++++ templates/page.html | 27 +++ templates/shortcodes/img.html | 9 + templates/shortcodes/ref.html | 1 + templates/tags/list.html | 19 ++ templates/tags/single.html | 20 ++ 48 files changed, 811 insertions(+) create mode 100644 .gitignore create mode 100644 config.toml create mode 100644 content/1/index.md create mode 100644 content/_index.md create mode 100644 post.sh create mode 100644 sass/_responsive_fonts.sass create mode 100644 sass/_webfonts.sass create mode 100644 sass/style.sass create mode 100644 static/avatars/wolf.jpg create mode 100755 static/fonts/OFL.txt create mode 100644 static/fonts/alegreya-cyrillic-ext.woff2 create mode 100644 static/fonts/alegreya-cyrillic.woff2 create mode 100644 static/fonts/alegreya-greek-ext.woff2 create mode 100644 static/fonts/alegreya-greek.woff2 create mode 100644 static/fonts/alegreya-latin-ext.woff2 create mode 100644 static/fonts/alegreya-latin.woff2 create mode 100644 static/fonts/alegreya-sans-bold-cyrillic-ext.woff2 create mode 100644 static/fonts/alegreya-sans-bold-cyrillic.woff2 create mode 100644 static/fonts/alegreya-sans-bold-greek-ext.woff2 create mode 100644 static/fonts/alegreya-sans-bold-greek.woff2 create mode 100644 static/fonts/alegreya-sans-bold-latin-ext.woff2 create mode 100644 static/fonts/alegreya-sans-bold-latin.woff2 create mode 100644 static/fonts/alegreya-sans-bold-vietnamese.woff2 create mode 100644 static/fonts/alegreya-sans-italic-cyrillic-ext.woff2 create mode 100644 static/fonts/alegreya-sans-italic-cyrillic.woff2 create mode 100644 static/fonts/alegreya-sans-italic-greek-ext.woff2 create mode 100644 static/fonts/alegreya-sans-italic-greek.woff2 create mode 100644 static/fonts/alegreya-sans-italic-latin-ext.woff2 create mode 100644 static/fonts/alegreya-sans-italic-latin.woff2 create mode 100644 static/fonts/alegreya-sans-italic-vietnamese.woff2 create mode 100644 static/fonts/alegreya-sans-regular-cyrillic-ext.woff2 create mode 100644 static/fonts/alegreya-sans-regular-cyrillic.woff2 create mode 100644 static/fonts/alegreya-sans-regular-greek-ext.woff2 create mode 100644 static/fonts/alegreya-sans-regular-greek.woff2 create mode 100644 static/fonts/alegreya-sans-regular-latin-ext.woff2 create mode 100644 static/fonts/alegreya-sans-regular-latin.woff2 create mode 100644 static/fonts/alegreya-sans-regular-vietnamese.woff2 create mode 100644 static/fonts/alegreya-vietnamese.woff2 create mode 100644 static/icon.svg create mode 100644 templates/atom.xml create mode 100644 templates/base.html create mode 100644 templates/index.html create mode 100644 templates/macros.html create mode 100644 templates/page.html create mode 100644 templates/shortcodes/img.html create mode 100644 templates/shortcodes/ref.html create mode 100644 templates/tags/list.html create mode 100644 templates/tags/single.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..11099f6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/public +/static/processed_images diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..12b77f1 --- /dev/null +++ b/config.toml @@ -0,0 +1,16 @@ +base_url = "https://zunzuncito.oriole.systems" + +title = "zunzuncito" +description = "Wolf's humming microblog" + +compile_sass = true +generate_feed = true +smart_punctuation = true + +taxonomies = [ + { name = "tags", feed = true, paginate_by = 100 }, +] + +[extra] +author = "wolf" +avatar = "/avatars/wolf.jpg" diff --git a/content/1/index.md b/content/1/index.md new file mode 100644 index 0000000..494bbe6 --- /dev/null +++ b/content/1/index.md @@ -0,0 +1,17 @@ ++++ +title = "Launching zunzuncito" +date = 2021-06-12T13:35:46+02:00 + +[taxonomies] +tags = ["meta"] ++++ + +Hi, welcome to my bespoke microblog. + +This is where I'll talk about things that aren't fit for inclusion on [my main +site](https://oriole.systems), like smaller posts, stuff of less relevance or +depth, and anything else for which a proper post would take too much effort. + +Expect this space to be updated very frequently. If you dare, subscribe to [the +feed](/atom.xml). Per-tag feeds are also available on the respective tag +pages. diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..807ce8f --- /dev/null +++ b/content/_index.md @@ -0,0 +1,4 @@ ++++ +paginate_by = 100 +sort_by = "date" ++++ diff --git a/post.sh b/post.sh new file mode 100644 index 0000000..17ad94d --- /dev/null +++ b/post.sh @@ -0,0 +1,45 @@ +#!/bin/sh + +set -e + +find_next_id() { + last_id=$(fd -td '\d+' content/ -x echo '{/}' | sort -nr | head -n1) + printf '%d\n' $((last_id + 1)) +} + +print_front_matter() { + cat <<-EOF + +++ + # title = "" + + [taxonomies] + tags = [] + + [extra] + mentions = [] + +++ + EOF +} + +add_date() { + sed -i "1a date = $(date -Iseconds)" "$1" +} + +cleanup() { + rm -f "$tmpfile" + exit 1 +} + +tmpfile=$(mktemp --suffix=.md) + +trap "{ rm -f $tmpfile; }" EXIT + +print_front_matter > "$tmpfile" +$EDITOR "$tmpfile" + +add_date "$tmpfile" + +dir="content/$(find_next_id)" + +mkdir "$dir/" +cp "$tmpfile" "$dir/index.md" diff --git a/sass/_responsive_fonts.sass b/sass/_responsive_fonts.sass new file mode 100644 index 0000000..12fa50f --- /dev/null +++ b/sass/_responsive_fonts.sass @@ -0,0 +1,18 @@ +@mixin font-size($size) + html + font-size: $size; + +@media (max-width: 480px) + @include font-size(12px) + +@media (min-width: 480px) + @include font-size(13px) + +@media (min-width: 786px) + @include font-size(14px) + +@media (min-width: 992px) + @include font-size(15px) + +@media (min-width: 1200px) + @include font-size(16px) diff --git a/sass/_webfonts.sass b/sass/_webfonts.sass new file mode 100644 index 0000000..546e19a --- /dev/null +++ b/sass/_webfonts.sass @@ -0,0 +1,239 @@ +$cyrillic-ext: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F +$cyrillic: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116 +$greek-ext: U+1F00-1FFF +$greek: U+0370-03FF +$latin-ext: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF +$latin: U+0000-00FF, U+0131, U+0152-0153, U+2190-21FF, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD +$vietnamese: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB + +@font-face + font-family: 'Alegreya' + font-style: normal + font-weight: 400 + font-display: swap + src: local('Alegreya Regular'), local('Alegreya-Regular'), url(fonts/alegreya-cyrillic-ext.woff2) format('woff2') + unicode-range: $cyrillic-ext + +@font-face + font-family: 'Alegreya' + font-style: normal + font-weight: 400 + font-display: swap + src: local('Alegreya Regular'), local('Alegreya-Regular'), url(fonts/alegreya-cyrillic.woff2) format('woff2') + unicode-range: $cyrillic + +@font-face + font-family: 'Alegreya' + font-style: normal + font-weight: 400 + font-display: swap + src: local('Alegreya Regular'), local('Alegreya-Regular'), url(fonts/alegreya-greek-ext.woff2) format('woff2') + unicode-range: $greek-ext + +@font-face + font-family: 'Alegreya' + font-style: normal + font-weight: 400 + font-display: swap + src: local('Alegreya Regular'), local('Alegreya-Regular'), url(fonts/alegreya-greek.woff2) format('woff2') + unicode-range: $greek + +@font-face + font-family: 'Alegreya' + font-style: normal + font-weight: 400 + font-display: swap + src: local('Alegreya Regular'), local('Alegreya-Regular'), url(fonts/alegreya-vietnamese.woff2) format('woff2') + unicode-range: $vietnamese + +@font-face + font-family: 'Alegreya' + font-style: normal + font-weight: 400 + font-display: swap + src: local('Alegreya Regular'), local('Alegreya-Regular'), url(fonts/alegreya-latin-ext.woff2) format('woff2') + unicode-range: $latin-ext + + +@font-face + font-family: 'Alegreya' + font-style: normal + font-weight: 400 + font-display: swap + src: local('Alegreya Regular'), local('Alegreya-Regular'), url(fonts/alegreya-latin.woff2) format('woff2') + unicode-range: $latin + + +@font-face + font-family: 'Alegreya Sans' + font-style: italic + font-weight: 400 + font-display: swap + src: local('Alegreya Sans Italic'), local('AlegreyaSans-Italic'), url(fonts/alegreya-sans-italic-cyrillic-ext.woff2) format('woff2') + unicode-range: $cyrillic-ext + + +@font-face + font-family: 'Alegreya Sans' + font-style: italic + font-weight: 400 + font-display: swap + src: local('Alegreya Sans Italic'), local('AlegreyaSans-Italic'), url(fonts/alegreya-sans-italic-cyrillic.woff2) format('woff2') + unicode-range: $cyrillic + + +@font-face + font-family: 'Alegreya Sans' + font-style: italic + font-weight: 400 + font-display: swap + src: local('Alegreya Sans Italic'), local('AlegreyaSans-Italic'), url(fonts/alegreya-sans-italic-greek-ext.woff2) format('woff2') + unicode-range: $greek-ext + + +@font-face + font-family: 'Alegreya Sans' + font-style: italic + font-weight: 400 + font-display: swap + src: local('Alegreya Sans Italic'), local('AlegreyaSans-Italic'), url(fonts/alegreya-sans-italic-greek.woff2) format('woff2') + unicode-range: $greek + + +@font-face + font-family: 'Alegreya Sans' + font-style: italic + font-weight: 400 + font-display: swap + src: local('Alegreya Sans Italic'), local('AlegreyaSans-Italic'), url(fonts/alegreya-sans-italic-vietnamese.woff2) format('woff2') + unicode-range: $vietnamese + + +@font-face + font-family: 'Alegreya Sans' + font-style: italic + font-weight: 400 + font-display: swap + src: local('Alegreya Sans Italic'), local('AlegreyaSans-Italic'), url(fonts/alegreya-sans-italic-latin-ext.woff2) format('woff2') + unicode-range: $latin-ext + + +@font-face + font-family: 'Alegreya Sans' + font-style: italic + font-weight: 400 + font-display: swap + src: local('Alegreya Sans Italic'), local('AlegreyaSans-Italic'), url(fonts/alegreya-sans-italic-latin.woff2) format('woff2') + unicode-range: $latin + +@font-face + font-family: 'Alegreya Sans' + font-style: normal + font-weight: 400 + font-display: swap + src: local('Alegreya Sans Regular'), local('AlegreyaSans-Regular'), url(fonts/alegreya-sans-regular-cyrillic-ext.woff2) format('woff2') + unicode-range: $cyrillic-ext + +@font-face + font-family: 'Alegreya Sans' + font-style: normal + font-weight: 400 + font-display: swap + src: local('Alegreya Sans Regular'), local('AlegreyaSans-Regular'), url(fonts/alegreya-sans-regular-cyrillic.woff2) format('woff2') + unicode-range: $cyrillic + +@font-face + font-family: 'Alegreya Sans' + font-style: normal + font-weight: 400 + font-display: swap + src: local('Alegreya Sans Regular'), local('AlegreyaSans-Regular'), url(fonts/alegreya-sans-regular-greek-ext.woff2) format('woff2') + unicode-range: $greek-ext + +@font-face + font-family: 'Alegreya Sans' + font-style: normal + font-weight: 400 + font-display: swap + src: local('Alegreya Sans Regular'), local('AlegreyaSans-Regular'), url(fonts/alegreya-sans-regular-greek.woff2) format('woff2') + unicode-range: $greek + +@font-face + font-family: 'Alegreya Sans' + font-style: normal + font-weight: 400 + font-display: swap + src: local('Alegreya Sans Regular'), local('AlegreyaSans-Regular'), url(fonts/alegreya-sans-regular-vietnamese.woff2) format('woff2') + unicode-range: $vietnamese + +@font-face + font-family: 'Alegreya Sans' + font-style: normal + font-weight: 400 + font-display: swap + src: local('Alegreya Sans Regular'), local('AlegreyaSans-Regular'), url(fonts/alegreya-sans-regular-latin-ext.woff2) format('woff2') + unicode-range: $latin-ext + +@font-face + font-family: 'Alegreya Sans' + font-style: normal + font-weight: 400 + font-display: swap + src: local('Alegreya Sans Regular'), local('AlegreyaSans-Regular'), url(fonts/alegreya-sans-regular-latin.woff2) format('woff2') + unicode-range: $latin + +@font-face + font-family: 'Alegreya Sans' + font-style: normal + font-weight: 700 + font-display: swap + src: local('Alegreya Sans Bold'), local('AlegreyaSans-Bold'), url(fonts/alegreya-sans-bold-cyrillic-ext.woff2) format('woff2') + unicode-range: $cyrillic-ext + +@font-face + font-family: 'Alegreya Sans' + font-style: normal + font-weight: 700 + font-display: swap + src: local('Alegreya Sans Bold'), local('AlegreyaSans-Bold'), url(fonts/alegreya-sans-bold-cyrillic.woff2) format('woff2') + unicode-range: $cyrillic + +@font-face + font-family: 'Alegreya Sans' + font-style: normal + font-weight: 700 + font-display: swap + src: local('Alegreya Sans Bold'), local('AlegreyaSans-Bold'), url(fonts/alegreya-sans-bold-greek-ext.woff2) format('woff2') + unicode-range: $greek-ext + +@font-face + font-family: 'Alegreya Sans' + font-style: normal + font-weight: 700 + font-display: swap + src: local('Alegreya Sans Bold'), local('AlegreyaSans-Bold'), url(fonts/alegreya-sans-bold-greek.woff2) format('woff2') + unicode-range: $greek + +@font-face + font-family: 'Alegreya Sans' + font-style: normal + font-weight: 700 + font-display: swap + src: local('Alegreya Sans Bold'), local('AlegreyaSans-Bold'), url(fonts/alegreya-sans-bold-vietnamese.woff2) format('woff2') + unicode-range: $vietnamese + +@font-face + font-family: 'Alegreya Sans' + font-style: normal + font-weight: 700 + font-display: swap + src: local('Alegreya Sans Bold'), local('AlegreyaSans-Bold'), url(fonts/alegreya-sans-bold-latin-ext.woff2) format('woff2') + unicode-range: $latin-ext + +@font-face + font-family: 'Alegreya Sans' + font-style: normal + font-weight: 700 + font-display: swap + src: local('Alegreya Sans Bold'), local('AlegreyaSans-Bold'), url(fonts/alegreya-sans-bold-latin.woff2) format('woff2') + unicode-range: $latin diff --git a/sass/style.sass b/sass/style.sass new file mode 100644 index 0000000..9393dfb --- /dev/null +++ b/sass/style.sass @@ -0,0 +1,172 @@ +@import 'responsive_fonts' +@import 'webfonts' + +// need to prefix :root with a backslash +// https://github.com/sass/libsass/issues/2511 +\:root + --font-sans: Alegreya Sans, sans + --font-serif: Alegreya, serif + --font-mono: Iosevka, Inconsolata, monospace + + --font-size-pre: 85% + + --fg-color: black + --fg-color-mute: #5a5a5a + --fg-href: #0000ee + --fg-href-visited: #551a8b + + --bg-color: white + + --border-color-light: lightgrey + --border-color-dark: darkgrey + +@media (prefers-color-scheme: dark) + \:root + --fg-color: #f0f0f0 + --fg-color-mute: #7a7a7a + --fg-href: #6464ff + --fg-href-visited: #9547dd + + --bg-color: #000000 + +a + text-decoration: none + + &, &:visited + color: var(--fg-href) + + &:hover + text-decoration: underline + +a.tag + &, &:visited + color: var(--fg-color-mute) + + &::before + content: "#" + +a.bold-hover:hover + text-decoration: none + text-shadow: 0px 0px 1px var(--fg-href) + +h2.mentions + margin-bottom: .2rem + +pre + font-family: var(--font-mono) + + margin-left: 1rem + +code + font-size: var(--font-size-pre) + +.mute + color: var(--fg-color-mute) + +.smaller + font-size: smaller + +.bigger + font-size: larger + +.warning + font-weight: bold + color: red + +ul.inline + margin: 0 + padding: 0 + list-style-type: none + display: inline-block + + > li + display: inline-block + + > li:not(:first-of-type) + padding-left: .2em + +div.footnote-definition > + p + font-size: smaller + display: inline-block + margin: 0 .2em + + sup + vertical-align: inherit + + sup::after + content: "." + +html + overflow-y: scroll + +body + font-family: var(--font-sans) + font-size: 1.3rem + + margin: 0 auto + max-width: 720px + padding: 0 1rem + + color: var(--fg-color) + background-color: var(--bg-color) + +main + display: flex + flex-direction: column + +header + margin: 1rem 0 + +header > h1 + margin: 0 + + > a, a:visited + color: inherit + +article + margin: 1rem 0 + padding-left: 78px + position: relative + +article > section.post + > :first-child + margin-top: .5rem + + > p + line-height: 1.3 + + a + text-decoration: underline + + a:visited + color: var(--fg-href-visited) + + img + border-radius: 8px + max-width: 100% + +article > header + margin: 0 + +article > header > img.avatar + position: absolute + left: 0 + width: 64px + + border-radius: 4px + border: 1px solid var(--border-color-light) + +article > header > div.banner + display: flex + justify-content: space-between + border-bottom: 1px dotted var(--border-color-dark) + +nav.pagination + display: flex + + margin: 1rem 0 + padding-top: .5rem + + > a.older + margin-left: auto diff --git a/static/avatars/wolf.jpg b/static/avatars/wolf.jpg new file mode 100644 index 0000000..d91ec8f Binary files /dev/null and b/static/avatars/wolf.jpg differ diff --git a/static/fonts/OFL.txt b/static/fonts/OFL.txt new file mode 100755 index 0000000..28afda7 --- /dev/null +++ b/static/fonts/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2011 The Alegreya Project Authors (https://github.com/huertatipografica/Alegreya) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/static/fonts/alegreya-cyrillic-ext.woff2 b/static/fonts/alegreya-cyrillic-ext.woff2 new file mode 100644 index 0000000..42ac8ae Binary files /dev/null and b/static/fonts/alegreya-cyrillic-ext.woff2 differ diff --git a/static/fonts/alegreya-cyrillic.woff2 b/static/fonts/alegreya-cyrillic.woff2 new file mode 100644 index 0000000..124ffff Binary files /dev/null and b/static/fonts/alegreya-cyrillic.woff2 differ diff --git a/static/fonts/alegreya-greek-ext.woff2 b/static/fonts/alegreya-greek-ext.woff2 new file mode 100644 index 0000000..d5c835d Binary files /dev/null and b/static/fonts/alegreya-greek-ext.woff2 differ diff --git a/static/fonts/alegreya-greek.woff2 b/static/fonts/alegreya-greek.woff2 new file mode 100644 index 0000000..c786e8d Binary files /dev/null and b/static/fonts/alegreya-greek.woff2 differ diff --git a/static/fonts/alegreya-latin-ext.woff2 b/static/fonts/alegreya-latin-ext.woff2 new file mode 100644 index 0000000..a9ef1b2 Binary files /dev/null and b/static/fonts/alegreya-latin-ext.woff2 differ diff --git a/static/fonts/alegreya-latin.woff2 b/static/fonts/alegreya-latin.woff2 new file mode 100644 index 0000000..c47936e Binary files /dev/null and b/static/fonts/alegreya-latin.woff2 differ diff --git a/static/fonts/alegreya-sans-bold-cyrillic-ext.woff2 b/static/fonts/alegreya-sans-bold-cyrillic-ext.woff2 new file mode 100644 index 0000000..43b5ba1 Binary files /dev/null and b/static/fonts/alegreya-sans-bold-cyrillic-ext.woff2 differ diff --git a/static/fonts/alegreya-sans-bold-cyrillic.woff2 b/static/fonts/alegreya-sans-bold-cyrillic.woff2 new file mode 100644 index 0000000..dafc6f8 Binary files /dev/null and b/static/fonts/alegreya-sans-bold-cyrillic.woff2 differ diff --git a/static/fonts/alegreya-sans-bold-greek-ext.woff2 b/static/fonts/alegreya-sans-bold-greek-ext.woff2 new file mode 100644 index 0000000..49c5654 Binary files /dev/null and b/static/fonts/alegreya-sans-bold-greek-ext.woff2 differ diff --git a/static/fonts/alegreya-sans-bold-greek.woff2 b/static/fonts/alegreya-sans-bold-greek.woff2 new file mode 100644 index 0000000..7415e7b Binary files /dev/null and b/static/fonts/alegreya-sans-bold-greek.woff2 differ diff --git a/static/fonts/alegreya-sans-bold-latin-ext.woff2 b/static/fonts/alegreya-sans-bold-latin-ext.woff2 new file mode 100644 index 0000000..1896761 Binary files /dev/null and b/static/fonts/alegreya-sans-bold-latin-ext.woff2 differ diff --git a/static/fonts/alegreya-sans-bold-latin.woff2 b/static/fonts/alegreya-sans-bold-latin.woff2 new file mode 100644 index 0000000..4ea8f12 Binary files /dev/null and b/static/fonts/alegreya-sans-bold-latin.woff2 differ diff --git a/static/fonts/alegreya-sans-bold-vietnamese.woff2 b/static/fonts/alegreya-sans-bold-vietnamese.woff2 new file mode 100644 index 0000000..83a26cb Binary files /dev/null and b/static/fonts/alegreya-sans-bold-vietnamese.woff2 differ diff --git a/static/fonts/alegreya-sans-italic-cyrillic-ext.woff2 b/static/fonts/alegreya-sans-italic-cyrillic-ext.woff2 new file mode 100644 index 0000000..4ead31c Binary files /dev/null and b/static/fonts/alegreya-sans-italic-cyrillic-ext.woff2 differ diff --git a/static/fonts/alegreya-sans-italic-cyrillic.woff2 b/static/fonts/alegreya-sans-italic-cyrillic.woff2 new file mode 100644 index 0000000..3ebce2c Binary files /dev/null and b/static/fonts/alegreya-sans-italic-cyrillic.woff2 differ diff --git a/static/fonts/alegreya-sans-italic-greek-ext.woff2 b/static/fonts/alegreya-sans-italic-greek-ext.woff2 new file mode 100644 index 0000000..4ddc332 Binary files /dev/null and b/static/fonts/alegreya-sans-italic-greek-ext.woff2 differ diff --git a/static/fonts/alegreya-sans-italic-greek.woff2 b/static/fonts/alegreya-sans-italic-greek.woff2 new file mode 100644 index 0000000..c1cebd7 Binary files /dev/null and b/static/fonts/alegreya-sans-italic-greek.woff2 differ diff --git a/static/fonts/alegreya-sans-italic-latin-ext.woff2 b/static/fonts/alegreya-sans-italic-latin-ext.woff2 new file mode 100644 index 0000000..c15ce0e Binary files /dev/null and b/static/fonts/alegreya-sans-italic-latin-ext.woff2 differ diff --git a/static/fonts/alegreya-sans-italic-latin.woff2 b/static/fonts/alegreya-sans-italic-latin.woff2 new file mode 100644 index 0000000..22c7a00 Binary files /dev/null and b/static/fonts/alegreya-sans-italic-latin.woff2 differ diff --git a/static/fonts/alegreya-sans-italic-vietnamese.woff2 b/static/fonts/alegreya-sans-italic-vietnamese.woff2 new file mode 100644 index 0000000..3b31705 Binary files /dev/null and b/static/fonts/alegreya-sans-italic-vietnamese.woff2 differ diff --git a/static/fonts/alegreya-sans-regular-cyrillic-ext.woff2 b/static/fonts/alegreya-sans-regular-cyrillic-ext.woff2 new file mode 100644 index 0000000..f81ae10 Binary files /dev/null and b/static/fonts/alegreya-sans-regular-cyrillic-ext.woff2 differ diff --git a/static/fonts/alegreya-sans-regular-cyrillic.woff2 b/static/fonts/alegreya-sans-regular-cyrillic.woff2 new file mode 100644 index 0000000..3434d6e Binary files /dev/null and b/static/fonts/alegreya-sans-regular-cyrillic.woff2 differ diff --git a/static/fonts/alegreya-sans-regular-greek-ext.woff2 b/static/fonts/alegreya-sans-regular-greek-ext.woff2 new file mode 100644 index 0000000..f85a417 Binary files /dev/null and b/static/fonts/alegreya-sans-regular-greek-ext.woff2 differ diff --git a/static/fonts/alegreya-sans-regular-greek.woff2 b/static/fonts/alegreya-sans-regular-greek.woff2 new file mode 100644 index 0000000..19ba950 Binary files /dev/null and b/static/fonts/alegreya-sans-regular-greek.woff2 differ diff --git a/static/fonts/alegreya-sans-regular-latin-ext.woff2 b/static/fonts/alegreya-sans-regular-latin-ext.woff2 new file mode 100644 index 0000000..cc81c01 Binary files /dev/null and b/static/fonts/alegreya-sans-regular-latin-ext.woff2 differ diff --git a/static/fonts/alegreya-sans-regular-latin.woff2 b/static/fonts/alegreya-sans-regular-latin.woff2 new file mode 100644 index 0000000..cef491f Binary files /dev/null and b/static/fonts/alegreya-sans-regular-latin.woff2 differ diff --git a/static/fonts/alegreya-sans-regular-vietnamese.woff2 b/static/fonts/alegreya-sans-regular-vietnamese.woff2 new file mode 100644 index 0000000..93ef977 Binary files /dev/null and b/static/fonts/alegreya-sans-regular-vietnamese.woff2 differ diff --git a/static/fonts/alegreya-vietnamese.woff2 b/static/fonts/alegreya-vietnamese.woff2 new file mode 100644 index 0000000..061d8ec Binary files /dev/null and b/static/fonts/alegreya-vietnamese.woff2 differ diff --git a/static/icon.svg b/static/icon.svg new file mode 100644 index 0000000..3eff1ff --- /dev/null +++ b/static/icon.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/templates/atom.xml b/templates/atom.xml new file mode 100644 index 0000000..ab0012c --- /dev/null +++ b/templates/atom.xml @@ -0,0 +1,33 @@ + + + {{ config.title }} + {%- if term %} - {{ term.name }} + {%- elif section.title %} - {{ section.title }} + {%- endif -%} + + {%- if config.description %} + {{ config.description }} + {%- endif %} + + + Zola + {{ last_updated | date(format="%+") }} + {{ feed_url | safe }} + {%- for page in pages %} + + {{ config.extra.author }} + {{ page.title | default(value="Post № " ~ page.slug)}} + {{ page.date | date(format="%+") }} + {{ page.updated | default(value=page.date) | date(format="%+") }} + + {{ page.permalink | safe }} + {{ page.content }} + + {%- endfor %} + diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..edce080 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,27 @@ +{% import "macros.html" as macros -%} + + + + {{ config.title ~ " · " }}{% block title %}{{ config.description }}{% endblock %} + + + + {%- block additional_feeds %}{% endblock %} + + + + +
+
+

{{ config.title }}

+ +
+ {%- block content %}{% endblock -%} +
+ + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..87220f7 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} + +{%- block content %} +{%- for post in paginator.pages %} + {{ macros::render_post(post=post) }} +{%- endfor -%} +{{ macros::render_pagination(paginator=paginator) }} +{%- endblock content %} diff --git a/templates/macros.html b/templates/macros.html new file mode 100644 index 0000000..9f0f792 --- /dev/null +++ b/templates/macros.html @@ -0,0 +1,43 @@ +{% macro render_post(post, mention=false, in_feed=true) -%} +{% if mention -%} +
+{% else -%} +
+{% endif -%} +
+ {{ config.extra.author }} + +
+
{{ post.content | safe }}
+
+{% endmacro render_post -%} + +{%- macro render_pagination(paginator) %} +{%- if paginator.number_pagers > 1 %} + +{%- endif %} +{%- endmacro render_pagination -%} + +{%- macro render_tags(tags) %} +{%- for tag in tags %} +
  • {{ tag }}
  • +{%- endfor %} +{%- endmacro render_tags %} diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..8703c7c --- /dev/null +++ b/templates/page.html @@ -0,0 +1,27 @@ +{% extends "base.html" -%} + +{%- block title -%} +{%- if page.title -%} +{{ page.title }} +{%- else -%} +post № {{ page.slug }} +{%- endif -%} +{%- endblock title -%} + +{%- block description %} +post № {{ page.slug }} +{%- if page.title -%} +· {{ page.title }} +{%- endif -%} +{%- endblock description %} + +{%- block content %} +{{ macros::render_post(post=page, in_feed=false) }} +{%- if "mentions" in page.extra and page.extra.mentions | length > 0 -%} +

    Mentioned posts

    +{%- for ref in page.extra.mentions %} +{%- set page = get_page(path=ref ~ "/index.md") -%} +{{ macros::render_post(post=page, mention=true) }} +{%- endfor %} +{%- endif %} +{%- endblock content %} diff --git a/templates/shortcodes/img.html b/templates/shortcodes/img.html new file mode 100644 index 0000000..13d38d6 --- /dev/null +++ b/templates/shortcodes/img.html @@ -0,0 +1,9 @@ +{% set url = page.path ~ path | trim_start_matches(pat="/") -%} +
    + + {{ alt }} + + {% if caption -%} +
    {{ caption }}
    + {% endif -%} +
    diff --git a/templates/shortcodes/ref.html b/templates/shortcodes/ref.html new file mode 100644 index 0000000..6708552 --- /dev/null +++ b/templates/shortcodes/ref.html @@ -0,0 +1 @@ +{{ text | default(value="№ " ~ id) }} diff --git a/templates/tags/list.html b/templates/tags/list.html new file mode 100644 index 0000000..0cab254 --- /dev/null +++ b/templates/tags/list.html @@ -0,0 +1,19 @@ +{% extends "base.html" %} + +{%- block title -%} +all tags +{%- endblock title -%} + +{%- block description %} +all tags +{%- endblock description %} + +{% block content %} + +{% endblock content %} diff --git a/templates/tags/single.html b/templates/tags/single.html new file mode 100644 index 0000000..2238061 --- /dev/null +++ b/templates/tags/single.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} + +{%- block additional_feeds %} + +{%- endblock %} + +{%- block title -%} +posts tagged with #{{ term.name }} +{%- endblock title -%} + +{%- block description %} +posts tagged with #{{ term.name }} · feed +{%- endblock description %} + +{%- block content %} +{%- for post in paginator.pages %} + {{ macros::render_post(post=post) }} +{%- endfor %} +{{ macros::render_pagination(paginator=paginator) }} +{%- endblock content %} -- cgit v1.2.3-2-gb3c3