···11-# linus
22-33-Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
11+# Linus
4255-To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
66-77-TODO: Delete this and the text above, and describe your gem
33+A minimal Jekyll blog theme. Supports link posts, categories, tags, date archives, pagination, and dark mode out of the box.
8495## Installation
106···2016theme: linus
2117```
22182323-And then execute:
1919+Then execute:
24202521 $ bundle
2622···30263127## Usage
32283333-TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
2929+### Layouts
3030+3131+| Layout | Purpose |
3232+|---|---|
3333+| `default` | Base layout — full HTML document, loads CSS, renders header and footer |
3434+| `blog` | Blog index listing with pagination; also used for date, tag, and category archives |
3535+| `post` | Single post view |
3636+| `page` | Simple content page |
3737+3838+### Writing posts
3939+4040+Create files in `_posts/` with this front matter:
4141+4242+```yaml
4343+---
4444+layout: post
4545+title: "My Post Title"
4646+date: 2026-01-01
4747+category: Notes
4848+author: arthur
4949+tags:
5050+ - some tag
5151+---
5252+```
5353+5454+**Link posts** — set `title` to an empty string and provide a `source` URL. The post title renders as "↪ [fetched page title]" using `jekyll-url-metadata`:
5555+5656+```yaml
5757+---
5858+layout: post
5959+title: ""
6060+source: "https://example.com/article"
6161+category: Links
6262+---
6363+```
6464+6565+### Authors
6666+6767+Define authors in `_data/authors.yml`:
6868+6969+```yaml
7070+arthur:
7171+ name: Arthur Freitas
7272+ uri: https://arthr.me/
7373+```
7474+7575+Reference them in post front matter with the `author` key.
7676+7777+### Category colors
7878+7979+Assign a background color to each category pill:
8080+8181+```yaml
8282+category_colors:
8383+ - name: Links
8484+ color: "#f0e68c"
8585+ - name: Notes
8686+ color: "#fa8072"
8787+```
8888+8989+### Date formats
9090+9191+Customize how dates are displayed using strftime strings:
9292+9393+```yaml
9494+date_formats:
9595+ day: "%b %d, '%y"
9696+ month: "%b, '%y"
9797+ year: "%Y"
9898+```
9999+100100+### Navigation menus
101101+102102+```yaml
103103+main_menu:
104104+ title: Navigate
105105+ items:
106106+ - url: "/about"
107107+ label: About
108108+109109+footer_menu:
110110+ title: Follow
111111+ items:
112112+ - label: RSS
113113+ url: /feed.xml
114114+ rel: alternate
115115+ - label: External Site
116116+ url: https://example.com
117117+ rel: me
118118+ external: true
119119+```
120120+121121+Set `external: true` on any item to open it in a new tab.
122122+123123+### Translations
124124+125125+Override UI strings for archive headings and pagination:
126126+127127+```yaml
128128+translations:
129129+ archive_date_title: "Archives from %date"
130130+ archive_tag_title: "Posts tagged with %tag"
131131+ archive_category_title: "Posts filed under %category"
132132+ blog_pagination_title: "Blog pagination"
133133+ blog_pagination_prev_page: "Previous page"
134134+ blog_pagination_next_page: "Next page"
135135+```
136136+137137+### Pagination
138138+139139+```yaml
140140+paginate: 12
141141+paginate_path: "/pg/:num/"
142142+```
341433535-## Contributing
144144+## Customization
361453737-Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/linus. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](https://www.contributor-covenant.org/) code of conduct.
146146+### Custom styles
147147+148148+Override or extend the theme's CSS by creating `assets/css/theme.css` in your site. This file is loaded last, after all theme styles. Use it to redefine CSS custom properties or add new rules:
149149+150150+```css
151151+:root {
152152+ --font-body: Georgia, serif;
153153+ --color-accent: tomato;
154154+}
155155+```
156156+157157+### Custom fonts
158158+159159+Create `assets/css/fonts.css` in your site to load your own web fonts:
160160+161161+```css
162162+@font-face {
163163+ font-family: 'My Font';
164164+ font-weight: 400;
165165+ src: url('/assets/fonts/myfont.woff2') format('woff2');
166166+}
167167+```
168168+169169+Then reference it in `theme.css`:
170170+171171+```css
172172+:root {
173173+ --font-body: 'My Font', sans-serif;
174174+}
175175+```
3817639177## Development
4017841179To set up your environment to develop this theme, run `bundle install`.
421804343-Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
181181+The repository is also a working Jekyll site for local development. To preview the theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. As you modify theme files, the site regenerates automatically.
441824545-When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
4646-To add a custom directory to your theme-gem, please edit the regexp in `linus.gemspec` accordingly.
183183+Posts in `_posts/` and `index.html` exist only for local testing and are not included in the published gem.
4718448185## License
49186