🛠 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
|
||||||
.jekyll-metadata
|
.jekyll-metadata
|
||||||
.bundle
|
.bundle
|
||||||
|
.asset-cache
|
||||||
|
.jekyll-cache
|
||||||
.sass-cache
|
.sass-cache
|
||||||
Gemfile.lock
|
Gemfile.lock
|
||||||
node_modules
|
node_modules
|
||||||
|
|
|
||||||
7
Gemfile
7
Gemfile
|
|
@ -1,4 +1,7 @@
|
||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
gem 'jekyll-sitemap'
|
gem 'jekyll-sitemap', group: :jekyll_plugins
|
||||||
gem 'jekyll-seo-tag'
|
gem 'jekyll-seo-tag', group: :jekyll_plugins
|
||||||
|
|
||||||
|
gem "jekyll-assets", "~> 2.4.0", group: :jekyll_plugins
|
||||||
|
|
||||||
gem 'bootstrap', '~> 4.0.0'
|
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:
|
links:
|
||||||
output: false
|
output: false
|
||||||
|
|
||||||
#
|
|
||||||
# !! You don't need to change any of the configuration flags below !!
|
|
||||||
#
|
|
||||||
|
|
||||||
permalink: /:year/:month/:title/
|
permalink: /:year/:month/:title/
|
||||||
|
|
||||||
# Jekyll 3 now only supports Kramdown for Markdown
|
# Jekyll 3 now only supports Kramdown for Markdown
|
||||||
kramdown:
|
kramdown:
|
||||||
# Use GitHub flavored markdown, including triple backtick fenced code blocks
|
# Use GitHub flavored markdown, including triple backtick fenced code blocks
|
||||||
input: GFM
|
input: GFM
|
||||||
# Jekyll 3 and GitHub Pages now only support rouge for syntax highlighting
|
|
||||||
syntax_highlighter: rouge
|
syntax_highlighter: rouge
|
||||||
syntax_highlighter_opts:
|
syntax_highlighter_opts:
|
||||||
# Use existing pygments syntax highlighting css
|
# Use existing pygments syntax highlighting css
|
||||||
css_class: 'highlight'
|
css_class: 'highlight'
|
||||||
|
|
||||||
# Set the Sass partials directory, as we're using @imports
|
|
||||||
sass:
|
sass:
|
||||||
style: :expanded # You might prefer to minify using :compressed
|
style: :expanded # You might prefer to minify using :compressed
|
||||||
|
|
||||||
|
|
@ -79,6 +73,7 @@ sass:
|
||||||
plugins:
|
plugins:
|
||||||
- jekyll-sitemap # Create a sitemap using the official Jekyll sitemap gem
|
- jekyll-sitemap # Create a sitemap using the official Jekyll sitemap gem
|
||||||
- jekyll-seo-tag
|
- jekyll-seo-tag
|
||||||
|
- jekyll-assets
|
||||||
- bootstrap
|
- bootstrap
|
||||||
|
|
||||||
# Exclude these files from your production _site
|
# Exclude these files from your production _site
|
||||||
|
|
|
||||||
|
|
@ -59,5 +59,6 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
{% js application %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue