Giter Site home page Giter Site logo

woodcox / city-jekyll Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 2.0 150.96 MB

๐Ÿฌ City-Jekyll theme and style guide for a fast, sass-y responsive website with postcss superpowers.

Home Page: https://woodcox.github.io/city-jekyll/

License: MIT License

Ruby 0.17% HTML 10.93% JavaScript 0.73% PHP 0.11% SCSS 88.06%
jekyll scss html-css-javascript font-awesome ruby-gem styleguide theme sass autoprefixer optimise-images postcss cssnano npm purgecss

city-jekyll's Introduction

๐Ÿฌ City-Jekyll

License: MIT

Welcome to the city-jekyll theme! This is the theme for City Evangelical Church website. It's built using Jekyll, some clever Github Actions, NPM and Primitive UI. The theme is a design toolkit for developing fast sass-y, responsive websites with browser-consistent styling and postcss superpowers.

Demo available: here

Primitive UI

primitive-ui on NPM

The original primitive UI and it's documentation is available as a boilerplate/primitive framework for any project and its awesome. The beauty of Primitive is the ease with which you can create unique designs in a beautiful, simple system.

https://github.com/taniarascia/primitive.git

Installation (not ready yet)

Add this line to your Jekyll site's Gemfile:

gem "city-jekyll-theme"

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

theme: city-jekyll-theme

And then execute:

$ bundle

Or install it yourself as:

$ gem install city-jekyll-theme

Since November 2017 you can use this theme by adding: remote_theme: woodcox/city-jekyll to your _config.yml file.

Usage

Project tree:

City-jekyll
โ”‚
โ”œโ”€โ”€โ”€ _data
|      โ”œโ”€โ”€โ”€ contacts.yml
|      โ”œโ”€โ”€โ”€ cookies-used.yml
|      โ””โ”€โ”€โ”€ nav.yml
โ”‚  
โ”œโ”€โ”€โ”€ _includes
โ”‚      โ”œโ”€โ”€โ”€ components
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ accent-accordion.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ accordion.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ action-cards.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ analytics.js
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ audio-cards.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ calendar.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ contact-button.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ flip-cards.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ image-cards.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ impact-font.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ lazy-images.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ muted-accordion.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ profile-cards.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ round-accordion.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ sermons-list.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ square-accordion.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ srcset-images.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ table.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ video-cards.html
โ”‚      โ”‚     โ””โ”€โ”€โ”€ youtube-video.html
โ”‚      โ”‚
|      โ”œโ”€โ”€โ”€ modules
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ breadcrumbs.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ cookies-consent.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ nav-back.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ preloader.html
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ scroll-up.html
โ”‚      โ”‚     โ””โ”€โ”€โ”€ search_lunr.html
โ”‚      โ”‚
|      โ”œโ”€โ”€โ”€ svg
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ cec-building-curved.svg
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ city-vector.svg
โ”‚      โ”‚     โ””โ”€โ”€โ”€ fiec.svg
โ”‚      โ”‚
|      โ””โ”€โ”€โ”€ templates
โ”‚            โ”œโ”€โ”€โ”€ docs-hero.html
โ”‚            โ”œโ”€โ”€โ”€ footer.html
โ”‚            โ”œโ”€โ”€โ”€ head.html
โ”‚            โ”œโ”€โ”€โ”€ hero.html
โ”‚            โ”œโ”€โ”€โ”€ navbar.html
โ”‚            โ”œโ”€โ”€โ”€ page-hero.html
โ”‚            โ””โ”€โ”€โ”€ secondary-nav.html
โ”‚  
โ”œโ”€โ”€โ”€ _layouts
โ”‚      โ”œโ”€โ”€โ”€ compress.html
โ”‚      โ”œโ”€โ”€โ”€ default.html
โ”‚      โ”œโ”€โ”€โ”€ docs-layout.html
โ”‚      โ”œโ”€โ”€โ”€ home.html
โ”‚      โ”œโ”€โ”€โ”€ sectioned-page.html
โ”‚      โ””โ”€โ”€โ”€ single-page.html
โ”‚
โ”œโ”€โ”€โ”€ _plugins
โ”‚      โ””โ”€โ”€โ”€ inline-sass.rb
โ”‚
โ”œโ”€โ”€โ”€ _sass
โ”‚      โ”œโ”€โ”€โ”€ base
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ _mixins.scss
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ _normalize.scss
โ”‚      โ”‚     โ”œโ”€โ”€โ”€ _reset.scss
โ”‚      โ”‚     โ””โ”€โ”€โ”€ _variables.scss
โ”‚      โ”‚
โ”‚      โ”œโ”€โ”€โ”€ components
โ”‚      โ”‚      โ”œโ”€โ”€โ”€ _accordion.scss
โ”‚      โ”‚      โ”œโ”€โ”€โ”€ _animation.scss
โ”‚      โ”‚      โ”œโ”€โ”€โ”€ _buttons.scss
โ”‚      โ”‚      โ”œโ”€โ”€โ”€ _cards.scss
โ”‚      โ”‚      โ”œโ”€โ”€โ”€ _colors.scss
โ”‚      โ”‚      โ”œโ”€โ”€โ”€ _forms.scss
โ”‚      โ”‚      โ”œโ”€โ”€โ”€ _media.scss
โ”‚      โ”‚      โ”œโ”€โ”€โ”€ _slider.scss
โ”‚      โ”‚      โ”œโ”€โ”€โ”€ _tables.scss
โ”‚      โ”‚      โ””โ”€โ”€โ”€ _timeline.scss
โ”‚      โ”‚
โ”‚      โ”œโ”€โ”€โ”€ core
โ”‚      โ”‚      โ”œโ”€โ”€โ”€ _grid.scss
โ”‚      โ”‚      โ”œโ”€โ”€โ”€ _helpers.scss
โ”‚      โ”‚      โ””โ”€โ”€โ”€ _scaffolding.scss
โ”‚      โ”‚
โ”‚      โ”œโ”€โ”€โ”€ fonts
โ”‚      โ”‚      โ”œโ”€โ”€โ”€ _fontawesomesvg.scss
โ”‚      โ”‚      โ”œโ”€โ”€โ”€ _syntax-highlight.scss
โ”‚      โ”‚      โ””โ”€โ”€โ”€ _webfonts.scss
โ”‚      โ”‚
โ”‚      โ””โ”€โ”€โ”€ layouts
โ”‚             โ”œโ”€โ”€โ”€ _footer.scss
โ”‚             โ”œโ”€โ”€โ”€ _hero.scss
โ”‚             โ””โ”€โ”€โ”€ _navigation.scss
โ”‚
โ”œโ”€โ”€โ”€ assets
โ”‚    โ”‚
โ”‚    โ”œโ”€โ”€โ”€ css
โ”‚    โ”‚    โ””โ”€โ”€โ”€ city.scss
โ”‚    โ”œโ”€โ”€โ”€ img
โ”‚    โ”‚    โ”œโ”€โ”€โ”€ 1000
โ”‚    โ”‚    โ”œโ”€โ”€โ”€ 1160
โ”‚    โ”‚    โ”œโ”€โ”€โ”€ 400
โ”‚    โ”‚    โ”œโ”€โ”€โ”€ 600
โ”‚    โ”‚    โ”œโ”€โ”€โ”€ 800
โ”‚    โ”‚    โ”œโ”€โ”€โ”€ faicons
โ”‚    โ”‚    โ””โ”€โ”€โ”€ master
โ”‚    โ”œโ”€โ”€โ”€ js
โ”‚    โ”‚    โ”œโ”€โ”€โ”€ contacts.js
โ”‚    โ”‚    โ”œโ”€โ”€โ”€ site.js
โ”‚    โ”‚    โ”œโ”€โ”€โ”€ smoothscroll-polyfill.js
โ”‚    โ”‚    โ””โ”€โ”€โ”€ snap-slider.min.js
โ”‚    โ””โ”€โ”€โ”€ webfonts
โ”‚         โ”œโ”€โ”€โ”€ icons
โ”‚         โ””โ”€โ”€โ”€ sanchez
โ”‚
โ”œโ”€โ”€โ”€ pages
โ”‚      โ”œโ”€โ”€โ”€ _docs
โ”‚      โ”œโ”€โ”€โ”€ _drafts
โ”‚      โ”œโ”€โ”€โ”€ _home
โ”‚      โ”œโ”€โ”€โ”€ _media
โ”‚      โ”œโ”€โ”€โ”€ _posts
โ”‚      โ”œโ”€โ”€โ”€ _sunday
|      โ”œโ”€โ”€โ”€ cookies.md
โ”‚      โ”œโ”€โ”€โ”€ html-test.html
โ”‚      โ”œโ”€โ”€โ”€ primitive.html
โ”‚      โ”œโ”€โ”€โ”€ privacy.md
โ”‚      โ”œโ”€โ”€โ”€ safeguarding.md
โ”‚      โ”œโ”€โ”€โ”€ template.html
โ”‚      โ””โ”€โ”€โ”€ we-beleive.md
โ”‚ 
โ”œโ”€โ”€โ”€ .browserslistrc
โ”œโ”€โ”€โ”€ .gitignore
โ”œโ”€โ”€โ”€ 404.md
โ”œโ”€โ”€โ”€ gemfile
โ”œโ”€โ”€โ”€ gemfile.lock
โ”œโ”€โ”€โ”€ LICENCE.md
โ”œโ”€โ”€โ”€ README.md
โ”œโ”€โ”€โ”€ SECURITY.md
โ”œโ”€โ”€โ”€ _config.yml
โ”œโ”€โ”€โ”€ browserconfig.xml
โ”œโ”€โ”€โ”€ city-jekyll-theme.gemspec
โ”œโ”€โ”€โ”€ index.md
โ”œโ”€โ”€โ”€ npm.md
โ”œโ”€โ”€โ”€ package-lock.json
โ”œโ”€โ”€โ”€ package.json
โ”œโ”€โ”€โ”€ postcss.config.js
โ”œโ”€โ”€โ”€ robot.txt
โ”œโ”€โ”€โ”€ site.webmanifest
โ””โ”€โ”€โ”€ sitemap.xml

Now you can begin modifying variables in variables.scss. This file will define your colors, typography, sizes, breakpoints, buttons, borders, and more. Define all your variables here to keep your project organized.

You can view city-jekyll/docs/html-test/ or city-jekyll/docs/ to see some example elements as you make changes.

This gem offers some main layouts that can be used/edited:

  • The _layouts/default.html, is the skeleton of the pages, where header,footer, assets are called. It should be used in most of the other layouts,
  • The _layouts/home.html is the main layout the will be your home, where your blog posts will be shown;
  • The _layouts/post.html is the layout used to present the blog posts themselves, where they will be rendered.

Inside the _includes/ directory there are the partials that are used inside the layouts.

To edit the current JavaScript functions of the gem, the file you are looking for is in assets/js/site.js.

Your blog posts (*.md files) should be put in the _posts directory.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/woodcox/city-jekyll. This project is welcomes collaboration, but 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, and _sass tracked with Git will be released.

Credits

This theme was inspired by:

License

The theme is available as open source under the terms of the MIT License. However the following directory and its content is copyright of City Evangelical Church. You may not reuse anything therein without the church's written permission:

/assets/img

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.