It's Riseup's twentieth year, help keep us going! If you can afford it, please contribute to our winter fundraising drive.

Commit ccdee7e6 authored by fauno's avatar fauno

eliminar las clases sin usar del css

parent e0469b1d
...@@ -11,11 +11,15 @@ srv := $(PWD)/_site ...@@ -11,11 +11,15 @@ srv := $(PWD)/_site
site ?= $(notdir $(destination)) site ?= $(notdir $(destination))
torrent := $(shell ruby -r yaml -e "c = YAML.load_file('_config.yml')" -e "puts c['torrent']['file']") 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 es el primero para que sea la opción por defecto
all: tapas build release seed all: tapas build release seed
build: build:
bundle exec jekyll build bundle exec jekyll build --trace
seed: seed:
transmission-remote --add "$(destination)/$(torrent)" \ transmission-remote --add "$(destination)/$(torrent)" \
...@@ -48,6 +52,7 @@ tapas: $(png) ...@@ -48,6 +52,7 @@ tapas: $(png)
# Uso: make corregir archivo=_posts/archivo.md # Uso: make corregir archivo=_posts/archivo.md
corregir: manual-de-estilo.sed corregir: manual-de-estilo.sed
test -n "$(archivo)"
sed -rf $< -i $(archivo) sed -rf $< -i $(archivo)
# Los sliders son de 730px de ancho # Los sliders son de 730px de ancho
......
...@@ -69,3 +69,5 @@ torrent: ...@@ -69,3 +69,5 @@ torrent:
collections: collections:
zines: zines:
output: true 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; } .container { max-width: 730px; }
.page-header h1 { font-size: 50px; } .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