Coder Social home page Coder Social logo

openmined / openmined-ghost-theme Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 2.0 2.87 MB

SOON TO BE DEPRECATED - The theme for the OpenMined and Weekly Digs blogs.

License: Apache License 2.0

CSS 9.19% JavaScript 16.10% SCSS 42.50% Handlebars 32.21%
writing templates

openmined-ghost-theme's Introduction

DEPRECATION NOTICE

Warning, this repository will soon be deprecated in favor of openmined-website.

OpenMined

The default theme for all OpenMined Ghost blogs. This is based heavily on the default Ghost theme Casper.

screenshot-desktop

Development

Styles are compiled using SASS. We use autoprefixer, so you don't worry about writing browser prefixes of any kind, it's all done automatically with support for the latest 2 major versions of every browser. You'll need Node and Gulp installed globally. After that, from the theme's root directory:

$ yarn install
$ yarn dev

Now you can edit /assets/scss/ files, which will be compiled to /assets/built/ automatically.

The zip Gulp task packages the theme files into dist/<theme-name>.zip, which you can then upload to the blog of your choice.

$ yarn zip

openmined-ghost-theme's People

Contributors

cereallarceny avatar dependabot[bot] avatar lariffle avatar tcp avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

openmined-ghost-theme's Issues

Fix incompatibilities with Ghost 3.0

Upon upgrading, I am now receiving the following errors on the Ghost theme:

Errors
    File: error.hbs
    - The {{@blog}} helper should be replaced with {{@site}}
    - Replace {{error.code}} with {{error.statusCode}}
    File: partials/header.hbs
    - The {{@blog}} helper should be replaced with {{@site}}
    File: default.hbs
    - The {{lang}} helper should be replaced with {{@site.lang}}
    File: styles
    - The .kg-bookmark-card CSS class is required to appear styled in your theme
    - The .kg-bookmark-container CSS class is required to appear styled in your theme
    - The .kg-bookmark-content CSS class is required to appear styled in your theme
    - The .kg-bookmark-title CSS class is required to appear styled in your theme
    - The .kg-bookmark-description CSS class is required to appear styled in your theme
    - The .kg-bookmark-metadata CSS class is required to appear styled in your theme
    - The .kg-bookmark-icon CSS class is required to appear styled in your theme
    - The .kg-bookmark-author CSS class is required to appear styled in your theme
    - The .kg-bookmark-publisher CSS class is required to appear styled in your theme
    - The .kg-bookmark-thumbnail CSS class is required to appear styled in your theme

This issue has many parts.

  1. We need to fix all the errors in error.hbs.
  2. We need to fix all the errors in partials/header.hbs.
  3. We need to fix all the errors in default.hbs.
  4. We don't need to add styles for the places where a class is missing in our theme. However, we should add empty style definitions. Here's the first two done for you:
.kg-bookmark-card {}
.kg-bookmark-container {}

Upgrade to Ghost 2.0

This may also allow us the ability to re-combine digs and blog into one place as separate "Collections".

screen shot 2018-08-23 at 8 26 34 pm

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.