Commit ccdee7e6 authored by fauno's avatar fauno

eliminar las clases sin usar del css

parent e0469b1d
......@@ -11,11 +11,15 @@ srv := $(PWD)/_site
site ?= $(notdir $(destination))
torrent := $(shell ruby -r yaml -e "c = YAML.load_file('_config.yml')" -e "puts c['torrent']['file']")
JEKYLL_ENV ?= production
export
# All es el primero para que sea la opción por defecto
all: tapas build release seed
build:
bundle exec jekyll build
bundle exec jekyll build --trace
seed:
transmission-remote --add "$(destination)/$(torrent)" \
......@@ -48,6 +52,7 @@ tapas: $(png)
# Uso: make corregir archivo=_posts/archivo.md
corregir: manual-de-estilo.sed
test -n "$(archivo)"
sed -rf $< -i $(archivo)
# Los sliders son de 730px de ancho
......
......@@ -69,3 +69,5 @@ torrent:
collections:
zines:
output: true
css: assets/css/custom.css
# frozen_string_literal: true
Jekyll::Hooks.register :site, :post_write do |site|
next unless ENV['JEKYLL_ENV'] == 'production'
system('./node_modules/.bin/purgecss ' \
"--css #{site.dest}/#{site.config.dig('css')} " \
"--content #{site.dest}/**/*.html #{site.dest}/*.html " \
"--out #{site.dest}/#{File.dirname(site.config.dig('css'))}")
end
---
---
{% include_relative bootstrap.min.css %}
.container { max-width: 730px; }
.page-header h1 { font-size: 50px; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment