🛠 Add jekyll-assets for asset pipeline #100DaysOfCode R1D27
Used an old version because documentation of current version is incomplete. I couldn't figure out how to get it to work properly.
This commit is contained in:
parent
44bccc628b
commit
cec3749b54
6 changed files with 10378 additions and 8 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -3,6 +3,8 @@ _site
|
|||
.jekyll
|
||||
.jekyll-metadata
|
||||
.bundle
|
||||
.asset-cache
|
||||
.jekyll-cache
|
||||
.sass-cache
|
||||
Gemfile.lock
|
||||
node_modules
|
||||
|
|
|
|||
7
Gemfile
7
Gemfile
|
|
@ -1,4 +1,7 @@
|
|||
source 'https://rubygems.org'
|
||||
gem 'jekyll-sitemap'
|
||||
gem 'jekyll-seo-tag'
|
||||
gem 'jekyll-sitemap', group: :jekyll_plugins
|
||||
gem 'jekyll-seo-tag', group: :jekyll_plugins
|
||||
|
||||
gem "jekyll-assets", "~> 2.4.0", group: :jekyll_plugins
|
||||
|
||||
gem 'bootstrap', '~> 4.0.0'
|
||||
|
|
|
|||
5
_assets/js/application.js
Normal file
5
_assets/js/application.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
//= require vendor/jquery
|
||||
//= require popper
|
||||
//= require bootstrap
|
||||
|
||||
console.log($);
|
||||
10364
_assets/js/vendor/jquery.js
vendored
Normal file
10364
_assets/js/vendor/jquery.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -55,23 +55,17 @@ collections:
|
|||
links:
|
||||
output: false
|
||||
|
||||
#
|
||||
# !! You don't need to change any of the configuration flags below !!
|
||||
#
|
||||
|
||||
permalink: /:year/:month/:title/
|
||||
|
||||
# Jekyll 3 now only supports Kramdown for Markdown
|
||||
kramdown:
|
||||
# Use GitHub flavored markdown, including triple backtick fenced code blocks
|
||||
input: GFM
|
||||
# Jekyll 3 and GitHub Pages now only support rouge for syntax highlighting
|
||||
syntax_highlighter: rouge
|
||||
syntax_highlighter_opts:
|
||||
# Use existing pygments syntax highlighting css
|
||||
css_class: 'highlight'
|
||||
|
||||
# Set the Sass partials directory, as we're using @imports
|
||||
sass:
|
||||
style: :expanded # You might prefer to minify using :compressed
|
||||
|
||||
|
|
@ -79,6 +73,7 @@ sass:
|
|||
plugins:
|
||||
- jekyll-sitemap # Create a sitemap using the official Jekyll sitemap gem
|
||||
- jekyll-seo-tag
|
||||
- jekyll-assets
|
||||
- bootstrap
|
||||
|
||||
# Exclude these files from your production _site
|
||||
|
|
|
|||
|
|
@ -59,5 +59,6 @@
|
|||
</div>
|
||||
|
||||
</section>
|
||||
{% js application %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue