From 5cd7ed24ce942125ed36b51b8a988b4e0afd61e1 Mon Sep 17 00:00:00 2001 From: John Toniutti Date: Mon, 26 Feb 2024 14:20:54 +0100 Subject: [PATCH] Update readme --- README.md | 41 ++++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 5d89ef3..bef8a84 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,11 @@ # Tallneck -Tallneck is a Jeckyll theme for my personal blog. The name was inspired from one of the machines on my favorite game, Horizon Zero Dawn. +Tallneck is a Jekyll theme for blogs. It is a simple and clean theme with a focus on the responsiveness. Also js free. + +## Preview + +Main branch: [main](https://jekyll-theme-tallneck.pages.dev/) +Dev branch: [dev](https://dev.jekyll-theme-tallneck.pages.dev/develop) ## Installation @@ -18,37 +23,42 @@ theme: jekyll-theme-tallneck And then execute: - $ bundle +```bash +bundle +``` Or install it yourself as: - $ gem install jekyll-theme-tallneck - +```bash +gem install jekyll-theme-tallneck +``` ## Usage ### Customization Create a folder named `assets` in your Jekyll site's root directory. -Then create a folder named `images` inside the `assets` folder and put a replacement for the default banner image named `banner.png` (1200x630) inside it. +Then create a folder named `images` inside the `assets` folder and put a replacement for the default image named `default.webp` or change its name in the `_config.yml` file. -After that, replace the `favicon.ico` and `favicon.svg` file in the root directory with your own favicon. +Then, configure the various plugins and the theme in `_config.yml` to your liking (you can use the [config](/_config.yml) file in this repo as a template). -Then, configure the various plugins in `_config.yml` to your liking. The plugins are: +The preinstalled plugins are: - [jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag) -- [jekyll-toc](https://github.com/toshimaru/jekyll-toc) +- [jekyll-feed](https://github.com/jekyll/jekyll-feed) - [jekyll-sitemap](https://github.com/jekyll/jekyll-sitemap) ### Main pages -Create at the root of your Jekyll site the following pages: +Create at the root of your Jekyll site the following pages (like in this repo): +- `index.md`, which will be the Home page and set the permalink to `/` - `about.md`, which will be the About page and set the permalink to `/about` -- `contact.md`, which will be the Contact page and set the permalink to `/contact` - `cookie.md`, which will be the Cookie Policy page and set the permalink to `/cookie` - `privacy.md`, which will be the Privacy Policy page and set the permalink to `/privacy` - `terms.md`, which will be the Terms of Service page and set the permalink to `/terms` +- `feed.md`, which will be Posts page and set the permalink to `/feed`. +- `projects.md`, which will be the Projects page and set the permalink to `/projects` Also create the file `404.html` with the following content: @@ -65,13 +75,11 @@ To create a new post, add a markdown file in the `_posts` directory and add at t ```yaml --- -layout: post +layout: post # Optional, post is default title: "First post!" -subtitle: "Written in Go." +subtitle: "Written in Go." # Optional date: 2023-01-16 17:40:28 +0100 -image: - path: /assets/images/golang.jpg - alt: golang logo +image: /assets/images/golang.jpg # Optional --- ``` @@ -82,7 +90,6 @@ To set up your environment to develop this theme, run `bundle install`. 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. When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled. -To add a custom directory to your theme-gem, please edit the regexp in `jotone_theme.gemspec` accordingly. ## License @@ -90,4 +97,4 @@ The theme is available as open source under the terms of the [MIT License](https ## Credits -Some of the code was inspired by the [Minima Theme](https://github.com/jekyll/minima). [Minima license](https://github.com/jekyll/minima/blob/master/LICENSE.txt). +Some of the css code was inspired from the [Minima Theme](https://github.com/jekyll/minima). [Minima license](https://github.com/jekyll/minima/blob/master/LICENSE.txt).