Extending 11ty templates #880
Replies: 2 comments
-
I am also wondering whether I just changed _includes/components/navigation.js directly |
Beta Was this translation helpful? Give feedback.
-
Thanks for the question @1000camels, this is something we haven't gotten documented yet so I'm glad to be able to answer it here. For new CSS or JS files, you're right to put them into // Stylesheets
import '../../fonts/index.scss';
import '../../styles/application.scss'
import '../../styles/screen.scss'
import '../../styles/custom.css'
// Modules (feel free to define your own and import here)
import './canvas-panel'
import './soundcloud-api.min.js'
import { goToFigureState, setUpUIEventHandlers } from './canvas-panel'
import Accordion from './accordion'
import Search from '../../../../_plugins/search/search.js'
import scrollToHash from './scroll-to-hash' The other option would be to add And for modifying layout files, you can ignore the Depending on the need, you'll generally make customizations in the Having made customizations myself a lot on Getty's recent Quire projects, here are some strategies I've come to rely on:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to understand best practice for extending my v1 publication.
Should I be editing eleventy.js, all the files in _layout and files in _public
My understanding of how to include new CSS or JS files is to add them to _content/_assets/ and then add the following to eleventy.js
module.exports = function(eleventyConfig) {
eleventyConfig.addPassthroughCopy("bundle.css");
};
But i am not sure where to place the link to the new js or css file
Beta Was this translation helpful? Give feedback.
All reactions