+
Skip to content

LEFapps/kce-common

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Common code for KCE apps

Install

Add this repo as a submodule in your app:

$ git submodule add https://github.com/LEFapps/kce-common.git

Make sure you add this folder to your .eleventyignore file, otherwise it might be included in your _site build.

CSS

You can now import files from kce-common in your css/main.scss:

@import "../kce-common/css/_settings", "<your custom settings>", "../kce-common/css/_common";

Note that the inclusion of _common.scss automatically includes bootstrap as well. So the complete load order is this:

  • Common KCE scss settings (variables)
  • Custom overrides of scss variables
  • Shared KCE components, configured by variables
  • Bootstrap, configured by variables

Sections

Due to 11ty / liquid restrictions, you can not include files from outside the _includes folder in your templates. Solve this by symlining the section folder in this repo in your _includes folder:

$ cd _includes
$ ln -s ../kce-common/sections

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载