About the Dove project
šļø Dove is a theme development project. We are working on the following themes.
Get a quick and easy way to build a website. Build your website on GitHub Pages using ready-to-go templates and components. You can use Markdown, Pug or HTML to code your website. Set and style any page instantly, just by referring to the pre-configured assets. Should you require any further personalization, you can customize every detail as needed, from global defaults to specific components.
Dove handles the necessary foundation so you can focus on your code.
[!WARNING]
Dove is constantly under active development. Do not use it directly. Beta builds may break your site. Instead, visit individual themeās homepage for a stable release.
How to use
To use the theme on your site:
-
Add the following lines to the
_config.ymlfile at the root of your siteās repository:remote_theme: techie-joe/dove plugins: - jekyll-remote-theme -
Clear out any existing values of
theme. -
Then, activate GitHub Pages for your site.
For detailed instruction, see The GitHub Pages Walkthrough.
How to customize
Configuration variables
Set the following variables in your siteās _config.yml file.
title : "The title of your site"
description : "Short description of your site."
Additionally, you may also set:
ghost: your-tracking-id
# to track your ThemeJs.
google_analytics: your-tracking-id
# to track your website using Google Analytics.
cloudflare_analytics: your-tracking-id
# to track your website using Cloudflare Analytics.
show_downloads: true
# true or false (unquoted).
# to indicate whether to provide a download URL.
Stylesheet
To add your own custom styles:
-
Create a file called
/assets/css/style.scssin your siteās repository with the following content, exactly as shown:--- --- @import "dove"; -
Add any custom styles immediately after the
@importline.
Note: To change the themeās SASS variables, you must set new values before the @import line in your stylesheet.
Layouts
All theme layouts in the _layouts folder and theme components in the _includes folder provide a good starting point of things you can customize. To override a file, create a mirror copy of that file in your siteās repository reflecting the exact path and file-name.
For example, to change the default layout:
- Copy the
/_layouts/default.htmlfile to your siteās repository. - Then customize it as youād like.
Pro-tip: click ārawā to make copying easier.
Analytics code
Paste the analytics code into your siteās _includes/google_analytics.html file.
Overriding GitHub values
The theme rely on GitHub values, such as links to your repository or links to download your project.
To override the default values:
-
Look at the theme source file (in the
_layoutsand_includesfolder) to determine the name of the variable. It will be in the form of:{{ site.github.zip_url }} -
Specify the value youād like to use in your siteās
_config.ymlfile. Jekyll will use the value you specified, instead of the default one.For example, if the variable was
site.github.zip_url, add the following:github: zip_url: http://example.com/download.zip # another_url: another_valueNote: Ignore the
site.prefix, and maintain the two space indent for each sub variables.
For more information, see Jekyll documentation on Variables.
Running the theme locally
To run the theme locally:
-
Clone the themeās repository into your computer:
git clone https://github.com/techie-joe/dove -
Go to the cloned directory.
-
Add the following code to your siteās
Gemfile:gem "github-pages", group: :jekyll_plugins - Run
script/bootstrapto install necessary dependencies.This is a required one-time setup before other script can function.
-
Then run
script/serveto start the server. - Visit localhost:4000 in your browser to see the template.
Running tests
This project contains a minimal test suite, to ensure a site with the theme would build successfully.
To run the tests:
- Run
script/bootstrapto install necessary dependencies.This is a required one-time setup before other script can function.
- Then run
script/cibuildto start the test.
Contributing
Interested in contributing to the Dove project? Weād love your help. Dove is an open source project, built one contribution at a time by users like you. Go ahead and start a discussion.
Roadmap
See the open issues for a list of proposed features and known issues.
License
Dove is an open source project licensed under the MIT LICENSE. Youāre allowed to use the code with conditions only requiring preservation of copyright and license notices.