├── theme.toml ├── .gitignore ├── icon.jpg ├── .gitattributes ├── static ├── fonts │ ├── GT-W-Bold.woff │ ├── GT-W-Bold.woff2 │ ├── GT-W-Regular.woff │ ├── GT-W-Regular.woff2 │ ├── GT-W-Bold-Oblique.woff │ ├── GT-W-Bold-Oblique.woff2 │ ├── GT-W-Regular-Oblique.woff │ └── GT-W-Regular-Oblique.woff2 ├── humans.txt ├── js │ ├── scroll-to-top.js │ ├── menu.js │ ├── copybutton.js │ └── search.js └── css │ ├── fonts.css │ ├── photos-grid.css │ ├── photos-masonry.css │ └── main.css ├── layouts ├── shortcodes │ ├── gist.html │ └── search.html ├── _default │ ├── single.html │ ├── list.photoshtml.html │ ├── baseof.html │ ├── list.archivehtml.html │ └── list.html ├── partials │ ├── pagination.html │ ├── scroll-to-top.html │ ├── footer.html │ ├── header.html │ ├── post-content.html │ ├── head.html │ ├── photos-masonry.html │ └── photos-grid.html ├── redirect │ └── single.html ├── opengraph.html ├── list.archivejson.json ├── section │ └── replies.html ├── newsletter.html ├── index.html └── post │ └── single.html ├── i18n ├── zh-TW.json ├── en.json ├── sv.json ├── fi.json ├── uk.json ├── ru.json ├── es.json ├── de.json ├── pl.json ├── pt.json ├── fr.json └── it.json ├── README.md ├── plugin.json └── LICENSE /theme.toml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .nova/ 3 | -------------------------------------------------------------------------------- /icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jimmitchell/mnml/HEAD/icon.jpg -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /static/fonts/GT-W-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jimmitchell/mnml/HEAD/static/fonts/GT-W-Bold.woff -------------------------------------------------------------------------------- /static/fonts/GT-W-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jimmitchell/mnml/HEAD/static/fonts/GT-W-Bold.woff2 -------------------------------------------------------------------------------- /static/fonts/GT-W-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jimmitchell/mnml/HEAD/static/fonts/GT-W-Regular.woff -------------------------------------------------------------------------------- /static/fonts/GT-W-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jimmitchell/mnml/HEAD/static/fonts/GT-W-Regular.woff2 -------------------------------------------------------------------------------- /static/fonts/GT-W-Bold-Oblique.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jimmitchell/mnml/HEAD/static/fonts/GT-W-Bold-Oblique.woff -------------------------------------------------------------------------------- /static/fonts/GT-W-Bold-Oblique.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jimmitchell/mnml/HEAD/static/fonts/GT-W-Bold-Oblique.woff2 -------------------------------------------------------------------------------- /static/fonts/GT-W-Regular-Oblique.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jimmitchell/mnml/HEAD/static/fonts/GT-W-Regular-Oblique.woff -------------------------------------------------------------------------------- /static/fonts/GT-W-Regular-Oblique.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jimmitchell/mnml/HEAD/static/fonts/GT-W-Regular-Oblique.woff2 -------------------------------------------------------------------------------- /layouts/shortcodes/gist.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/_default/single.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 |
3 |
4 | {{- if .Title }} 5 |

{{ .Title | safeHTML }}

6 | {{- end }} 7 | {{ .Content }} 8 |
9 |
10 | {{ end }} -------------------------------------------------------------------------------- /i18n/zh-TW.json: -------------------------------------------------------------------------------- 1 | { 2 | "Continue reading": "繼續閱讀", 3 | "Older": "看舊文章", 4 | "Newer": "看新文章", 5 | "Hosted by": "代管:", 6 | "Powered by": "提供:", 7 | "Designed by": "設計:", 8 | "Type and hit return": "打字後按下輸入鍵", 9 | "min read": "分閱讀", 10 | "Subscribe via": "訂閱" 11 | } 12 | -------------------------------------------------------------------------------- /layouts/partials/pagination.html: -------------------------------------------------------------------------------- 1 | {{- $pag := $.Paginator }} 2 | -------------------------------------------------------------------------------- /i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "Continue reading": "Continue reading", 3 | "Older": "Older", 4 | "Newer": "Newer", 5 | "Hosted by": "Hosted by", 6 | "Powered by": "Powered by", 7 | "Designed by": "Designed by", 8 | "Type and hit return": "Type and hit return", 9 | "min read": "min read", 10 | "Subscribe via": "Subscribe via" 11 | } 12 | -------------------------------------------------------------------------------- /i18n/sv.json: -------------------------------------------------------------------------------- 1 | { 2 | "Continue reading": "Läs vidare", 3 | "Older": "Äldre", 4 | "Newer": "Nyare", 5 | "Hosted by": "Drivs med", 6 | "Powered by": "Skapad med", 7 | "Designed by": "Designad av", 8 | "Type and hit return": "Skriv och tryck på retur", 9 | "min read": "min läsning", 10 | "Subscribe via": "Prenumerera via" 11 | } 12 | -------------------------------------------------------------------------------- /i18n/fi.json: -------------------------------------------------------------------------------- 1 | { 2 | "Continue reading": "Jatkaa lukemista", 3 | "Older": "Vanhemmat", 4 | "Newer": "Uudempi", 5 | "Hosted by": "Isännöimä", 6 | "Powered by": "Moottoroidut", 7 | "Designed by": "Alentava", 8 | "Type and hit return": "Kirjoita ja paina return", 9 | "min read": "minuutti aikaa lukea", 10 | "Subscribe via": "Tilaa" 11 | } 12 | -------------------------------------------------------------------------------- /i18n/uk.json: -------------------------------------------------------------------------------- 1 | { 2 | "Continue reading": "Читати далі", 3 | "Older": "Попередні", 4 | "Newer": "Наступні", 5 | "Hosted by": "Хостинг від", 6 | "Powered by": "Працює на", 7 | "Designed by": "Дизайн від", 8 | "Type and hit return": "Введіть текст і натисніть Enter", 9 | "min read": "хв читання", 10 | "Subscribe via": "Підписатися через" 11 | } -------------------------------------------------------------------------------- /i18n/ru.json: -------------------------------------------------------------------------------- 1 | { 2 | "Continue reading": "Читать дальше", 3 | "Older": "Предыдущие", 4 | "Newer": "Следующие", 5 | "Hosted by": "Хостинг от", 6 | "Powered by": "Работает на", 7 | "Designed by": "Дизайн от", 8 | "Type and hit return": "Введите текст и нажмите Enter", 9 | "min read": "мин чтения", 10 | "Subscribe via": "Подписаться через" 11 | } -------------------------------------------------------------------------------- /i18n/es.json: -------------------------------------------------------------------------------- 1 | { 2 | "Continue reading": "Continuar leyendo", 3 | "Older": "Anterior", 4 | "Newer": "Nuevo", 5 | "Hosted by": "Alojado por", 6 | "Powered by": "Energizado por", 7 | "Designed by": "Diseñada por", 8 | "Type and hit return": "Escriba y pulse Intro", 9 | "min read": "minuto de lectura", 10 | "Subscribe via": "Suscribirse por" 11 | } 12 | -------------------------------------------------------------------------------- /layouts/partials/scroll-to-top.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /i18n/de.json: -------------------------------------------------------------------------------- 1 | { 2 | "Continue reading": "Weiterlesen", 3 | "Older": "Älter", 4 | "Newer": "Neuer", 5 | "Hosted by": "Veranstaltet von", 6 | "Powered by": "Unterstützt von", 7 | "Designed by": "Entworfen von", 8 | "Type and hit return": "Tippen und Return drücken", 9 | "min read": "minuten zu lesen", 10 | "Subscribe via": "Abonnieren über" 11 | } 12 | -------------------------------------------------------------------------------- /i18n/pl.json: -------------------------------------------------------------------------------- 1 | { 2 | "Continue reading": "Czytaj dalej", 3 | "Older": "Starsze", 4 | "Newer": "Nowsze", 5 | "Hosted by": "Hostowany przez", 6 | "Powered by": "Obsługiwany przez", 7 | "Designed by": "Zaprojektowany przez", 8 | "Type and hit return": "Wpisz i naciśnij enter", 9 | "min read": "min. czytania", 10 | "Subscribe via": "Subskrybuj przez" 11 | } -------------------------------------------------------------------------------- /i18n/pt.json: -------------------------------------------------------------------------------- 1 | { 2 | "Continue reading": "Continue lendo", 3 | "Older": "Mais velho", 4 | "Newer": "Mais recente", 5 | "Hosted by": "Hospedado por", 6 | "Powered by": "Distribuído por", 7 | "Designed by": "Projetado por", 8 | "Type and hit return": "Digite e prima return", 9 | "min read": "minuto para ler", 10 | "Subscribe via": "Subscrever por" 11 | } 12 | -------------------------------------------------------------------------------- /i18n/fr.json: -------------------------------------------------------------------------------- 1 | { 2 | "Continue reading": "Continuer à lire", 3 | "Older": "Plus âgée", 4 | "Newer": "Plus récent", 5 | "Hosted by": "Hébergé par", 6 | "Powered by": "Alimenté par", 7 | "Designed by": "Conçu par", 8 | "Type and hit return": "Tapez et appuyez sur la touche retour", 9 | "min read": "minute de lecture", 10 | "Subscribe via": "S'abonner via" 11 | } 12 | -------------------------------------------------------------------------------- /i18n/it.json: -------------------------------------------------------------------------------- 1 | { 2 | "Continue reading": "Continua a leggere", 3 | "Older": "Più vecchio", 4 | "Newer": "Più nuovo", 5 | "Hosted by": "Ospitato da", 6 | "Powered by": "Offerto da", 7 | "Designed by": "Progettato da", 8 | "Type and hit return": "Digitare e premere il tasto return", 9 | "min read": "minuto per leggere", 10 | "Subscribe via": "Iscriviti via" 11 | } 12 | -------------------------------------------------------------------------------- /layouts/redirect/single.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /layouts/_default/list.photoshtml.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 |
3 |
4 |

{{ .Title | safeHTML }}

5 | {{- if .Site.Params.masonry_layout }} 6 | {{ partial "photos-masonry.html" . }} 7 | {{- else }} 8 | {{ partial "photos-grid.html" . }} 9 | {{- end }} 10 |
11 |
12 | {{ end }} -------------------------------------------------------------------------------- /layouts/opengraph.html: -------------------------------------------------------------------------------- 1 |
2 |

{{ or .Title .Site.Title }}

3 |

{{ or .Summary .Content }}

4 |
-------------------------------------------------------------------------------- /static/humans.txt: -------------------------------------------------------------------------------- 1 | /* DESIGNER */ 2 | 3 | Name: Jim Mitchell 4 | Web: https://jimmitchell.org 5 | Contact: hello [at] jimmitchell [dot] org 6 | Micro.blog: @jim 7 | Mastodon: https://micro.blog/jim?remote_follow=1 8 | Github: https://github.com/jimmitchell 9 | From: Huntington Beach, CA, USA 10 | 11 | /* SITE */ 12 | 13 | Standards: HTML5, CSS3 14 | Software: Hugo, Git, Nova, Pixelmator Pro 15 | Design Repo: https://github.com/jimmitchell/mnml 16 | Hosted by: Micro.blog 17 | -------------------------------------------------------------------------------- /static/js/scroll-to-top.js: -------------------------------------------------------------------------------- 1 | let mybutton = document.getElementById("to-top"); 2 | window.onscroll = function() {scrollFunction()}; 3 | 4 | function scrollFunction() { 5 | if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) { 6 | mybutton.style.display = "block"; 7 | } else { 8 | mybutton.style.display = "none"; 9 | } 10 | } 11 | 12 | function topFunction() { 13 | document.body.scrollTop = 0; 14 | document.documentElement.scrollTop = 0; 15 | } 16 | -------------------------------------------------------------------------------- /layouts/shortcodes/search.html: -------------------------------------------------------------------------------- 1 |
2 | 9 |
10 |
12 |
13 | -------------------------------------------------------------------------------- /static/js/menu.js: -------------------------------------------------------------------------------- 1 | const hamburger = document.querySelector(".hamburger"); 2 | const navMenu = document.querySelector(".nav-menu"); 3 | const navLink = document.querySelectorAll(".nav-link"); 4 | 5 | hamburger.addEventListener("click", mobileMenu); 6 | navLink.forEach(n => n.addEventListener("click", closeMenu)); 7 | 8 | function mobileMenu() { 9 | hamburger.classList.toggle("active"); 10 | navMenu.classList.toggle("active"); 11 | } 12 | 13 | function closeMenu() { 14 | hamburger.classList.remove("active"); 15 | navMenu.classList.remove("active"); 16 | } -------------------------------------------------------------------------------- /static/js/copybutton.js: -------------------------------------------------------------------------------- 1 | (function () { 2 | function addCopyButtonToCodeBlocks() { 3 | var snippets = document.getElementsByClassName('highlight'); 4 | for (var i = 0; i < snippets.length; i++) { 5 | var button = document.createElement("button"); 6 | button.innerText = "Copy"; 7 | button.addEventListener("click", function () { 8 | var code = this.previousElementSibling.innerText; 9 | navigator.clipboard.writeText(code); 10 | this.innerText = 'Copied!'; 11 | setTimeout(() => { this.innerText = 'Copy'; }, 1000); 12 | }); 13 | snippets[i].appendChild(button); 14 | } 15 | } 16 | document.addEventListener("DOMContentLoaded", addCopyButtonToCodeBlocks); 17 | })(); 18 | -------------------------------------------------------------------------------- /layouts/list.archivejson.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "https://jsonfeed.org/version/1", 3 | "title": {{ .Site.Title | jsonify }}, 4 | "icon": "{{ .Site.Author.avatar }}", 5 | "home_page_url": "{{ .Site.BaseURL }}", 6 | "feed_url": "{{ .Site.BaseURL }}photos/index.json", 7 | "items": [ 8 | {{- $list := (where .Site.Pages "Type" "post") -}} 9 | {{- $len := (len $list) -}} 10 | {{ range $index, $value := $list }} 11 | { 12 | "id": "{{ .Permalink }}", 13 | "title": {{ .Title | jsonify }}, 14 | "content_text": {{ .Plain | jsonify }}, 15 | "date_published": "{{ .Date.Format "2006-01-02T15:04:05-07:00" }}", 16 | "url": "{{ .Permalink }}" 17 | } 18 | {{- if ne (add $index 1) $len -}},{{- end -}} 19 | {{ end }} 20 | ] 21 | } -------------------------------------------------------------------------------- /layouts/_default/baseof.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | {{ partial "head.html" . }} 4 | 5 | {{ partial "header.html" . }} 6 | {{ block "main" . }}{{ end }} 7 | {{ partial "footer.html" . }} 8 | 9 | 10 | {{- if .Site.Params.enable_code_copy_button }} 11 | 12 | {{- end }} 13 | {{- range .Site.Params.plugins_js -}} 14 | 15 | {{- end -}} 16 | 17 | 18 | -------------------------------------------------------------------------------- /static/css/fonts.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: "GTW"; 3 | font-display: swap; 4 | src: url('../fonts/GT-W-Regular.woff2') format('woff2'), url('../fonts/GT-W-Regular.woff') format('woff'); 5 | font-weight: 400; 6 | } 7 | @font-face { 8 | font-family: "GTW"; 9 | font-display: swap; 10 | src: url('../fonts/GT-W-Regular-Oblique.woff2') format('woff2'), url('../fonts/GT-W-Regular-Oblique.woff') format('woff'); 11 | font-style: italic; 12 | font-weight: 400; 13 | } 14 | @font-face { 15 | font-family: "GTW"; 16 | font-display: swap; 17 | src: url('../fonts/GT-W-Bold.woff2') format('woff2'), url('../fonts/GT-W-Bold.woff') format('woff'); 18 | font-weight: 700; 19 | } 20 | @font-face { 21 | font-family: "GTW"; 22 | font-display: swap; 23 | src: url('../fonts/GT-W-Bold-Oblique.woff2') format('woff2'), url('../fonts/GT-W-Bold-Oblique.woff') format('woff'); 24 | font-style: italic; 25 | font-weight: 700; 26 | } -------------------------------------------------------------------------------- /layouts/partials/footer.html: -------------------------------------------------------------------------------- 1 | 14 | {{ partial "scroll-to-top.html" .}} -------------------------------------------------------------------------------- /layouts/partials/header.html: -------------------------------------------------------------------------------- 1 |
2 | 24 |
25 | -------------------------------------------------------------------------------- /layouts/_default/list.archivehtml.html: -------------------------------------------------------------------------------- 1 | {{- define "main" }} 2 |
3 |
4 |

{{ .Title | safeHTML }}

5 | {{- $categories := .Site.Taxonomies.categories.Alphabetical }} 6 | {{- $category_count := .Site.Params.show_category_count }} 7 | {{- if and (.Site.Params.show_categories) (gt (len $categories) 0) }} 8 |
9 |
10 | {{ range $categories }} 11 | 12 | {{ end }} 13 |
14 |
15 | {{- end }} 16 | {{- $posts := where .Site.RegularPages "Type" "post" }} 17 | {{- $grouped := $posts.GroupByDate "2006-01" }} 18 | {{- range $grouped }} 19 |

{{ (.Key | printf "%s-01") | dateFormat "January 2006" }}

20 | {{- range .Pages }} 21 | 24 |
25 |

{{- if .Title }}{{ .Title | safeHTML }}: {{- end }}{{ .Summary | safeHTML | truncate 300 }}

26 |
27 | {{- end }} 28 | {{- end }} 29 |
30 |
31 | {{- end }} -------------------------------------------------------------------------------- /static/css/photos-grid.css: -------------------------------------------------------------------------------- 1 | main.photos { 2 | margin: 0 auto; 3 | max-width: var(--site-width); 4 | } 5 | 6 | main.photos-wide { 7 | margin: 0 auto; 8 | max-width: var(--header-width); 9 | } 10 | 11 | ul.grid * { 12 | box-sizing: border-box; 13 | margin: 0; 14 | padding: 0; 15 | } 16 | 17 | ul.grid { 18 | display: grid; 19 | gap: 1rem; 20 | grid-template-columns: repeat(3, 1fr); 21 | list-style: none; 22 | margin: 0; 23 | padding: 0; 24 | } 25 | 26 | ul.grid li { 27 | background: var(--accent-1); 28 | border-radius: 1rem; 29 | margin: 0; 30 | overflow: hidden; 31 | padding: 0; 32 | position: relative; 33 | } 34 | 35 | ul.grid li::before { 36 | color: var(--accent-3); 37 | content: "Loading..."; 38 | left: 50%; 39 | position: absolute; 40 | top: 50%; 41 | transform: translate(-50%, -50%); 42 | } 43 | 44 | ul.grid li.loaded::before { 45 | display: none; 46 | } 47 | 48 | ul.grid img { 49 | display: block; 50 | object-fit: cover; 51 | opacity: 0; 52 | transition: height 0.2s ease; 53 | transition: opacity 0.3s ease; 54 | width: 100%; 55 | } 56 | 57 | ul.grid img.visible { 58 | opacity: 1 !important; 59 | } 60 | 61 | ul.grid img:hover { 62 | -moz-filter: brightness(70%); 63 | -webkit-filter: brightness(70%); 64 | filter: brightness(70%); 65 | transition: ease-in-out 0.25s; 66 | } 67 | 68 | @media (max-width: 600px) { 69 | ul.grid { 70 | grid-template-columns: repeat(2, 1fr); 71 | } 72 | } 73 | 74 | @media (max-width: 375px) { 75 | ul.grid { 76 | grid-template-columns: repeat(1, 1fr); 77 | } 78 | } -------------------------------------------------------------------------------- /layouts/section/replies.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 |
3 |

{{ .Title | safeHTML }}

4 | {{ if .Site.Params.paginate_replies }} 5 | {{ $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "reply") }} 6 | {{ $list := $paginator.Pages }} 7 | {{ range $list }} 8 |
9 | {{ if .Title }} 10 |

{{ .Title | safeHTML }} →

11 | 12 | {{ else }} 13 | 14 | {{ end }} 15 | {{ .Content }} 16 |
17 | {{ end }} 18 | {{ else }} 19 | {{ $list := first 50 (where .Data.Pages.ByDate.Reverse "Type" "reply") }} 20 | {{ range $list }} 21 |
22 | {{ if .Title }} 23 |

{{ .Title | safeHTML }}

24 | 25 | {{ else }} 26 | 27 | {{ end }} 28 | {{ .Content }} 29 |
30 | {{ end }} 31 | {{ end }} 32 |
33 | {{ end }} 34 | -------------------------------------------------------------------------------- /static/css/photos-masonry.css: -------------------------------------------------------------------------------- 1 | main.photos { 2 | margin: 0 auto; 3 | max-width: var(--site-width); 4 | } 5 | 6 | main.photos-wide { 7 | margin: 0 auto; 8 | max-width: var(--header-width); 9 | } 10 | 11 | .masonry-grid * { 12 | box-sizing: border-box; 13 | margin: 0; 14 | padding: 0; 15 | } 16 | 17 | main.photos .masonry-grid, 18 | main.photos-wide .masonry-grid { 19 | column-count: 3; 20 | column-gap: 1rem; 21 | list-style: none; 22 | margin: 0; 23 | padding: 0; 24 | } 25 | 26 | main.photos-wide .masonry-grid { 27 | column-count: 4; 28 | } 29 | 30 | .masonry-grid li { 31 | background: var(--accent-1); 32 | border-radius: 1rem; 33 | break-inside: avoid; 34 | margin-bottom: 1rem; 35 | overflow: hidden; 36 | position: relative; 37 | } 38 | 39 | .masonry-grid li::before { 40 | color: var(--accent-3); 41 | content: "Loading..."; 42 | left: 50%; 43 | position: absolute; 44 | top: 50%; 45 | transform: translate(-50%, -50%); 46 | z-index: 1; 47 | } 48 | 49 | .masonry-grid li.loaded::before { 50 | display: none; 51 | } 52 | 53 | .masonry-grid img { 54 | display: block; 55 | opacity: 0; 56 | transition: opacity 0.3s ease; 57 | width: 100%; 58 | } 59 | 60 | .masonry-grid img.visible { 61 | opacity: 1; 62 | } 63 | 64 | .masonry-grid img:hover { 65 | -moz-filter: brightness(70%); 66 | -webkit-filter: brightness(70%); 67 | filter: brightness(70%); 68 | transition: ease-in-out 0.25s; 69 | } 70 | 71 | @media (max-width: 600px) { 72 | main.photos .masonry-grid, 73 | main.photos-wide .masonry-grid { 74 | column-count: 2; 75 | } 76 | } 77 | 78 | @media (max-width: 375px) { 79 | main.photos .masonry-grid, 80 | main.photos-wide .masonry-grid { 81 | column-count: 1; 82 | } 83 | } -------------------------------------------------------------------------------- /layouts/newsletter.html: -------------------------------------------------------------------------------- 1 | 35 |
36 |

{{ .Site.Title }}

37 | {{- if gt (len .Intro) 0 }} 38 |
39 | {{ .Intro }} 40 |
41 | {{- end }} 42 | {{- range .Pages }} 43 |
44 | {{ .Date.Format "January 2, 2006" }} 45 | {{- if .Title }} 46 |

{{ .Title }}

47 | {{- end }} 48 | {{ .Summary }} 49 |

Continue reading online →

50 | {{- if gt (len .Params.audio) 0 }} 51 | Audio 52 | {{- end }} 53 | {{- if gt (len .Params.video) 0 }} 54 | Video 55 | {{- end }} 56 |
57 | {{- end }} 58 | 70 |
71 | -------------------------------------------------------------------------------- /layouts/partials/post-content.html: -------------------------------------------------------------------------------- 1 | {{- $post := . }} 2 | {{- if $post.Title }} 3 |

{{ $post.Title | safeHTML }}

4 |

5 | 8 |

9 | {{- if $post.Site.Params.show_full_post }} 10 | {{ $post.Content }} 11 | {{- else }} 12 |

{{ $post.Summary | safeHTML }}

13 |

{{ T "Continue reading" }} →

14 | {{- end }} 15 | {{- else if in $post.RawContent ""}} 16 |

17 | 20 |

21 | {{- if $post.Site.Params.show_full_post }} 22 | {{ $post.Content }} 23 | {{- else }} 24 |

{{ $post.Summary | safeHTML }}

25 | {{- if $post.Truncated }} 26 |

{{ T "Continue reading" }} →

27 | {{- end }} 28 | {{- end }} 29 | {{- else }} 30 |

31 | 34 |

35 | {{ $post.Content }} 36 | {{- end }} -------------------------------------------------------------------------------- /layouts/index.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 |
3 | {{- $allPages := where .Site.Pages.ByDate.Reverse "Type" "post" }} 4 | {{- $home_categories := slice }} 5 | {{- if .Site.Params.home_category }} 6 | {{- range split .Site.Params.home_category "," }} 7 | {{- $home_categories = $home_categories | append (trim . " ") }} 8 | {{- end }} 9 | {{- end }} 10 | {{- $pinnedPost := false }} 11 | {{- if .Site.Params.pinned_category }} 12 | {{- $pinnedCategoryPages := where $allPages "Params.categories" "intersect" (slice .Site.Params.pinned_category) }} 13 | {{- $pinnedPost = first 1 $pinnedCategoryPages }} 14 | {{- end }} 15 | {{- $pages := $allPages }} 16 | {{- if $home_categories }} 17 | {{- $pages = where $allPages "Params.categories" "intersect" $home_categories }} 18 | {{- end }} 19 | {{- $filteredPages := $pages }} 20 | {{- if $pinnedPost }} 21 | {{- $filteredPages = where $pages "Permalink" "not in" (slice (index $pinnedPost 0).Permalink) }} 22 | {{- end }} 23 | {{- $paginator := .Paginate $filteredPages (index .Site.Params "archive-paginate" | default 20) }} 24 | {{- if and $pinnedPost (eq .Paginator.PageNumber 1) }} 25 | {{- range first 1 $pinnedPost }} 26 |
27 |
{{ .Site.Params.pinned_category }}
28 | {{- partial "post-content.html" . }} 29 |
30 | {{- end }} 31 | {{- end }} 32 | {{- range $paginator.Pages }} 33 |
34 | {{- partial "post-content.html" . }} 35 |
36 | {{- end }} 37 | {{- if or ($paginator.HasNext) ($paginator.HasPrev) }} 38 | 44 | {{- end }} 45 |
46 | {{ end }} -------------------------------------------------------------------------------- /static/js/search.js: -------------------------------------------------------------------------------- 1 | var resultsContainer = document.getElementById("list_results"); 2 | var maxResults = parseInt(resultsContainer.dataset.maxResults, 10) || 5; 3 | 4 | var archive_results = {}; 5 | 6 | function runSearch(q) { 7 | resultsContainer.innerHTML = ""; 8 | 9 | if (q.length > 0) { 10 | var resultsFound = false; 11 | var resultCount = 0; 12 | 13 | for (var i = 0; i < archive_results.items.length; i++) { 14 | var item = archive_results.items[i]; 15 | var title_lower = item.title.toLowerCase(); 16 | var text_lower = item.content_text.toLowerCase(); 17 | 18 | if (title_lower.includes(q) || text_lower.includes(q)) { 19 | var p_node = document.createElement("p"); 20 | var link_node = document.createElement("a"); 21 | var d = Date.parse(item.date_published); 22 | var date_s = new Date(d).toLocaleDateString().substr(0, 10); 23 | var date_node = document.createTextNode(date_s); 24 | link_node.appendChild(date_node); 25 | link_node.href = item.url; 26 | var title_node = null; 27 | 28 | if (item.title.length > 0) { 29 | title_node = document.createElement("span"); 30 | title_node.innerHTML = ": " + item.title + ""; 31 | } 32 | 33 | var s = item.content_text; 34 | if (s.length > 200) { 35 | s = s.substr(0, 200) + "..."; 36 | } 37 | 38 | var text_node = document.createElement("span"); 39 | text_node.innerHTML = ": " + s; 40 | 41 | p_node.appendChild(link_node); 42 | 43 | if (title_node != null) { 44 | p_node.appendChild(title_node); 45 | } 46 | 47 | p_node.appendChild(text_node); 48 | resultsContainer.appendChild(p_node); 49 | 50 | resultCount++; 51 | resultsFound = true; 52 | 53 | if (resultCount >= maxResults) { 54 | break; 55 | } 56 | } 57 | } 58 | 59 | resultsContainer.style.display = resultsFound ? "block" : "none"; 60 | } else { 61 | resultsContainer.style.display = "none"; 62 | } 63 | } 64 | 65 | function submitSearch(q) { 66 | runSearch(q); 67 | 68 | const url = new URL(window.location.href); 69 | url.searchParams.set("q", q); 70 | history.pushState({}, "", url); 71 | } 72 | 73 | document.addEventListener("DOMContentLoaded", function () { 74 | fetch("/archive/index.json") 75 | .then(response => response.json()) 76 | .then(data => { 77 | archive_results = data; 78 | 79 | const url = window.location.href; 80 | const params = new URLSearchParams(new URL(url).search); 81 | const q = params.get("q"); 82 | 83 | if (q && q.length > 0) { 84 | document.getElementById("input_search").value = q; 85 | runSearch(q); 86 | } 87 | }); 88 | }); -------------------------------------------------------------------------------- /layouts/_default/list.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 |
3 |

{{ .Title | safeHTML }}

4 | {{- with .Content }} 5 |
{{ . | safeHTML }}
6 | {{- end }} 7 | {{- $paginator := .Paginate (where .Pages.ByDate.Reverse "Type" "post") (index .Site.Params "archive-paginate" | default 30) }} 8 | {{- range $paginator.Pages }} 9 |
10 | {{- if isset .Params "categories" }} 11 | {{- range $index, $category := .Params.categories }} 12 | {{- $href := printf "/categories/%s" (urlize $category) | absURL }} 13 | {{- if gt $index 0 }}{{ end }} 14 | {{- end }} 15 | {{- end }} 16 | {{- if .Title }} 17 |

{{ .Title | safeHTML }}

18 | 19 | {{- if or (.Site.Params.show_full_post) (.Site.Params.category_full_post) }} 20 | {{ .Content }} 21 | {{- else }} 22 |

{{ .Summary | safeHTML }}

23 |

{{ T "Continue reading" }} →

24 | {{- end }} 25 | {{- else if in .RawContent "" }} 26 | 27 | {{- if .Site.Params.show_full_post }} 28 | {{ .Content }} 29 | {{- else }} 30 |

{{ .Summary | safeHTML }}

31 | {{- if .Truncated }} 32 |

{{ T "Continue reading" }} →

33 | {{- end }} 34 | {{- end }} 35 | {{- else }} 36 | 37 | {{ .Content }} 38 | {{- end }} 39 |
40 | {{- end }} 41 | {{- if or ( $paginator.HasNext ) ( $paginator.HasPrev ) }} 42 | 48 | {{- end }} 49 |
50 | {{ end }} -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # mnml 2 | 3 | ![mnml](https://raw.githubusercontent.com/jimmitchell/mnml/main/icon.jpg) 4 | 5 | A clean and simple minimalist Micro.blog theme. 6 | 7 | ## Key Features 8 | 9 | - Localized for different languages. 10 | - System display mode aware (light and dark). 11 | - Mobile responsive. 12 | - HTML image class support. 13 | - Featured post category setting. 14 | - Custom home page category setting. 15 | - Multiple, comma-separated home page categories are supported. 16 | - Choose between a wider or narrower site header. 17 | - Choose between long or short date formats. 18 | - Display full posts on category pages. 19 | - Custom photos page category setting. 20 | - Grid or Masonry photo layout options. 21 | - Show all image formats on photos page. 22 | - Wide or narrow photo page layout setting. 23 | - Use a custom site icon of your choosing. 24 | - Hide the site avatar altogether if you choose. 25 | - Setting to enable/disable a button that lets reader copy code blocks in posts. 26 | - Built-in Search shortcode. See instructions below. 27 | - [Fediverse Creator](https://blog.joinmastodon.org/2024/07/highlighting-journalism-on-mastodon/) tag support. 28 | - Pagination on all post related pages. 29 | 30 | See the theme in action at [mnml.micro.blog](https://mnml.micro.blog). 31 | 32 | ## Image Classes 33 | 34 | **mnml** supports the following html image classes: 35 | 36 | - `.align-none`: An inline sized image without any alignment. 37 | - `.align-left`: An inline sized image that's left aligned which allows text to wrap around it. 38 | - `.align-right`: An inline sized image that's right aligned which allows text to wrap around it. 39 | - `.align-center`: An inline sized image that's center aligned. There is no text wrapping. 40 | - `.full-width`: A full width image that spans the entire width of the page. This is the same as adding an image using Markdown. 41 | - `.overflow`: A full width image that overflows the width of the page. 42 | 43 | Applying one of these classes to an image will allow you to control appearance and layout. It's far better to see it in action, so for more details and code examples, visit the **[mnml]** [style guide page](https://mnml.micro.blog/styleguide/#images-markdown-and-optional-html). 44 | 45 | ## Adding a Search Page 46 | 47 | **mnml** has a built-in Search shortcode to let you add a Search page if you so desire... 48 | 49 | 1. Create a new Micro.blog page. Name it whatever you like with a url of whatever you like. 50 | 2. In the page body, add the `{{< search >}}` shortcode. 51 | 3. Visit your new search page and try it out. 52 | 53 | Search results default to 5 until you set your own value in the **mnml** plugin settings page. 54 | 55 | ## Special Thanks 56 | 57 | Thank you to the following for their **mnml** localization contributions: 58 | 59 | - Swedish: [@robertbirming](https://github.com/robertbirming) 60 | - Ukrainian & Russian: [@luxury-format](https://github.com/luxury-format) 61 | - Chinese (Traditional): [@bobbytung](https://github.com/bobbytung) 62 | - Polish: [@bstn](https://micro.blog/bstn) 63 | 64 | ## Support 65 | 66 | If you like **mnml**, consider supporting it by [buying me a coffee](https://buymeacoffee.com/jim.mitchell). 67 | -------------------------------------------------------------------------------- /layouts/partials/head.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | {{ block "title" . }}{{ if .IsHome }}{{ .Site.Title }}{{ else if .Title }}{{ trim (.Title | plainify) " " }} | {{ .Site.Title }}{{ else }}{{ delimit (split (.Summary | plainify) " " | first 5) " " }} … | {{ .Site.Title }}{{ end }}{{ end }} 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | {{- if .IsHome }} 15 | 16 | 17 | 18 | {{- else }} 19 | 20 | 21 | 22 | {{- end }} 23 | {{- if .Params.photos }} 24 | {{- with index .Params.photos 0 }} 25 | 26 | {{- end }} 27 | {{- else }} 28 | {{- with .Params.opengraph }} 29 | 30 | {{- end }} 31 | {{- end }} 32 | {{- $creator := .Site.Params.fediverse_creator }} 33 | {{- if $creator }} 34 | 35 | {{- end }} 36 | 37 | 38 | 39 | 40 | {{- if .Site.Params.masonry_layout }} 41 | 42 | {{- else }} 43 | 44 | {{- end }} 45 | 46 | 47 | 48 | {{- if .Site.Params.narrow_header }} 49 | 50 | {{- end }} 51 | {{ partial "microblog_head.html" . }} 52 | -------------------------------------------------------------------------------- /layouts/post/single.html: -------------------------------------------------------------------------------- 1 | {{- define "main" }} 2 |
3 |
4 | {{- if .Title }} 5 |

{{ .Title | safeHTML }}

6 | 11 | {{- else }} 12 | 17 | {{- end }} 18 | {{- with .Params.audio }} 19 | 20 | {{- end }} 21 |
22 | {{ .Content }} 23 |
24 | {{- if .Params.categories }} 25 | {{- with .GetTerms "categories" }} 26 |

27 | {{- range . }} 28 | {{ .LinkTitle }} 29 | {{- end }} 30 |

31 | {{- end }} 32 | {{- end }} 33 | {{- if or (templates.Exists "partials/reply-by-email.html") (templates.Exists "partials/conversation-link.html") (templates.Exists "partials/reply-on-mastodon.html") (templates.Exists "partials/tinylytics.html") }} 34 | 48 | {{- end }} 49 |
50 | {{- if .Site.Params.include_conversation }} 51 |
52 | 53 |
54 | {{- end }} 55 | {{- if or (.NextInSection) (.PrevInSection) }} 56 | 62 | {{- end }} 63 |
64 | {{- end }} -------------------------------------------------------------------------------- /layouts/partials/photos-masonry.html: -------------------------------------------------------------------------------- 1 | {{- $allFormats := .Site.Params.all_formats }} 2 | {{- $singleImage := .Site.Params.single_image | default false }} 3 | {{- $category := index .Site.Taxonomies.categories (lower .Site.Params.photos_category) }} 4 | {{- $list := slice }} 5 | {{- if $category }} 6 | {{- if $allFormats }} 7 | {{- $list = where $category.Pages ".Params.images" "!=" nil }} 8 | {{- else }} 9 | {{- $list = where $category.Pages ".Params.photos" "!=" nil }} 10 | {{- end }} 11 | {{- else if $allFormats }} 12 | {{- $list = where .Site.Pages ".Params.images" "!=" nil }} 13 | {{- else }} 14 | {{- $list = where .Site.Pages ".Params.photos" "!=" nil }} 15 | {{- end }} 16 | {{- $len := (len $list) }} 17 | {{- $currentYearMonth := "" }} 18 | {{- range sort $list "Date" "desc" }} 19 | {{- $year := .Date.Format "2006" }} 20 | {{- $month := .Date.Format "01" }} 21 | {{- $yearMonth := printf "%s-%s" $year $month }} 22 | {{- $monthName := .Date.Format "January" }} 23 | {{- if ne $currentYearMonth $yearMonth }} 24 | {{- if ne $currentYearMonth "" }} 25 | 26 | {{- end }} 27 |

{{ $monthName }} {{ $year }}

28 | 76 | -------------------------------------------------------------------------------- /plugin.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "2.8.4", 3 | "title": "mnml", 4 | "description": "A minimal, simple and clean Micro.blog theme.", 5 | "fields": [ 6 | { 7 | "field": "defaultContentLanguage", 8 | "label": "Site Language", 9 | "type": "string", 10 | "placeholder": "Preferred language code (e.g. en, de, fr, es)." 11 | }, 12 | { 13 | "field": "params.fediverse_creator", 14 | "label": "Fediverse creator", 15 | "type": "string", 16 | "placeholder": "@username@mastodon.instance" 17 | }, 18 | { 19 | "field": "params.use_short_date", 20 | "label": "Use a short date format", 21 | "type": "boolean" 22 | }, 23 | { 24 | "field": "params.narrow_header", 25 | "label": "Use a narrow site header", 26 | "type": "boolean" 27 | }, 28 | { 29 | "field": "params.hide_avatar", 30 | "label": "Hide header avatar", 31 | "type": "boolean" 32 | }, 33 | { 34 | "field": "params.custom_avatar", 35 | "label": "Custom avatar", 36 | "type": "string", 37 | "placeholder": "Enter a full URL to an image. Ignored if avatar is hidden." 38 | }, 39 | { 40 | "field": "params.pinned_category", 41 | "label": "Pinned post category", 42 | "type": "string", 43 | "placeholder": "Category for the latest pinned post. Leave blank otherwise." 44 | }, 45 | { 46 | "field": "params.home_category", 47 | "label": "Home page categories", 48 | "type": "string", 49 | "placeholder": "Home page categories. Leave blank for all posts." 50 | }, 51 | { 52 | "field": "params.show_full_post", 53 | "label": "Show full posts on homepage", 54 | "type": "boolean" 55 | }, 56 | { 57 | "field": "params.show_read_time", 58 | "label": "Show read time on titled posts", 59 | "type": "boolean" 60 | }, 61 | { 62 | "field": "params.enable_code_copy_button", 63 | "label": "Enable copy button for code blocks", 64 | "type": "boolean" 65 | }, 66 | { 67 | "field": "params.category_full_post", 68 | "label": "Show full posts on category pages", 69 | "type": "boolean" 70 | }, 71 | { 72 | "field": "params.show_categories", 73 | "label": "Show categories on archives page", 74 | "type": "boolean" 75 | }, 76 | { 77 | "field": "params.show_category_count", 78 | "label": "Show post count for archive page categories", 79 | "type": "boolean" 80 | }, 81 | { 82 | "field": "params.photos_category", 83 | "label": "Photos category", 84 | "type": "string", 85 | "placeholder": "Set a single photo category. Leave blank for all images." 86 | }, 87 | { 88 | "field": "params.all_formats", 89 | "label": "Display all image formats (jpg, png, webp, etc.).", 90 | "type": "boolean" 91 | }, 92 | { 93 | "field": "params.masonry_layout", 94 | "label": "Use photos masonry layout", 95 | "type": "boolean" 96 | }, 97 | { 98 | "field": "params.full_width_photos", 99 | "label": "Use a wider photos page", 100 | "type": "boolean" 101 | }, 102 | { 103 | "field": "params.single_image", 104 | "label": "Show first post image only", 105 | "type": "boolean" 106 | }, 107 | { 108 | "field": "params.search_results", 109 | "label": "Number of search results", 110 | "placeholder": "Defaults to 5 if left blank.", 111 | "type": "string" 112 | }, 113 | { 114 | "field": "params.hide_copyright", 115 | "label": "Hide the footer copyright", 116 | "type": "boolean" 117 | }, 118 | { 119 | "field": "params.footer_rss", 120 | "label": "Add a RSS link in the footer", 121 | "type": "boolean" 122 | }, 123 | { 124 | "field": "params.hide_credit", 125 | "label": "Hide footer credits", 126 | "type": "boolean" 127 | } 128 | ] 129 | } 130 | -------------------------------------------------------------------------------- /layouts/partials/photos-grid.html: -------------------------------------------------------------------------------- 1 | {{- $allFormats := .Site.Params.all_formats }} 2 | {{- $singleImage := .Site.Params.single_image | default false }} 3 | {{- $category := index .Site.Taxonomies.categories (lower .Site.Params.photos_category) }} 4 | {{- $list := slice }} 5 | {{- if $category }} 6 | {{- if $allFormats }} 7 | {{- $list = where $category.Pages ".Params.images" "!=" nil }} 8 | {{- else }} 9 | {{- $list = where $category.Pages ".Params.photos" "!=" nil }} 10 | {{- end }} 11 | {{- else if $allFormats }} 12 | {{- $list = where .Site.Pages ".Params.images" "!=" nil }} 13 | {{- else }} 14 | {{- $list = where .Site.Pages ".Params.photos" "!=" nil }} 15 | {{- end }} 16 | {{- $len := (len $list) }} 17 | {{- $currentYearMonth := "" }} 18 | {{- range sort $list "Date" "desc" }} 19 | {{- $year := .Date.Format "2006" }} 20 | {{- $month := .Date.Format "01" }} 21 | {{- $yearMonth := printf "%s-%s" $year $month }} 22 | {{- $monthName := .Date.Format "January" }} 23 | {{- if ne $currentYearMonth $yearMonth }} 24 | {{- if ne $currentYearMonth "" }} 25 | 26 | {{- end }} 27 |

{{ $monthName }} {{ $year }}

28 | 76 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. -------------------------------------------------------------------------------- /static/css/main.css: -------------------------------------------------------------------------------- 1 | :root { 2 | color-scheme: light dark; 3 | --sans-serif-font: "GTW", -apple-system, system-ui, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif; 4 | --mono-space-font: SFMono-Regular, ui-monospace, Monaco, "Andale Mono", "Ubuntu Mono", monospace; 5 | --font-weight-normal: 400; 6 | --font-weight-bold: 700; 7 | --header-width: 94rem; 8 | --site-width: 68rem; 9 | --photos-wide: 120rem; 10 | --border-radius: 0.6rem; 11 | } 12 | 13 | @media (prefers-color-scheme: light) { 14 | :root { 15 | color-scheme: light; 16 | --background: #ffffff; 17 | --text: #42444a; 18 | --link: #0d88d8; 19 | --link-hover: #101115; 20 | --accent-1: #f6f6f6; 21 | --accent-2: #e2e2e4; 22 | --accent-3: #84868b; 23 | --highlight: #e3e3e6; 24 | } 25 | } 26 | 27 | @media (prefers-color-scheme: dark) { 28 | :root { 29 | color-scheme: dark; 30 | --background: #20232a; 31 | --text: #f7f7f7; 32 | --link: #45c8f7; 33 | --link-hover: #ffffff; 34 | --accent-1: #3d4149; 35 | --accent-2: #53565d; 36 | --accent-3: #d4d4d6; 37 | --highlight: #53565d; 38 | } 39 | } 40 | 41 | canvas, 42 | img, 43 | picture, 44 | svg, 45 | video { 46 | max-width: 100%; 47 | } 48 | 49 | button, 50 | input, 51 | select, 52 | textarea { 53 | font: inherit; 54 | } 55 | 56 | h1, 57 | h2, 58 | h3, 59 | h4, 60 | h5, 61 | h6, 62 | b, 63 | strong, 64 | dt, 65 | th { 66 | font-weight: var(--font-weight-bold); 67 | } 68 | 69 | h1, 70 | h2, 71 | h3, 72 | h4, 73 | h5, 74 | h6, 75 | p { 76 | overflow-wrap: break-word; 77 | } 78 | 79 | #root, 80 | #__next { 81 | isolation: isolate; 82 | } 83 | 84 | html { 85 | box-sizing: border-box; 86 | font-family: var(--sans-serif-font); 87 | font-size: 10px; 88 | scroll-behavior: smooth; 89 | -webkit-text-size-adjust: 100%; 90 | text-size-adjust: 100%; 91 | } 92 | 93 | *, 94 | *::before, 95 | *::after { 96 | box-sizing: inherit; 97 | } 98 | 99 | body { 100 | background: var(--background); 101 | color: var(--text); 102 | font-kerning: normal; 103 | font-size: 1.8rem; 104 | font-weight: var(--font-weight-normal); 105 | line-height: 1.5666; 106 | width: 100%; 107 | margin: 0; 108 | text-rendering: geometricPrecision; 109 | font-feature-settings: "kern" 1; 110 | -webkit-font-smoothing: antialiased; 111 | -moz-osx-font-smoothing: grayscale; 112 | word-wrap: break-word; 113 | } 114 | 115 | ::-moz-selection { 116 | background: var(--accent-2); 117 | } 118 | 119 | ::selection { 120 | background: var(--accent-2); 121 | } 122 | 123 | a { 124 | text-decoration: none; 125 | } 126 | 127 | a:link, 128 | a:visited { 129 | color: var(--link); 130 | } 131 | 132 | a:hover, 133 | a:active { 134 | color: var(--link-hover); 135 | text-decoration: underline; 136 | } 137 | 138 | a:link, 139 | a:visited, 140 | a:hover, 141 | a:active, 142 | .category-list button:hover, 143 | .category-list button:active { 144 | transition: 145 | color 0.15s ease-in-out, 146 | background 0.15s ease-in-out, 147 | border 0.15s ease-in-out; 148 | } 149 | 150 | h1, 151 | h2, 152 | h3, 153 | h4, 154 | h5, 155 | h6 { 156 | line-height: 1.2; 157 | } 158 | 159 | h1 { 160 | font-size: 2.2rem; 161 | } 162 | 163 | h2 { 164 | font-size: 2rem; 165 | } 166 | 167 | h3 { 168 | font-size: 1.8rem; 169 | } 170 | 171 | h4, 172 | h5, 173 | h6 { 174 | font-size: 1.6rem; 175 | } 176 | 177 | i, 178 | cite, 179 | em { 180 | font-style: italic; 181 | } 182 | 183 | sub { 184 | vertical-align: sub; 185 | font-size: smaller; 186 | } 187 | 188 | sup { 189 | vertical-align: super; 190 | font-size: smaller; 191 | } 192 | 193 | figure { 194 | margin: 0; 195 | padding: 0; 196 | } 197 | 198 | figcaption { 199 | background: var(--accent-1); 200 | border-radius: var(--border-radius); 201 | color: var(--accent-3); 202 | display: block; 203 | font-size: 1.4rem; 204 | margin: -2rem 0 3rem; 205 | padding: 0.5rem 1.5rem; 206 | text-align: center; 207 | } 208 | 209 | figure img + img { 210 | margin-top: -2rem; 211 | } 212 | 213 | hr { 214 | border: none; 215 | height: 1px; 216 | background: var(--accent-2); 217 | margin: 4rem 0; 218 | } 219 | 220 | blockquote { 221 | border-left: 6px solid var(--accent-2); 222 | color: var(--accent-3); 223 | font-style: italic; 224 | margin: 4rem 0; 225 | padding: 0 2rem; 226 | } 227 | 228 | table { 229 | border-collapse: collapse; 230 | width: 100%; 231 | margin: 3rem 0; 232 | } 233 | 234 | tbody tr { 235 | background: var(--background); 236 | } 237 | 238 | tbody tr:nth-child(even) { 239 | background: var(--accent-1); 240 | } 241 | 242 | th, 243 | td { 244 | border-right: 1px solid var(--accent-2); 245 | border-bottom: 1px solid var(--accent-2); 246 | line-height: 1.2; 247 | padding: 12px 8px; 248 | text-align: left; 249 | } 250 | 251 | th { 252 | background: var(--accent-1); 253 | border-bottom: 2px solid var(--accent-2); 254 | border-top: 1px solid var(--accent-2); 255 | } 256 | 257 | th:last-child, 258 | td:last-child { 259 | border-right: none; 260 | } 261 | 262 | tbody tr:hover { 263 | background-color: var(--accent-3); 264 | color: var(--background); 265 | transition: ease-in-out 0.25s; 266 | } 267 | 268 | tbody tr:hover a { 269 | color: var(--background); 270 | text-decoration: underline; 271 | } 272 | 273 | code, 274 | kbd, 275 | pre, 276 | tt { 277 | font-family: var(--mono-space-font); 278 | font-size: 1.4rem; 279 | } 280 | 281 | pre { 282 | background: #101115; 283 | border-radius: 0.5rem; 284 | color: #f8f8f8; 285 | line-height: 1.5; 286 | margin: 3rem 0; 287 | overflow-x: auto; 288 | padding: 2.5rem; 289 | scrollbar-color: #64676e #101115; 290 | white-space: pre; 291 | } 292 | 293 | code { 294 | background: #f9f2f4; 295 | border-radius: var(--border-radius); 296 | color: #c7254e; 297 | padding: 2px 4px; 298 | text-shadow: 0 1px 1px #fff; 299 | white-space: nowrap; 300 | } 301 | 302 | pre::-webkit-scrollbar { 303 | width: 8px; 304 | height: 8px; 305 | background-color: #101115; 306 | border-bottom-left-radius: var(--border-radius); 307 | border-bottom-right-radius: var(--border-radius); 308 | } 309 | 310 | pre::-webkit-scrollbar-thumb { 311 | background: #64676e; 312 | border-radius: 5px; 313 | } 314 | 315 | pre code { 316 | background: none; 317 | border: none; 318 | color: inherit; 319 | padding: 0; 320 | text-shadow: none; 321 | white-space: pre; 322 | } 323 | 324 | div.highlight pre { 325 | background-color: #000 !important; 326 | } 327 | 328 | .gist { 329 | border: 1px solid var(--accent-2); 330 | margin: 4rem 0; 331 | width: 100%; 332 | scrollbar-color: #999 #fff; 333 | } 334 | 335 | .gist .gist-file { 336 | margin-bottom: 0 !important; 337 | } 338 | 339 | .gist .gist-file tr { 340 | background: #fff; 341 | } 342 | 343 | .gist::-webkit-scrollbar { 344 | width: 8px; 345 | height: 8px; 346 | background-color: #fff; 347 | } 348 | 349 | .gist::-webkit-scrollbar-thumb { 350 | background: #999; 351 | border-radius: var(--border-radius); 352 | } 353 | 354 | highlight, 355 | mark { 356 | background-color: var(--highlight); 357 | color: var(--text); 358 | padding: 0 3px; 359 | margin-left: -3px; 360 | } 361 | 362 | input[type="button"], 363 | input[type="submit"] { 364 | background-color: var(--text); 365 | border-radius: var(--border-radius); 366 | border: none; 367 | color: var(--background); 368 | cursor: pointer; 369 | margin: 4px 1px; 370 | padding: 6px 12px; 371 | text-decoration: none; 372 | } 373 | 374 | input[type="button"]:hover, 375 | input[type="button"]:active, 376 | input[type="submit"]:hover, 377 | input[type="submit"]:active { 378 | background: var(--link); 379 | color: var(--background); 380 | } 381 | 382 | input[type="date"], 383 | input[type="email"], 384 | input[type="number"], 385 | input[type="search"], 386 | input[type="tel"], 387 | input[type="text"], 388 | input[type="url"], 389 | textarea { 390 | background: var(--accent-1); 391 | border-radius: var(--border-radius); 392 | border: 1px solid var(--accent-2); 393 | color: var(--text); 394 | font-size: 1.8rem; 395 | margin: 4px 1px; 396 | padding: 8px 12px; 397 | width: 100%; 398 | } 399 | 400 | input[type="email"]:active, 401 | input[type="email"]:focus, 402 | input[type="text"]:active, 403 | input[type="text"]:focus, 404 | input[type="search"]:active, 405 | input[type="search"]:focus, 406 | textarea:active, 407 | textarea:focus { 408 | border-color: var(--accent-3); 409 | outline: none; 410 | } 411 | 412 | main { 413 | margin: 0 auto; 414 | max-width: var(--site-width); 415 | padding: 2rem; 416 | } 417 | 418 | .header { 419 | background: var(--background); 420 | margin: 2rem 0; 421 | width: 100%; 422 | z-index: 10000; 423 | } 424 | 425 | .u-photo { 426 | border-radius: var(--border-radius); 427 | display: inline; 428 | height: auto; 429 | margin-right: 8px; 430 | margin-top: -3px; 431 | vertical-align: middle; 432 | width: 3.2rem; 433 | } 434 | 435 | .site-title { 436 | font-size: 1.6rem; 437 | font-weight: var(--font-weight-bold); 438 | } 439 | 440 | .site-title a { 441 | display: inline-block; 442 | padding-top: 3px; 443 | } 444 | 445 | .site-title a:link, 446 | .site-title a:visited { 447 | color: var(--text); 448 | } 449 | 450 | .site-title a:hover, 451 | .site-title a:active { 452 | color: var(--link); 453 | text-decoration: none; 454 | } 455 | 456 | .site-nav { 457 | align-items: center; 458 | display: flex; 459 | font-size: 1.6rem; 460 | justify-content: space-between; 461 | margin: 0 auto; 462 | max-width: var(--header-width); 463 | padding: 0.75rem 2rem 0.5rem 2rem; 464 | } 465 | 466 | .site-nav ul { 467 | list-style: none; 468 | padding: 0; 469 | } 470 | 471 | .hamburger { 472 | display: none; 473 | } 474 | 475 | .bar { 476 | background-color: var(--text); 477 | display: block; 478 | height: 2px; 479 | margin: 3px auto; 480 | -webkit-transition: all 0.3s ease-in-out; 481 | transition: all 0.3s ease-in-out; 482 | width: 16px; 483 | } 484 | 485 | .nav-menu { 486 | align-items: center; 487 | display: flex; 488 | justify-content: space-between; 489 | } 490 | 491 | .nav-item { 492 | margin-left: 1.75rem; 493 | } 494 | 495 | article { 496 | clear: both; 497 | margin: 0 0 8rem 0; 498 | padding: 0; 499 | } 500 | 501 | article:last-of-type { 502 | margin-bottom: 4rem; 503 | } 504 | 505 | article h2, 506 | article h3 { 507 | margin-top: 4rem; 508 | } 509 | 510 | single article { 511 | margin-bottom: 0; 512 | padding-bottom: 0; 513 | } 514 | 515 | .pinned { 516 | background: var(--accent-1); 517 | border: 2px solid var(--accent-2); 518 | border-radius: var(--border-radius); 519 | margin-left: -2rem; 520 | margin-right: -2rem; 521 | margin-top: 2rem; 522 | width: calc(100% + 4rem); 523 | padding: 1rem 1.8rem 0 1.8rem; 524 | position: relative; 525 | } 526 | 527 | .pinned-badge { 528 | background: var(--link); 529 | border-radius: 3rem; 530 | color: var(--background); 531 | font-size: 1.6rem; 532 | position: absolute; 533 | top: -1.5rem; 534 | left: 0.8rem; 535 | margin: 0; 536 | padding: 0.1rem 1.2rem; 537 | } 538 | 539 | .page-title, 540 | .post-title { 541 | font-size: 2.2rem; 542 | margin: 1rem 0 3rem; 543 | } 544 | 545 | .pinned .post-title { 546 | margin-top: 2.2rem; 547 | } 548 | 549 | .post-title { 550 | margin-bottom: -15px; 551 | } 552 | 553 | .post-title a:link, 554 | .post-title a:visited { 555 | color: var(--text); 556 | } 557 | 558 | .post-title a:hover, 559 | .post-title a:active { 560 | color: var(--link); 561 | } 562 | 563 | .post-date { 564 | color: var(--accent-3); 565 | font-size: 1.6rem; 566 | } 567 | 568 | .sep { 569 | color: var(--accent-3); 570 | margin: 0 0.25rem; 571 | } 572 | 573 | article img, 574 | article video { 575 | border-radius: var(--border-radius); 576 | display: block; 577 | height: auto; 578 | margin: 3rem auto; 579 | width: 100%; 580 | max-width: 100%; 581 | } 582 | 583 | article img.align-none { 584 | display: inline; 585 | width: revert-layer; 586 | height: revert-layer; 587 | max-width: 100%; 588 | margin: 1rem 0; 589 | } 590 | 591 | article img.align-left { 592 | display: unset; 593 | float: left; 594 | margin: 0.7rem 2rem 1rem 0; 595 | max-width: 100%; 596 | text-align: left; 597 | width: revert-layer; 598 | height: revert-layer; 599 | } 600 | 601 | article img.align-right { 602 | display: unset; 603 | float: right; 604 | margin: 0.7rem 0 1rem 2rem; 605 | max-width: 100%; 606 | text-align: right; 607 | width: revert-layer; 608 | height: revert-layer; 609 | } 610 | 611 | article img.align-left::after, 612 | article img.align-right::after, 613 | .microblog_book:after { 614 | clear: both; 615 | content: ""; 616 | display: table; 617 | } 618 | 619 | article img.align-center { 620 | text-align: center; 621 | margin-left: auto; 622 | margin-right: auto; 623 | display: block; 624 | width: revert-layer; 625 | height: revert-layer; 626 | max-width: 100%; 627 | } 628 | 629 | article img.full-width { 630 | width: 100%; 631 | max-width: 100%; 632 | margin: 3rem auto; 633 | display: block; 634 | } 635 | 636 | article img.overflow { 637 | margin: 3rem -3rem; 638 | width: calc(100% + 6rem); 639 | max-width: calc(100% + 6rem); 640 | display: block; 641 | } 642 | 643 | @media only screen and (max-width: 768px) { 644 | article img.overflow { 645 | margin: 3rem -1rem; 646 | width: calc(100% + 2rem); 647 | max-width: calc(100% + 2rem); 648 | } 649 | } 650 | 651 | article ul, 652 | article ol { 653 | padding-left: 2rem; 654 | } 655 | 656 | article ul li, 657 | article ol li { 658 | margin-bottom: 5px; 659 | padding-left: 5px; 660 | } 661 | 662 | .highlight { 663 | position: relative; 664 | } 665 | 666 | .highlight button { 667 | position: absolute; 668 | top: 0; 669 | right: 0; 670 | cursor: pointer; 671 | font-size: 1.2rem; 672 | background: #272727; 673 | border: none; 674 | padding: 0 5px; 675 | color: #777; 676 | transition: 677 | color 0.15s ease-in-out, 678 | background 0.15s ease-in-out, 679 | border 0.15s ease-in-out; 680 | border: 2px solid #161616; 681 | border-radius: 6px; 682 | } 683 | 684 | .gist .highlight button { 685 | display: none; 686 | } 687 | 688 | .highlight button:hover { 689 | background: #494949; 690 | color: #fff; 691 | } 692 | 693 | p.categories { 694 | clear: both; 695 | padding-top: 0.5rem; 696 | } 697 | 698 | a.category:link, 699 | a.category:visited, 700 | .category-list button { 701 | background-color: var(--accent-1); 702 | border-radius: var(--border-radius); 703 | border: 1px solid var(--accent-2); 704 | color: var(--accent-3); 705 | display: inline-block; 706 | font-size: 1.4rem; 707 | line-height: 1.8; 708 | margin: 0 1px 5px 0; 709 | padding: 0 6px; 710 | text-decoration: none; 711 | } 712 | 713 | .category-list button { 714 | font-size: 1.6rem; 715 | } 716 | 717 | .category-list button .post-count { 718 | font-size: 1.4rem; 719 | margin-left: 0.1rem; 720 | } 721 | 722 | a.category:hover, 723 | a.category:active, 724 | .category-list button:hover, 725 | .category-list button:active { 726 | background: var(--link); 727 | border: 1px solid var(--link); 728 | color: var(--background); 729 | } 730 | 731 | #list_results p { 732 | margin: 5rem 0; 733 | } 734 | 735 | #list_results p:first-of-type { 736 | margin-top: 3rem; 737 | } 738 | 739 | .archive-range { 740 | border-bottom: 1px solid var(--accent-2); 741 | font-weight: var(--font-weight-bold); 742 | margin-bottom: 4rem; 743 | padding-bottom: 0.5rem; 744 | } 745 | 746 | .category-list { 747 | margin: -1rem 0 6rem; 748 | } 749 | 750 | .microblog-category-intro { 751 | border-bottom: 1px solid var(--accent-2); 752 | margin-bottom: 4rem; 753 | padding-bottom: 2rem; 754 | } 755 | 756 | .microblog_narration_button { 757 | background: var(--accent-1); 758 | border-radius: var(--border-radius); 759 | border: 1px solid var(--accent-2); 760 | display: inline-block; 761 | padding: 0 10px 3px 6px; 762 | } 763 | 764 | .microblog_narration_button:hover, 765 | .microblog_narration_button:active { 766 | background: var(--link); 767 | border-color: var(--link); 768 | color: var(--background); 769 | } 770 | 771 | .microblog_narration_button svg { 772 | display: inline; 773 | } 774 | 775 | .microblog_conversation { 776 | margin: 5rem 0; 777 | } 778 | 779 | .microblog_post { 780 | background: var(--accent-1); 781 | border: 1px solid var(--accent-2); 782 | border-radius: var(--border-radius); 783 | margin-bottom: 1rem; 784 | padding: 2.3rem 2rem; 785 | } 786 | 787 | .microblog_conversation .microblog_post { 788 | margin-bottom: 1.5rem; 789 | } 790 | 791 | .microblog_user { 792 | font-weight: var(--font-weight-bold); 793 | } 794 | 795 | .microblog_fullname { 796 | display: inline-block; 797 | font-size: 1.6rem; 798 | font-weight: var(--font-weight-bold); 799 | line-height: 30px; 800 | margin-left: 6px; 801 | } 802 | 803 | .microblog_user img { 804 | border-radius: var(--border-radius); 805 | display: inline-block; 806 | height: auto; 807 | margin-top: -2px; 808 | max-width: 30px !important; 809 | vertical-align: middle; 810 | width: 30px; 811 | } 812 | 813 | .microblog_time a:hover, 814 | .microblog_time a:active { 815 | color: var(--link); 816 | text-decoration: underline; 817 | } 818 | 819 | .microblog_time a, 820 | .microblog_time a:visited { 821 | color: var(--accent-3); 822 | font-size: 1.6rem; 823 | text-decoration: none; 824 | } 825 | 826 | .reply-buttons { 827 | list-style-type: none; 828 | margin: 0; 829 | padding: 0; 830 | } 831 | 832 | .reply-buttons li { 833 | display: inline; 834 | line-height: 1.6rem; 835 | margin-right: 0; 836 | white-space: nowrap; 837 | } 838 | 839 | .microblog_reply_form { 840 | background: var(--accent-1); 841 | border: 1px solid var(--accent-2); 842 | border-radius: var(--border-radius); 843 | padding: 1rem 2rem; 844 | } 845 | 846 | .microblog_reply_signin { 847 | font-size: 1.6rem; 848 | margin-top: 0.75rem; 849 | } 850 | 851 | .microblog_reply_textarea textarea { 852 | background: var(--background); 853 | border-radius: var(--border-radius); 854 | border: 1px solid var(--accent-2); 855 | color: var(--text); 856 | padding: 8px; 857 | width: 100%; 858 | z-index: 0; 859 | } 860 | 861 | .microblog_reply_textarea textarea:disabled, 862 | .microblog_reply_textarea textarea[disabled] { 863 | background: var(--background); 864 | border-color: var(--accent-2); 865 | } 866 | 867 | .microblog_reply_textarea textarea:active, 868 | .microblog_reply_textarea textarea:focus { 869 | border-color: var(--accent-3); 870 | } 871 | 872 | .microblog_reply_button input:disabled, 873 | .microblog_reply_button input[disabled] { 874 | display: none; 875 | } 876 | 877 | .microblog_reply_button { 878 | font-size: 1.6rem; 879 | margin-bottom: 0.75rem; 880 | margin-top: -0.75rem; 881 | text-align: right; 882 | } 883 | 884 | input.subscribe-input { 885 | width: 80%; 886 | } 887 | 888 | input.subscribe-submit { 889 | padding: 9px; 890 | width: 18%; 891 | } 892 | 893 | .info { 894 | background-color: var(--accent-1); 895 | border-radius: 1rem; 896 | color: var(--text); 897 | padding: 2rem 3rem; 898 | text-align: center; 899 | } 900 | 901 | main.archive .entry p > img { 902 | display: none; 903 | } 904 | 905 | main.archive .entry { 906 | margin: -1rem 0 8rem 0; 907 | } 908 | 909 | main.archive .entry p { 910 | display: inline; 911 | } 912 | 913 | sup a:link, 914 | sup a:visited { 915 | background: var(--link); 916 | color: var(--background); 917 | padding: 1px 4px; 918 | margin: 0 1px 0 3px; 919 | border-radius: 3px; 920 | font-size: 85%; 921 | } 922 | 923 | sup a:hover, 924 | sup a:active { 925 | background: var(--link-hover); 926 | color: var(--background); 927 | text-decoration: none; 928 | } 929 | 930 | .footnotes { 931 | font-size: 1.6rem; 932 | margin: 4rem 0 0 0; 933 | color: var(--accent-3); 934 | } 935 | 936 | .footnotes hr { 937 | margin-bottom: 3.5rem; 938 | } 939 | 940 | .footnotes p { 941 | margin: 0; 942 | line-height: 1.2; 943 | margin-bottom: 0.8rem; 944 | } 945 | 946 | .footnotes ol { 947 | padding-left: 2.5rem; 948 | } 949 | 950 | .main-nav { 951 | margin: 0; 952 | padding: 1rem 0 2rem 0; 953 | } 954 | 955 | .main-nav ul { 956 | align-items: center; 957 | display: flex; 958 | justify-content: space-between; 959 | list-style: none; 960 | margin: 0; 961 | padding: 0; 962 | } 963 | 964 | .main-nav li { 965 | margin: 0; 966 | padding: 0; 967 | } 968 | 969 | #search { 970 | display: none; 971 | } 972 | 973 | #list_results { 974 | display: none; 975 | z-index: 10 !important; 976 | } 977 | 978 | #guestbooks___guestbook-made-with { 979 | color: var(--accent-3); 980 | } 981 | 982 | #guestbooks___guestbook-messages-container blockquote { 983 | border: none; 984 | color: var(--text); 985 | font-style: normal; 986 | margin: 0; 987 | padding: 0; 988 | } 989 | 990 | #guestbooks___guestbook-messages-container > div { 991 | background: var(--accent-1); 992 | border: 1px solid var(--accent-2); 993 | border-radius: var(--border-radius); 994 | margin: 1.5rem 0; 995 | padding: 0.1rem 3rem 2rem; 996 | } 997 | 998 | #guestbooks___challenge-answer-container br, 999 | .guestbooks___input-container label[for="challengeQuestionAnswer"] { 1000 | display: none; 1001 | } 1002 | 1003 | footer { 1004 | color: var(--accent-3); 1005 | font-size: 1.6rem; 1006 | margin: 0 auto 2rem; 1007 | max-width: var(--site-width); 1008 | padding: 0.5rem 2rem 3rem; 1009 | text-align: center; 1010 | } 1011 | 1012 | footer p { 1013 | margin: 0; 1014 | } 1015 | 1016 | .credits { 1017 | margin-top: 3rem; 1018 | } 1019 | 1020 | #to-top { 1021 | display: none; 1022 | } 1023 | 1024 | .to-top { 1025 | background: var(--text); 1026 | border-radius: 50%; 1027 | border: none; 1028 | bottom: 1.75rem; 1029 | box-shadow: none; 1030 | cursor: pointer; 1031 | height: 3.6rem; 1032 | opacity: 70%; 1033 | padding: 0 1rem; 1034 | position: fixed; 1035 | right: 1.75rem; 1036 | transition: all 0.2s ease; 1037 | vertical-align: middle; 1038 | width: 3.6rem; 1039 | } 1040 | 1041 | .to-top:hover { 1042 | opacity: 100%; 1043 | } 1044 | 1045 | .to-top svg { 1046 | display: block; 1047 | fill: var(--background); 1048 | } 1049 | 1050 | .tinylytics_kudos, 1051 | .tiny_hits, 1052 | a.conversation-on-mb, 1053 | a.reply-on-mastodon, 1054 | a.reply-by-email { 1055 | background-color: var(--accent-1); 1056 | border-radius: var(--border-radius); 1057 | border: 1px solid var(--accent-2); 1058 | color: var(--accent-3); 1059 | display: inline-block; 1060 | font-size: 1.4rem; 1061 | line-height: 1.6; 1062 | margin: 2px 0; 1063 | padding: 2px 10px; 1064 | text-decoration: none; 1065 | } 1066 | 1067 | .tinylytics_kudos:hover, 1068 | a.conversation-on-mb:hover, 1069 | a.reply-on-mastodon:hover, 1070 | .tinylytics_kudos:active, 1071 | a.reply-by-email:hover, 1072 | a.reply-by-email:active, 1073 | a.conversation-on-mb:active, 1074 | a.reply-on-mastodon:active, 1075 | .did_select { 1076 | background: var(--link); 1077 | border: 1px solid var(--link); 1078 | color: var(--background); 1079 | } 1080 | 1081 | .tiny_webring { 1082 | display: block; 1083 | } 1084 | 1085 | .tiny_uptime::before { 1086 | content: " · "; 1087 | } 1088 | 1089 | .tiny_countries { 1090 | display: block; 1091 | font-size: 2rem; 1092 | letter-spacing: 2px; 1093 | line-height: 1; 1094 | margin: 4rem auto 0 auto; 1095 | max-width: 78rem; 1096 | word-break: break-word; 1097 | } 1098 | 1099 | a.tinylytics_webring { 1100 | display: inline; 1101 | line-height: 30px; 1102 | } 1103 | 1104 | .tinylytics_webring_avatar { 1105 | background: var(--background); 1106 | border-radius: var(--border-radius); 1107 | height: auto; 1108 | margin-right: 6px; 1109 | vertical-align: middle; 1110 | width: 24px; 1111 | } 1112 | 1113 | .microblog_collection { 1114 | display: grid !important; 1115 | grid-template-columns: repeat(3, 1fr) !important; 1116 | gap: 1rem !important; 1117 | width: 100% !important; 1118 | margin: 3rem auto !important; 1119 | width: 100% !important; 1120 | } 1121 | 1122 | .microblog_collection img { 1123 | width: 100% !important; 1124 | height: auto !important; 1125 | object-fit: cover !important; 1126 | aspect-ratio: 1 / 1; 1127 | margin: 0 !important; 1128 | border-radius: var(--border-radius) !important; 1129 | } 1130 | 1131 | .microblog_collection img:hover { 1132 | -moz-filter: brightness(70%); 1133 | -webkit-filter: brightness(70%); 1134 | filter: brightness(70%); 1135 | transition: ease-in-out 0.25s; 1136 | } 1137 | 1138 | @media (max-width: 600px) { 1139 | .microblog_collection { 1140 | grid-template-columns: repeat(2, 1fr) !important; 1141 | } 1142 | } 1143 | 1144 | @media (max-width: 375px) { 1145 | .microblog_collection { 1146 | grid-template-columns: repeat(1, 1fr) !important; 1147 | } 1148 | } 1149 | 1150 | .microblog_collection img:hover { 1151 | filter: brightness(70%); 1152 | } 1153 | 1154 | .microblog_lightbox_nav { 1155 | font-size: 2rem !important; 1156 | line-height: 40px; 1157 | } 1158 | 1159 | #microblog_lightbox_close_btn { 1160 | font-size: 2.5rem !important; 1161 | } 1162 | 1163 | div.e-content { 1164 | clear: both; 1165 | } 1166 | 1167 | .microblog_book { 1168 | border-radius: 0; 1169 | margin: 2.4rem 0 0 2rem !important; 1170 | border: 1px solid var(--accent-2); 1171 | object-fit: contain; 1172 | float: right; 1173 | text-align: right; 1174 | max-width: 7rem !important; 1175 | } 1176 | 1177 | div.e-content .microblog_book { 1178 | margin-top: 0 !important; 1179 | } 1180 | 1181 | img.bookshelf__cover { 1182 | border-radius: 0; 1183 | } 1184 | 1185 | @media only screen and (max-width: 768px) { 1186 | body { 1187 | line-height: 1.5111; 1188 | overscroll-behavior: contain; 1189 | } 1190 | 1191 | .header { 1192 | margin: 0; 1193 | } 1194 | 1195 | .site-title { 1196 | font-size: 1.8rem; 1197 | } 1198 | 1199 | .site-nav { 1200 | background: var(--background); 1201 | font-size: 2rem; 1202 | } 1203 | 1204 | .site-nav ul { 1205 | height: 100dvmax; 1206 | justify-content: start; 1207 | padding: 4rem 0; 1208 | } 1209 | 1210 | .nav-menu { 1211 | background-color: var(--background); 1212 | border-radius: 0; 1213 | flex-direction: column; 1214 | height: 100dvmax; 1215 | left: -100%; 1216 | position: fixed; 1217 | text-align: center; 1218 | top: 0; 1219 | transition: 0.3s; 1220 | width: 100%; 1221 | z-index: 10000; 1222 | } 1223 | 1224 | .nav-menu.active { 1225 | left: 0; 1226 | margin: 0; 1227 | padding: 10rem 0; 1228 | top: 0; 1229 | } 1230 | 1231 | .nav-item { 1232 | margin: 1.5rem 0; 1233 | } 1234 | 1235 | .hamburger { 1236 | cursor: pointer; 1237 | display: block; 1238 | z-index: 10010; 1239 | } 1240 | 1241 | .hamburger.active { 1242 | position: fixed; 1243 | right: 20px; 1244 | } 1245 | 1246 | .hamburger.active .bar:nth-child(2) { 1247 | opacity: 0; 1248 | } 1249 | 1250 | .hamburger.active .bar:nth-child(1) { 1251 | transform: translateY(5px) rotate(45deg); 1252 | } 1253 | 1254 | .hamburger.active .bar:nth-child(3) { 1255 | transform: translateY(-5px) rotate(-45deg); 1256 | } 1257 | 1258 | .pinned { 1259 | margin-left: -1rem; 1260 | margin-right: -1rem; 1261 | width: calc(100% + 2rem); 1262 | } 1263 | 1264 | .to-top { 1265 | opacity: 100%; 1266 | } 1267 | 1268 | input.subscribe-input { 1269 | width: 100%; 1270 | } 1271 | 1272 | input.subscribe-submit { 1273 | padding: 9px; 1274 | width: 100%; 1275 | } 1276 | } 1277 | --------------------------------------------------------------------------------