|
1 | 1 | # Rusty Typewriter |
2 | 2 |
|
3 | | -Rusty-Typewriter is a theme for Hugo sites made by [math-queiroz](https://github.com/math-queiroz). It's intended to be simple and used for blogs, being mostly inspired by the current [Zen Browser's website](https://zen-browser.app/) in style and other Hugo themes in functionality. It was initially intended for personal use, but made public for whomever find it worth using. |
| 3 | +[](https://github.com/gohugoio/hugo/releases) |
| 4 | +[](LICENSE) |
| 5 | +[](https://github.com/math-queiroz/rusty-typewriter/releases) |
| 6 | +[](https://github.com/math-queiroz/rusty-typewriter/stargazers) |
| 7 | +[](https://github.com/math-queiroz/rusty-typewriter/issues) |
| 8 | + |
| 9 | +A minimalist and elegant Hugo theme inspired by vintage typewriters, perfect for writers, bloggers, and content creators who appreciate a clean, distraction-free writing experience. |
4 | 10 |
|
5 | 11 |  |
6 | 12 |
|
7 | 13 | ## Features |
8 | 14 |
|
9 | | -- Dark/Light Mode |
10 | | -- Search |
11 | | -- Side Pane |
12 | | -- Customization Flgas |
13 | | -- CSS Styling |
14 | | -- I18n support |
15 | | -- Responsive layout |
| 15 | +- 🎨 Clean, minimalist design with a vintage typewriter aesthetic |
| 16 | +- 📱 Fully responsive layout |
| 17 | +- 🔍 Built-in search functionality |
| 18 | +- 📚 Table of contents support |
| 19 | +- 🏷️ Custom taxonomies by default |
| 20 | +- 📝 Rich markdown support with syntax highlighting |
| 21 | +- 📋 Customizable sidebar |
| 22 | +- 🔄 Related posts suggestions |
| 23 | +- 📎 File attachments support |
| 24 | + |
| 25 | +## Quick Start |
| 26 | + |
| 27 | +1. Create a new Hugo site: |
| 28 | +```bash |
| 29 | +hugo new site my-blog |
| 30 | +cd my-blog |
| 31 | +``` |
| 32 | + |
| 33 | +2. Add the theme as a git submodule: |
| 34 | +```bash |
| 35 | +git init |
| 36 | +git submodule add https://github.com/yourusername/rusty-typewriter.git themes/rusty-typewriter |
| 37 | +``` |
| 38 | + |
| 39 | +3. Start the development server: |
| 40 | +```bash |
| 41 | +hugo server |
| 42 | +``` |
| 43 | + |
| 44 | +## Configuration |
| 45 | + |
| 46 | +The theme offers extensive configuration options through your site's `config.toml` file. Here are the main settings: |
| 47 | + |
| 48 | +```toml |
| 49 | +[params.rtwt] |
| 50 | + sidePane = true |
| 51 | + countPageItems = 7 |
| 52 | + |
| 53 | +[params.rtwt.home] |
| 54 | + showBio = true |
| 55 | + showAuthorImg = true |
| 56 | + sidePaneTags = true |
| 57 | + showFeatured = true |
| 58 | + showRecent = true |
| 59 | + hideRecentWhenFeatured = true |
| 60 | + countRecent = 5 |
| 61 | + |
| 62 | +[params.rtwt.side.home] |
| 63 | + sidePaneSticky = false |
| 64 | + taxonomies = ['tags'] |
| 65 | + countTaxonomy = 5 |
16 | 66 |
|
17 | | -## Using the theme |
| 67 | +[params.rtwt.side.single] |
| 68 | + sidePaneSticky = true |
| 69 | + showDetails = true |
| 70 | + showTableOfContents = true |
| 71 | + showAttachments = true |
| 72 | + showRelated = true |
| 73 | + countRelated = 5 |
| 74 | +``` |
18 | 75 |
|
19 | | -Info on how to use the theme can be found [here](https://math-queiroz.github.io/rusty-typewriter/posts/getting-started)! |
| 76 | +### Front Matter Options |
20 | 77 |
|
21 | | -## Documentation |
| 78 | +```toml |
| 79 | ++++ |
| 80 | +title = "Your Post Title" |
| 81 | +date = "2024-03-28" |
| 82 | +tags = ["tag1", "tag2"] |
| 83 | +topics = ["topic1"] |
| 84 | +my_taxonomies = ["value"] |
| 85 | +featured = true |
| 86 | ++++ |
| 87 | +``` |
22 | 88 |
|
23 | | -The documentation for theme features can be found in the [example page](https://math-queiroz.github.io/rusty-typewriter). |
| 89 | +## Customization |
| 90 | + |
| 91 | +### CSS Customization |
| 92 | + |
| 93 | +You can customize the theme's appearance by creating a custom CSS file: |
| 94 | + |
| 95 | +1. Create `assets/css/custom.css` in your site |
| 96 | +2. Add your custom styles |
| 97 | +3. The theme will automatically include your custom CSS |
| 98 | +4. You may take a look at `_root.css` for existing theme values and variables |
| 99 | + |
| 100 | +> If a css file starts with an undescore (_), it will be bundled with the theme default ones, which may affect caching behavior! |
| 101 | +
|
| 102 | +### Layout Customization |
| 103 | + |
| 104 | +The theme's templates can be overridden by creating corresponding files in your site's `layouts` directory. |
24 | 105 |
|
25 | 106 | ## Contributing |
26 | 107 |
|
27 | | -Contributing guidelines soon, for now consider leaving feedback/ideas in discussions, or reporting bugs in issues ;) |
| 108 | +Contributions are welcome! Please feel free to submit a Pull Request. |
| 109 | + |
| 110 | +## License |
| 111 | + |
| 112 | +This theme is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information. |
| 113 | + |
| 114 | +## Credits |
| 115 | + |
| 116 | +- Inspired by vintage typewriters and minimalist design |
| 117 | +- Built with [Hugo](https://gohugo.io/) |
| 118 | +- Icons from [Feather Icons](https://feathericons.com/) |
0 commit comments