Code Monkey home page Code Monkey logo

Comments (4)

Stargator avatar Stargator commented on June 4, 2024

The gem doesn't define the theme. The themes are generally defined through the css or sass files that the files in the folders _layouts and/or _includes.

For example, I merged in the differences between one blog theme with my site. It takes a bit of HTML understanding, but it's just a matter of merging in what you want and leaving out the rest.

It usually means some trial and error since not all themes are developed to make the process easy.

from pages-gem.

ggarnier avatar ggarnier commented on June 4, 2024

I see, but the problem is, if I want to use a different theme (like https://github.com/diezcami/arctic-fox-theme/), I would have to manually merge the differences between what's generated by github-pages gem and what's defined in the theme repository. Is there an easier way to do this?

from pages-gem.

Stargator avatar Stargator commented on June 4, 2024

I customized the config.yaml and I removed any unwanted css/sass files. And modified the layout html as I desired. I did all of that before I ran jekyll build to have github-pages to generate the website.

Looking at the example theme you are point to, there is nothing in the config.yaml file to control the theme. Focus on the _includes, _layouts, _sass, css, index.html, and about.md and you should be good.

The way that author is using that site. He takes the contents of https://github.com/diezcami/arctic-fox-theme/ and places in a folder for a normal jekyll website. All the theme's repo is missing is a Gemfile containing the lines telling it to pull down github-pages.

So what you need to do, is fork the theme and ensure it has a Gemfile that contains _at a minimal_:

source 'https://rubygems.org'
gem 'github-pages

Since the theme doesn't include a Gemfile than it doesn't seem to be dependent on any particular ruby code.

from pages-gem.

ggarnier avatar ggarnier commented on June 4, 2024

@Stargator I just did that for qck theme, it's working perfectly. Thanks!

from pages-gem.

Related Issues (20)

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.