GithubHelp home page GithubHelp logo

talhablog's Introduction

texture

A configurable jekyll theme for simply beautiful blogs.

Demo: thelehhman.com/texture

texture theme preview

Installation on Github Pages

Add this line to your site's _config.yml:

remote_theme: thelehhman/texture

NOTE: If you are forking this repo, remove base_url: /texture in the _config.yml which is required to load the required website assets

Installation

Add this line to your Jekyll site's Gemfile:

gem "texture"

And add this line to your Jekyll site's _config.yml:

theme: texture

And then execute:

$ bundle

Or install it yourself as:

$ gem install texture

Usage

The "texture" key in _config.yml is used to customize the theme data.

texture:
  title: Adam Denisov
  tagline: Developer. Designer
  date_format: "%b %-d, %Y"

  social_links:
    twitter: thelehhman
    github:  thelehhman
    linkedIn: in/thelehhman # format: locale/username

Styling

Multiple header styles are supported using the "style" property under texture in _config.yml.

texture:
  style: [yellow|red|black|blue|green|purple]

For example, the blue style looks like this:

texture theme blue

Texture Picker

You can toggle the texture picker to show/experiment various textures on your site using the showPicker variable. Remember to make it false for production.

texture:
  showPicker: [false|true] # show the texture selector(development purposes)

Comments (Disqus)

Comments on posts can be enabled by specifying your disqus_shortname under texture in _config.yml. For example,

texture:
  disqus_shortname: games

Google Analytics

It can be enabled by specifying your analytics id under texture in _config.yml

texture:
  analytics_id: '< YOUR ID >'

Excerpts

Excerpts can be enabled by adding the following line to your _config.yml

show_excerpts: true

Toggle Navbar

texture:
  showNav: true

Layouts

  • Home
  • Page
  • Post

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/thelehhman/texture. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

Development

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 texture.gemspec accordingly.

License

The theme is available as open source under the terms of the MIT License.

talhablog's People

Contributors

talha110 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.