28
loading...
This website collects cookies to deliver better user experience
yarn start
until the Webpack manifest is generated (you'll be notified in the console when it is generated), then exit and run bridgetown serve
. Note that bridgetown serve
does not generate a Webpack manifest, so use yarn start
or yarn webpack-dev
whenever you see CSS issues and need to regenerate it.bridgetown.config.yml
, add content_engine: resource
.page
to resource
, and access front matter via the data
variable. For example: instead of page.title
, use resource.data.title
.bridgetown.config.yml
, add template_engine: erb
.src/_layouts
and src/_components
to ERB. Then move the templates from _components
into a new src/_partials
directory, and add an underscore to the beginning of each filename, e.g. head.liquid
becomes _head.erb
.posts.md
to ERB._posts-drafts/
directory for drafts that will not be published with your other posts. (The documented way of doing this works only for the legacy content engine, but the docs will be updated by the time the resource content engine becomes the default.)src/_data/site_metadata.yml
.frontend/styles/
.frontend/styles/index.scss
: for example, for Monokai place @import "monokai.css";
near the top of index.scss
.span
or div
, because this inheritance can only be set up via JavaScript, and that seems like more trouble than it's worth at this point._page_selector.erb
and _tweet_button.erb
.reading.csv
file (my homegrown alternative to Goodreads), including only books that I rated at least a 4 out of 5.ReadingList
component in _components/reading_list.rb
, and its template _components/reading_list.erb
.reading_list.rb
to load my reading list and provide data for reading_list.erb
. This was just a matter of extracting CSV-parsing code from a previous app into a gem, then including it in my component and tying up the loose ends..rb
file pulls that data into instance variables, then the ERB template uses the instance variables as it displays the reading list._data/reading.yml
) and rebuild the site locally (so that my reading.csv
can be re-parsed) before pushing it to be built and deployed on Netlify. I could avoid these manual steps by taking advantage of the fact that my reading.csv
is automatically synced to Dropbox: I could change my plugin to connect to Dropbox and update the list from there instead of from the copy on my local machine.