From 61fbce70abd2cafaef960f5e787a97a3a828d74e Mon Sep 17 00:00:00 2001 From: frosty Date: Tue, 17 Jun 2025 04:38:15 -0400 Subject: remove static fonts, update posts, clean up layout --- content/_index.md | 3 +- content/posts/hello-world.md | 11 -- content/posts/neovim-is-usable-without-plugins.md | 90 +++++++++++ content/posts/neovim-without-plugins.md | 103 ------------- content/todo.md | 8 +- hugo.toml | 1 - layouts/partials/footer.html | 14 +- static/fonts/noto-serif-v30-latin-100.ttf | Bin 33084 -> 0 bytes static/fonts/noto-serif-v30-latin-100.woff2 | Bin 15064 -> 0 bytes static/fonts/noto-serif-v30-latin-100italic.ttf | Bin 36816 -> 0 bytes static/fonts/noto-serif-v30-latin-100italic.woff2 | Bin 15896 -> 0 bytes static/fonts/noto-serif-v30-latin-200.ttf | Bin 33120 -> 0 bytes static/fonts/noto-serif-v30-latin-200.woff2 | Bin 15264 -> 0 bytes static/fonts/noto-serif-v30-latin-200italic.ttf | Bin 36960 -> 0 bytes static/fonts/noto-serif-v30-latin-200italic.woff2 | Bin 16524 -> 0 bytes static/fonts/noto-serif-v30-latin-300.ttf | Bin 33096 -> 0 bytes static/fonts/noto-serif-v30-latin-300.woff2 | Bin 15204 -> 0 bytes static/fonts/noto-serif-v30-latin-300italic.ttf | Bin 36864 -> 0 bytes static/fonts/noto-serif-v30-latin-300italic.woff2 | Bin 16484 -> 0 bytes static/fonts/noto-serif-v30-latin-500.ttf | Bin 33056 -> 0 bytes static/fonts/noto-serif-v30-latin-500.woff2 | Bin 15144 -> 0 bytes static/fonts/noto-serif-v30-latin-500italic.ttf | Bin 36844 -> 0 bytes static/fonts/noto-serif-v30-latin-500italic.woff2 | Bin 16268 -> 0 bytes static/fonts/noto-serif-v30-latin-600.ttf | Bin 33088 -> 0 bytes static/fonts/noto-serif-v30-latin-600.woff2 | Bin 15312 -> 0 bytes static/fonts/noto-serif-v30-latin-600italic.ttf | Bin 36892 -> 0 bytes static/fonts/noto-serif-v30-latin-600italic.woff2 | Bin 16264 -> 0 bytes static/fonts/noto-serif-v30-latin-700.ttf | Bin 32960 -> 0 bytes static/fonts/noto-serif-v30-latin-700.woff2 | Bin 15160 -> 0 bytes static/fonts/noto-serif-v30-latin-700italic.ttf | Bin 36764 -> 0 bytes static/fonts/noto-serif-v30-latin-700italic.woff2 | Bin 15824 -> 0 bytes static/fonts/noto-serif-v30-latin-800.ttf | Bin 33112 -> 0 bytes static/fonts/noto-serif-v30-latin-800.woff2 | Bin 15388 -> 0 bytes static/fonts/noto-serif-v30-latin-800italic.ttf | Bin 36948 -> 0 bytes static/fonts/noto-serif-v30-latin-800italic.woff2 | Bin 16764 -> 0 bytes static/fonts/noto-serif-v30-latin-900.ttf | Bin 33108 -> 0 bytes static/fonts/noto-serif-v30-latin-900.woff2 | Bin 15192 -> 0 bytes static/fonts/noto-serif-v30-latin-900italic.ttf | Bin 36860 -> 0 bytes static/fonts/noto-serif-v30-latin-900italic.woff2 | Bin 16640 -> 0 bytes static/fonts/noto-serif-v30-latin-italic.ttf | Bin 36712 -> 0 bytes static/fonts/noto-serif-v30-latin-italic.woff2 | Bin 15664 -> 0 bytes static/fonts/noto-serif-v30-latin-regular.ttf | Bin 32984 -> 0 bytes static/fonts/noto-serif-v30-latin-regular.woff2 | Bin 14400 -> 0 bytes static/img/pfp.png | Bin 74846 -> 0 bytes themes/polaris/assets/css/noto-serif.css | 179 ---------------------- themes/polaris/assets/css/style.css | 80 +++++----- themes/polaris/layouts/_default/baseof.html | 19 +-- themes/polaris/layouts/_default/single.html | 2 +- themes/polaris/layouts/partials/header.html | 20 +++ themes/polaris/layouts/partials/nav.html | 29 ++-- themes/polaris/layouts/partials/toc.html | 6 + 51 files changed, 189 insertions(+), 376 deletions(-) delete mode 100644 content/posts/hello-world.md create mode 100644 content/posts/neovim-is-usable-without-plugins.md delete mode 100644 content/posts/neovim-without-plugins.md delete mode 100644 static/fonts/noto-serif-v30-latin-100.ttf delete mode 100644 static/fonts/noto-serif-v30-latin-100.woff2 delete mode 100644 static/fonts/noto-serif-v30-latin-100italic.ttf delete mode 100644 static/fonts/noto-serif-v30-latin-100italic.woff2 delete mode 100644 static/fonts/noto-serif-v30-latin-200.ttf delete mode 100644 static/fonts/noto-serif-v30-latin-200.woff2 delete mode 100644 static/fonts/noto-serif-v30-latin-200italic.ttf delete mode 100644 static/fonts/noto-serif-v30-latin-200italic.woff2 delete mode 100644 static/fonts/noto-serif-v30-latin-300.ttf delete mode 100644 static/fonts/noto-serif-v30-latin-300.woff2 delete mode 100644 static/fonts/noto-serif-v30-latin-300italic.ttf delete mode 100644 static/fonts/noto-serif-v30-latin-300italic.woff2 delete mode 100644 static/fonts/noto-serif-v30-latin-500.ttf delete mode 100644 static/fonts/noto-serif-v30-latin-500.woff2 delete mode 100644 static/fonts/noto-serif-v30-latin-500italic.ttf delete mode 100644 static/fonts/noto-serif-v30-latin-500italic.woff2 delete mode 100644 static/fonts/noto-serif-v30-latin-600.ttf delete mode 100644 static/fonts/noto-serif-v30-latin-600.woff2 delete mode 100644 static/fonts/noto-serif-v30-latin-600italic.ttf delete mode 100644 static/fonts/noto-serif-v30-latin-600italic.woff2 delete mode 100644 static/fonts/noto-serif-v30-latin-700.ttf delete mode 100644 static/fonts/noto-serif-v30-latin-700.woff2 delete mode 100644 static/fonts/noto-serif-v30-latin-700italic.ttf delete mode 100644 static/fonts/noto-serif-v30-latin-700italic.woff2 delete mode 100644 static/fonts/noto-serif-v30-latin-800.ttf delete mode 100644 static/fonts/noto-serif-v30-latin-800.woff2 delete mode 100644 static/fonts/noto-serif-v30-latin-800italic.ttf delete mode 100644 static/fonts/noto-serif-v30-latin-800italic.woff2 delete mode 100644 static/fonts/noto-serif-v30-latin-900.ttf delete mode 100644 static/fonts/noto-serif-v30-latin-900.woff2 delete mode 100644 static/fonts/noto-serif-v30-latin-900italic.ttf delete mode 100644 static/fonts/noto-serif-v30-latin-900italic.woff2 delete mode 100644 static/fonts/noto-serif-v30-latin-italic.ttf delete mode 100644 static/fonts/noto-serif-v30-latin-italic.woff2 delete mode 100644 static/fonts/noto-serif-v30-latin-regular.ttf delete mode 100644 static/fonts/noto-serif-v30-latin-regular.woff2 delete mode 100644 static/img/pfp.png delete mode 100644 themes/polaris/assets/css/noto-serif.css create mode 100644 themes/polaris/layouts/partials/header.html create mode 100644 themes/polaris/layouts/partials/toc.html diff --git a/content/_index.md b/content/_index.md index 9fbbd0c..592065d 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,3 +1,4 @@ -Hi there, I'm frosty. I'm primarily interested in meteorology, systems administration, and photography; I also like to experiment with minimalistic software setups and unconventional workflows. +Hi there, I'm frosty. I'm primarily interested in meteorology, systems administration, and photography; I also like to experiment with minimalistic software setups and unconventional workflows. I'm also a sucker for low-bandwidth, simple to navigate, content-rich websites. I don't consider myself a software developer, but I do write some code here and there. My favorite languages are C and Go, and I much prefer backend to frontend. + diff --git a/content/posts/hello-world.md b/content/posts/hello-world.md deleted file mode 100644 index f80d9fe..0000000 --- a/content/posts/hello-world.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: "Hello, World!" -date: "2025-05-19" ---- - -Hello and welcome! This is an introduction to my website. For the time being, you can read more [about me][about], or check up on what's up with me [right now][now]. - -That's all I've got at the moment, see you soon! - -[about]: /about.html -[now]: /now.html diff --git a/content/posts/neovim-is-usable-without-plugins.md b/content/posts/neovim-is-usable-without-plugins.md new file mode 100644 index 0000000..0fadb18 --- /dev/null +++ b/content/posts/neovim-is-usable-without-plugins.md @@ -0,0 +1,90 @@ +--- +title: "(Neo)vim is usable without plugins" +date: "2025-06-17" +--- + +Vim and Neovim are extremely powerful editors, but despite having lots of features built-in, many folk reach for third-party plugins quite easily. Here are a few common features that may be found of use which are built in to the editor. + +## Completion (Vim) + +Completion functions are all prefixed with `C-x` in insert mode. Take this snippet from the `ins-completion` help section for reference: + +```txt {tabWidth=0} +In Insert and Replace mode, there are several commands to complete part of a +keyword or line that has been typed. This is useful if you are using +complicated keywords (e.g., function names with capitals and underscores). + +Completion can be done for: + +1. Whole lines |i_CTRL-X_CTRL-L| +2. keywords in the current file |i_CTRL-X_CTRL-N| +3. keywords in 'dictionary' |i_CTRL-X_CTRL-K| +4. keywords in 'thesaurus', thesaurus-style |i_CTRL-X_CTRL-T| +5. keywords in the current and included files |i_CTRL-X_CTRL-I| +6. tags |i_CTRL-X_CTRL-]| +7. file names |i_CTRL-X_CTRL-F| +8. definitions or macros |i_CTRL-X_CTRL-D| +9. Vim command-line |i_CTRL-X_CTRL-V| +10. User defined completion |i_CTRL-X_CTRL-U| +11. omni completion |i_CTRL-X_CTRL-O| +12. Spelling suggestions |i_CTRL-X_s| +13. keywords in 'complete' |i_CTRL-N| |i_CTRL-P| +``` + +Highlights are omni completion - often tied to LSP, spelling suggestions, and file names. + +## LSP (Neovim) + +This is easier to set up than ever thanks to Neovim v0.11 adding `vim.lsp.Config`. + +For starters, a configuration file for each language server must be created. Below is an example of one for `gopls`: + +```lua +return { + cmd = { "gopls" }, + root_markers = { ".git", "go.mod", "go.work" }, + filetypes = { "go", "gomod", "gotmpl", "gowork" }, +} +``` + +Then, just enable the server: + +```vim +if has('nvim-0.11') + if executable('gopls') + lua vim.lsp.enable('gopls') + endif +endif +``` + +See the [Neovim docs](https://neovim.io/doc/user/lsp.html#vim.lsp.Config) for more information. + +## Fuzzy Finding (Vim) + +This is self-explanatory. Vim has recursive search support, along with wildcards. + +```vim +" Include subdirectories in search path +set path+=** + +" Add exclusions from recursive searches +set wildignore+=**/.git/**,**/build/**,**/node_modules/** + +" Bind a key for searching +nnoremap :e **/* +``` + +## Tree-sitter (Neovim) + +Tree-sitter parsers must be installed with an external package manager, ideally the one your operating system already uses. + +Other than that, Neovim should start Tree-sitter with just the below code: + +```vim +if has('nvim') + augroup StartTreesitter + autocmd! + autocmd FileType * lua pcall(vim.treesitter.start) + augroup END +endif +``` diff --git a/content/posts/neovim-without-plugins.md b/content/posts/neovim-without-plugins.md deleted file mode 100644 index 8093729..0000000 --- a/content/posts/neovim-without-plugins.md +++ /dev/null @@ -1,103 +0,0 @@ ---- -title: "Neovim without plugins" -date: "2025-06-04" ---- - -I use a Vi-like editor most of the time. Nowadays, it's Neovim purely because it's much faster than Vim in my experience, and it's pushing for new features out of the box instead of having to rely on many third-party plugins. Frankly, I don't care about Lua support, and I still try to use VimL where I can. - -Regardless, I wanted to showcase some of the features that people usually reach for plugins to achieve; who knows, it might come in handy. - -## Completion - -Do note, this says completion, not **auto-completion**. I often find auto-completion annoying, so I haven't bothered looking into how to achieve it. Though, you likely could do something with autocommands. - -Anyways, completion is a built in feature, and it's bound to `C-x` in insert mode, followed by another keybind. Take this snippet from the `ins-completion` section for reference: - -```txt {tabWidth=0} -In Insert and Replace mode, there are several commands to complete part of a -keyword or line that has been typed. This is useful if you are using -complicated keywords (e.g., function names with capitals and underscores). - -Completion can be done for: - -1. Whole lines |i_CTRL-X_CTRL-L| -2. keywords in the current file |i_CTRL-X_CTRL-N| -3. keywords in 'dictionary' |i_CTRL-X_CTRL-K| -4. keywords in 'thesaurus', thesaurus-style |i_CTRL-X_CTRL-T| -5. keywords in the current and included files |i_CTRL-X_CTRL-I| -6. tags |i_CTRL-X_CTRL-]| -7. file names |i_CTRL-X_CTRL-F| -8. definitions or macros |i_CTRL-X_CTRL-D| -9. Vim command-line |i_CTRL-X_CTRL-V| -10. User defined completion |i_CTRL-X_CTRL-U| -11. omni completion |i_CTRL-X_CTRL-O| -12. Spelling suggestions |i_CTRL-X_s| -13. keywords in 'complete' |i_CTRL-N| |i_CTRL-P| -``` - -It's quite useful to use `C-x C-o` for `omnifunc` completion, which the built-in LSP client sets when enabled. Speaking of which... - -## LSP - -This is easier to set up than ever thanks to Neovim 0.11 adding `vim.lsp.config()`. Take this basic example of using gopls: - -Add the following to `lsp/gopls.lua`: - -```lua -return { - cmd = { "gopls" }, - root_markers = { ".git", "go.mod", "go.work" }, - filetypes = { "go", "gomod", "gotmpl", "gowork" }, -} -``` - -Then, in `init.vim` you can tell Neovim to enable it conditionally: - -```vim -if has('nvim-0.11') - if executable('gopls') - lua vim.lsp.enable('gopls') - endif -endif -``` - -It's really simple, but it manages to work great with omnicompletion, and I haven't bothered to do much tweaking. - -## Fuzzy finding - -The number one plugin I see people reach for nowadays is likely [Telescope][telescope.nvim], and it seems like a great project. However, I don't find it very necessary. You can achieve the same good old behavior of [ctrlp.vim][ctrlp.vim] with just a few lines in your configuration! - -```vim -set path+=** -nnoremap :e **/* -``` - -Okay, what are we doing here? First off, we're adding infinite recursion to our search path, so that all subdirectories of subdirectories are searched. Secondly, we bind the mighty `C-p` to our search. In practice, you'd enter: `file.txt` to switch to another file. You can ignore certain directories from appearing by setting `wildignore`. For example: - -```vim -set wildignore+=**/.git/** -set wildignore+=**/build/** -set wildignore+=**/node_modules/** -``` - -## Tree-sitter - -This is a very popular topic among Neovim users. I don't think it truly deserves all the hype it gets, but I do find it quite useful. I use it both on Neovim and Emacs. Anyways, there's a popular plugin for installing Tree-sitter parsers and activating them, but it's not necessary to use Tree-sitter. - -Firstly, the Tree-sitter parsers must be installed externally outside your editor environment. Some may find this annoying, but I think this is a positive, because I don't like my editor handling this for me. I have a package manager for a reason! It might take more work, but it feels much cleaner having it all in one place. I use Gentoo, and a few Tree-sitter parsers are packaged in the official repository. Though, I've packaged some in my personal overlay as well. - -Once they're installed, all you have to do is add an autocommand to start the Tree-sitter client. Preferably inside an autocommand group: - -```vim -augroup StartTreesitter - autocmd! - autocmd FileType * lua pcall(vim.treesitter.start) -augroup END -``` - -You may also want to wrap this inside a `has('nvim')` if you want to support Vim without errors. And that's it, you can play around with the syntax tree and get better highlighting. - -That's all I've got, but more may be added here in the future. This is my first informational post, so let me know what you think if you're so inclined. - -[telescope.nvim]: https://github.com/nvim-telescope/telescope.nvim -[ctrlp.vim]: https://github.com/kien/ctrlp.vim diff --git a/content/todo.md b/content/todo.md index 06444aa..a46d8a2 100644 --- a/content/todo.md +++ b/content/todo.md @@ -1,10 +1,10 @@ --- -title: "Todo" +title: "TODO" subtext: "Oh boy, will this ever get filled out?" --- This is more of a meta page to list out tasks related to the website that need to be done. -* [ ] Create proper favicon and other image-related branding. -* [ ] Flesh out the RSS XML (prototype is up). -* [ ] Apply for small-size website clubs, after optimizing assets such as the fonts and images. +* Create favicon and other image-related branding. +* Separate content into categories other than "posts." +* Manually template feed XMLs. diff --git a/hugo.toml b/hugo.toml index 709058b..58b1619 100644 --- a/hugo.toml +++ b/hugo.toml @@ -20,7 +20,6 @@ posts = "/:2006/:01/:02/:title/" [params] subtext = "Lots of ideas, not many implementations." -iconURL = "/img/pfp.png" [params.author] name = "frosty" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 906b7dc..e9340ee 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,6 +1,8 @@ - -

Last built {{ time.Now | time.Format "Jan 02 2006" }}.

-CC0 1.0 -Gentoo -Vim: the editor -

This website's work is marked with CC0 1.0 Universal; the source code is licensed under the Unlicense. See the Git repository.

+ diff --git a/static/fonts/noto-serif-v30-latin-100.ttf b/static/fonts/noto-serif-v30-latin-100.ttf deleted file mode 100644 index 53bcac4..0000000 Binary files a/static/fonts/noto-serif-v30-latin-100.ttf and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-100.woff2 b/static/fonts/noto-serif-v30-latin-100.woff2 deleted file mode 100644 index 461a15c..0000000 Binary files a/static/fonts/noto-serif-v30-latin-100.woff2 and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-100italic.ttf b/static/fonts/noto-serif-v30-latin-100italic.ttf deleted file mode 100644 index f5c62a8..0000000 Binary files a/static/fonts/noto-serif-v30-latin-100italic.ttf and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-100italic.woff2 b/static/fonts/noto-serif-v30-latin-100italic.woff2 deleted file mode 100644 index a989df5..0000000 Binary files a/static/fonts/noto-serif-v30-latin-100italic.woff2 and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-200.ttf b/static/fonts/noto-serif-v30-latin-200.ttf deleted file mode 100644 index ae6a490..0000000 Binary files a/static/fonts/noto-serif-v30-latin-200.ttf and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-200.woff2 b/static/fonts/noto-serif-v30-latin-200.woff2 deleted file mode 100644 index 7aee8fa..0000000 Binary files a/static/fonts/noto-serif-v30-latin-200.woff2 and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-200italic.ttf b/static/fonts/noto-serif-v30-latin-200italic.ttf deleted file mode 100644 index 7b4f868..0000000 Binary files a/static/fonts/noto-serif-v30-latin-200italic.ttf and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-200italic.woff2 b/static/fonts/noto-serif-v30-latin-200italic.woff2 deleted file mode 100644 index abfe76d..0000000 Binary files a/static/fonts/noto-serif-v30-latin-200italic.woff2 and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-300.ttf b/static/fonts/noto-serif-v30-latin-300.ttf deleted file mode 100644 index 392327f..0000000 Binary files a/static/fonts/noto-serif-v30-latin-300.ttf and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-300.woff2 b/static/fonts/noto-serif-v30-latin-300.woff2 deleted file mode 100644 index acec59d..0000000 Binary files a/static/fonts/noto-serif-v30-latin-300.woff2 and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-300italic.ttf b/static/fonts/noto-serif-v30-latin-300italic.ttf deleted file mode 100644 index 63bded2..0000000 Binary files a/static/fonts/noto-serif-v30-latin-300italic.ttf and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-300italic.woff2 b/static/fonts/noto-serif-v30-latin-300italic.woff2 deleted file mode 100644 index d5b4788..0000000 Binary files a/static/fonts/noto-serif-v30-latin-300italic.woff2 and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-500.ttf b/static/fonts/noto-serif-v30-latin-500.ttf deleted file mode 100644 index 79ad9b5..0000000 Binary files a/static/fonts/noto-serif-v30-latin-500.ttf and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-500.woff2 b/static/fonts/noto-serif-v30-latin-500.woff2 deleted file mode 100644 index a7b74d6..0000000 Binary files a/static/fonts/noto-serif-v30-latin-500.woff2 and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-500italic.ttf b/static/fonts/noto-serif-v30-latin-500italic.ttf deleted file mode 100644 index 7c9c147..0000000 Binary files a/static/fonts/noto-serif-v30-latin-500italic.ttf and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-500italic.woff2 b/static/fonts/noto-serif-v30-latin-500italic.woff2 deleted file mode 100644 index d370936..0000000 Binary files a/static/fonts/noto-serif-v30-latin-500italic.woff2 and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-600.ttf b/static/fonts/noto-serif-v30-latin-600.ttf deleted file mode 100644 index 680ffa1..0000000 Binary files a/static/fonts/noto-serif-v30-latin-600.ttf and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-600.woff2 b/static/fonts/noto-serif-v30-latin-600.woff2 deleted file mode 100644 index d55970e..0000000 Binary files a/static/fonts/noto-serif-v30-latin-600.woff2 and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-600italic.ttf b/static/fonts/noto-serif-v30-latin-600italic.ttf deleted file mode 100644 index a039709..0000000 Binary files a/static/fonts/noto-serif-v30-latin-600italic.ttf and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-600italic.woff2 b/static/fonts/noto-serif-v30-latin-600italic.woff2 deleted file mode 100644 index febfe8e..0000000 Binary files a/static/fonts/noto-serif-v30-latin-600italic.woff2 and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-700.ttf b/static/fonts/noto-serif-v30-latin-700.ttf deleted file mode 100644 index 0752c38..0000000 Binary files a/static/fonts/noto-serif-v30-latin-700.ttf and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-700.woff2 b/static/fonts/noto-serif-v30-latin-700.woff2 deleted file mode 100644 index 4316712..0000000 Binary files a/static/fonts/noto-serif-v30-latin-700.woff2 and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-700italic.ttf b/static/fonts/noto-serif-v30-latin-700italic.ttf deleted file mode 100644 index 0dc92a4..0000000 Binary files a/static/fonts/noto-serif-v30-latin-700italic.ttf and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-700italic.woff2 b/static/fonts/noto-serif-v30-latin-700italic.woff2 deleted file mode 100644 index 7484c4b..0000000 Binary files a/static/fonts/noto-serif-v30-latin-700italic.woff2 and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-800.ttf b/static/fonts/noto-serif-v30-latin-800.ttf deleted file mode 100644 index 89bf384..0000000 Binary files a/static/fonts/noto-serif-v30-latin-800.ttf and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-800.woff2 b/static/fonts/noto-serif-v30-latin-800.woff2 deleted file mode 100644 index 108d996..0000000 Binary files a/static/fonts/noto-serif-v30-latin-800.woff2 and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-800italic.ttf b/static/fonts/noto-serif-v30-latin-800italic.ttf deleted file mode 100644 index f060477..0000000 Binary files a/static/fonts/noto-serif-v30-latin-800italic.ttf and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-800italic.woff2 b/static/fonts/noto-serif-v30-latin-800italic.woff2 deleted file mode 100644 index 7cb24d0..0000000 Binary files a/static/fonts/noto-serif-v30-latin-800italic.woff2 and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-900.ttf b/static/fonts/noto-serif-v30-latin-900.ttf deleted file mode 100644 index 324295c..0000000 Binary files a/static/fonts/noto-serif-v30-latin-900.ttf and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-900.woff2 b/static/fonts/noto-serif-v30-latin-900.woff2 deleted file mode 100644 index 9f48bf2..0000000 Binary files a/static/fonts/noto-serif-v30-latin-900.woff2 and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-900italic.ttf b/static/fonts/noto-serif-v30-latin-900italic.ttf deleted file mode 100644 index 035942d..0000000 Binary files a/static/fonts/noto-serif-v30-latin-900italic.ttf and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-900italic.woff2 b/static/fonts/noto-serif-v30-latin-900italic.woff2 deleted file mode 100644 index 29ae5c3..0000000 Binary files a/static/fonts/noto-serif-v30-latin-900italic.woff2 and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-italic.ttf b/static/fonts/noto-serif-v30-latin-italic.ttf deleted file mode 100644 index c4bfa60..0000000 Binary files a/static/fonts/noto-serif-v30-latin-italic.ttf and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-italic.woff2 b/static/fonts/noto-serif-v30-latin-italic.woff2 deleted file mode 100644 index ea5b4de..0000000 Binary files a/static/fonts/noto-serif-v30-latin-italic.woff2 and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-regular.ttf b/static/fonts/noto-serif-v30-latin-regular.ttf deleted file mode 100644 index aa19bdb..0000000 Binary files a/static/fonts/noto-serif-v30-latin-regular.ttf and /dev/null differ diff --git a/static/fonts/noto-serif-v30-latin-regular.woff2 b/static/fonts/noto-serif-v30-latin-regular.woff2 deleted file mode 100644 index c8f0c13..0000000 Binary files a/static/fonts/noto-serif-v30-latin-regular.woff2 and /dev/null differ diff --git a/static/img/pfp.png b/static/img/pfp.png deleted file mode 100644 index e119db9..0000000 Binary files a/static/img/pfp.png and /dev/null differ diff --git a/themes/polaris/assets/css/noto-serif.css b/themes/polaris/assets/css/noto-serif.css deleted file mode 100644 index f902c5e..0000000 --- a/themes/polaris/assets/css/noto-serif.css +++ /dev/null @@ -1,179 +0,0 @@ -/* noto-serif-100 - latin */ -@font-face { - font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ - font-family: 'Noto Serif'; - font-style: normal; - font-weight: 100; - src: url('../fonts/noto-serif-v30-latin-100.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ - url('../fonts/noto-serif-v30-latin-100.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ -} - -/* noto-serif-100italic - latin */ -@font-face { - font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ - font-family: 'Noto Serif'; - font-style: italic; - font-weight: 100; - src: url('../fonts/noto-serif-v30-latin-100italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ - url('../fonts/noto-serif-v30-latin-100italic.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ -} - -/* noto-serif-200 - latin */ -@font-face { - font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ - font-family: 'Noto Serif'; - font-style: normal; - font-weight: 200; - src: url('../fonts/noto-serif-v30-latin-200.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ - url('../fonts/noto-serif-v30-latin-200.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ -} - -/* noto-serif-200italic - latin */ -@font-face { - font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ - font-family: 'Noto Serif'; - font-style: italic; - font-weight: 200; - src: url('../fonts/noto-serif-v30-latin-200italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ - url('../fonts/noto-serif-v30-latin-200italic.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ -} - -/* noto-serif-300 - latin */ -@font-face { - font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ - font-family: 'Noto Serif'; - font-style: normal; - font-weight: 300; - src: url('../fonts/noto-serif-v30-latin-300.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ - url('../fonts/noto-serif-v30-latin-300.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ -} - -/* noto-serif-300italic - latin */ -@font-face { - font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ - font-family: 'Noto Serif'; - font-style: italic; - font-weight: 300; - src: url('../fonts/noto-serif-v30-latin-300italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ - url('../fonts/noto-serif-v30-latin-300italic.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ -} - -/* noto-serif-regular - latin */ -@font-face { - font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ - font-family: 'Noto Serif'; - font-style: normal; - font-weight: 400; - src: url('../fonts/noto-serif-v30-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ - url('../fonts/noto-serif-v30-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ -} - -/* noto-serif-italic - latin */ -@font-face { - font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ - font-family: 'Noto Serif'; - font-style: italic; - font-weight: 400; - src: url('../fonts/noto-serif-v30-latin-italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ - url('../fonts/noto-serif-v30-latin-italic.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ -} - -/* noto-serif-500 - latin */ -@font-face { - font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ - font-family: 'Noto Serif'; - font-style: normal; - font-weight: 500; - src: url('../fonts/noto-serif-v30-latin-500.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ - url('../fonts/noto-serif-v30-latin-500.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ -} - -/* noto-serif-500italic - latin */ -@font-face { - font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ - font-family: 'Noto Serif'; - font-style: italic; - font-weight: 500; - src: url('../fonts/noto-serif-v30-latin-500italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ - url('../fonts/noto-serif-v30-latin-500italic.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ -} - -/* noto-serif-600 - latin */ -@font-face { - font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ - font-family: 'Noto Serif'; - font-style: normal; - font-weight: 600; - src: url('../fonts/noto-serif-v30-latin-600.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ - url('../fonts/noto-serif-v30-latin-600.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ -} - -/* noto-serif-600italic - latin */ -@font-face { - font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ - font-family: 'Noto Serif'; - font-style: italic; - font-weight: 600; - src: url('../fonts/noto-serif-v30-latin-600italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ - url('../fonts/noto-serif-v30-latin-600italic.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ -} - -/* noto-serif-700 - latin */ -@font-face { - font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ - font-family: 'Noto Serif'; - font-style: normal; - font-weight: 700; - src: url('../fonts/noto-serif-v30-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ - url('../fonts/noto-serif-v30-latin-700.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ -} - -/* noto-serif-700italic - latin */ -@font-face { - font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ - font-family: 'Noto Serif'; - font-style: italic; - font-weight: 700; - src: url('../fonts/noto-serif-v30-latin-700italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ - url('../fonts/noto-serif-v30-latin-700italic.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ -} - -/* noto-serif-800 - latin */ -@font-face { - font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ - font-family: 'Noto Serif'; - font-style: normal; - font-weight: 800; - src: url('../fonts/noto-serif-v30-latin-800.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ - url('../fonts/noto-serif-v30-latin-800.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ -} - -/* noto-serif-800italic - latin */ -@font-face { - font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ - font-family: 'Noto Serif'; - font-style: italic; - font-weight: 800; - src: url('../fonts/noto-serif-v30-latin-800italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ - url('../fonts/noto-serif-v30-latin-800italic.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ -} - -/* noto-serif-900 - latin */ -@font-face { - font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ - font-family: 'Noto Serif'; - font-style: normal; - font-weight: 900; - src: url('../fonts/noto-serif-v30-latin-900.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ - url('../fonts/noto-serif-v30-latin-900.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ -} - -/* noto-serif-900italic - latin */ -@font-face { - font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ - font-family: 'Noto Serif'; - font-style: italic; - font-weight: 900; - src: url('../fonts/noto-serif-v30-latin-900italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ - url('../fonts/noto-serif-v30-latin-900italic.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */ -} diff --git a/themes/polaris/assets/css/style.css b/themes/polaris/assets/css/style.css index 230e5b8..2ca94ef 100644 --- a/themes/polaris/assets/css/style.css +++ b/themes/polaris/assets/css/style.css @@ -7,8 +7,8 @@ --nav-active-background: #eeeeee; --nav-active-foreground: #1a1a1a; --hr-background: #8a8a8a; - --sans-serif-font: Noto Serif, -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif; - --serif-font: Noto Serif, Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; + --sans-serif-font: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif; + --serif-font: Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; --mono-font: monospace; } @@ -19,8 +19,9 @@ body { font-family: var(--sans-serif-font); } -h1, h2, h3, h4, h5, h6 { - font-family: var(--serif-font); +.content h1, .content h2, .content h3 { + padding-bottom: 4px; + border-bottom: 1px #555555 solid; } a { @@ -32,99 +33,99 @@ a:hover { text-decoration: underline; } -.nav-over, main, footer { +.header, .content { max-width: 1000px; margin: 0 auto; } @media only screen and (max-width: 1100px) { - .nav-over, main, footer { + .header, .content { max-width: 800px; } } @media only screen and (max-width: 900px) { - .nav-over, main, footer { + .header, .content { max-width: 700px; } } @media only screen and (max-width: 750px) { - .nav-over, main, footer { + .header, .content { max-width: none; } - .nav-title, main, footer { + .header-top, .content { margin: 0 16px; } - .nav-title h2 { + .header-title { display: block; } } -.nav-under { - background-color: var(--nav-background); - padding: 4px 0; +.header-bottom { + height: 4px; + background: var(--nav-background); } -.nav-title h2 { +.header-title { display: inline-block; margin-top: 0; margin-bottom: 0; } -.nav-title { +.header-top { padding: 16px 0; } -.nav-subtext { +.header-subtext { margin-left: 16px; color: #999999; font-style: italic; } -.nav-over ul { +.header-items { list-style-type: none; margin: 0; padding-left: 0; overflow: hidden; } -.nav-link { +.header-item a { background-color: var(--nav-background); color: var(--nav-foreground); display: block; padding: 8px 12px; } -.link-active { +.header-item-active a { background-color: var(--nav-active-background); color: var(--nav-active-foreground); } -.link-left { +.header-item-left { float: left; } -.link-right { +.header-item-right { float: right; } @media only screen and (max-width: 400px) { - .link-left, .link-right { + .header-item-left, .header-item-right { float: none; } - .nav-under { + .header-bottom { display: none; } - .nav-title h2 { + .header-title { display: block; } - .nav-subtext { + .header-subtext { margin-left: 0; } } @@ -135,27 +136,26 @@ hr { border: none; } -footer { - text-align: center; -} - -.footer-break { - width: 120px; +pre { + padding: 8px; + white-space: pre-wrap; } -.build-date { - font-style: italic; +code { + font-size: 110%; } -.badge { - image-rendering: crisp-edges; +.toc { + background: #101010; + padding: 8px; } -pre { - padding: 8px; - white-space: pre-wrap; +.toc h2 { + margin-top: 0; + margin-bottom: 0; } -code { - font-size: 110%; +.toc > nav > ol { + margin-top: 8px; + margin-bottom: 0; } diff --git a/themes/polaris/layouts/_default/baseof.html b/themes/polaris/layouts/_default/baseof.html index 37a6059..3c052ea 100644 --- a/themes/polaris/layouts/_default/baseof.html +++ b/themes/polaris/layouts/_default/baseof.html @@ -11,30 +11,21 @@ {{ $pageTitle }} - - {{ with resources.Get "css/noto-serif.css" | minify | fingerprint }} - - {{ end }} {{ with resources.Get "css/style.css" | minify | fingerprint }} - + {{ end }} - - -
+ {{ partial "header.html" . }} +
{{ block "main" . }} - {{ .Content }} + {{ . }} {{ end }} -
-
{{ partial "footer.html" . }} -
+ diff --git a/themes/polaris/layouts/_default/single.html b/themes/polaris/layouts/_default/single.html index 56b9d9d..f059c55 100644 --- a/themes/polaris/layouts/_default/single.html +++ b/themes/polaris/layouts/_default/single.html @@ -8,7 +8,7 @@ {{ end }} {{ end }} {{ if or (eq .Section "posts") (.Params.toc) }} - {{ with .TableOfContents }}{{ . }}{{ end }} + {{ partial "toc.html" . }} {{ end }} {{ .Content }} {{ end }} diff --git a/themes/polaris/layouts/partials/header.html b/themes/polaris/layouts/partials/header.html new file mode 100644 index 0000000..5e34bda --- /dev/null +++ b/themes/polaris/layouts/partials/header.html @@ -0,0 +1,20 @@ +
+
+

{{ site.Title }}

+ {{ .Params.subtext | default .Site.Params.subtext }} +
+
    + {{ $currentPage := . }} + {{ range .Site.Menus.left_nav }} +
  • + {{ .Name }} +
  • + {{ end }} + {{ range .Site.Menus.right_nav }} +
  • + {{ .Name }} +
  • + {{ end }} +
+
+
diff --git a/themes/polaris/layouts/partials/nav.html b/themes/polaris/layouts/partials/nav.html index dc1e463..35fb535 100644 --- a/themes/polaris/layouts/partials/nav.html +++ b/themes/polaris/layouts/partials/nav.html @@ -1,17 +1,14 @@ -