Minifying isn't worth it for now

This commit is contained in:
Nemo 2023-06-10 13:10:17 +05:30
parent bd03658200
commit 123161be22
6 changed files with 3 additions and 43 deletions

View File

@ -4,7 +4,6 @@ gem "jekyll", "~> 4.3.2"
gem "sanitize", "~> 6.0" gem "sanitize", "~> 6.0"
group :jekyll_plugins do group :jekyll_plugins do
gem 'octopress-minify-html', "~> 1.3"
gem "jekyll-seo-tag", "~> 2.8" gem "jekyll-seo-tag", "~> 2.8"
gem "jekyll-include-cache", "~> 0.2.1" gem "jekyll-include-cache", "~> 0.2.1"
end end

View File

@ -6,23 +6,13 @@ GEM
colorator (1.1.0) colorator (1.1.0)
concurrent-ruby (1.2.2) concurrent-ruby (1.2.2)
crass (1.0.6) crass (1.0.6)
css_press (0.3.2)
csspool-st (= 3.1.2)
json
csspool-st (3.1.2)
em-websocket (0.5.3) em-websocket (0.5.3)
eventmachine (>= 0.12.9) eventmachine (>= 0.12.9)
http_parser.rb (~> 0) http_parser.rb (~> 0)
eventmachine (1.2.7) eventmachine (1.2.7)
execjs (2.8.1)
ffi (1.15.5) ffi (1.15.5)
forwardable-extended (2.6.0) forwardable-extended (2.6.0)
google-protobuf (3.23.2-x86_64-linux) google-protobuf (3.23.2-x86_64-linux)
html_press (0.8.1)
htmlentities
multi_css (>= 0.1.0)
multi_js
htmlentities (4.3.4)
http_parser.rb (0.8.0) http_parser.rb (0.8.0)
i18n (1.14.1) i18n (1.14.1)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
@ -50,7 +40,6 @@ GEM
jekyll (>= 3.8, < 5.0) jekyll (>= 3.8, < 5.0)
jekyll-watch (2.2.1) jekyll-watch (2.2.1)
listen (~> 3.0) listen (~> 3.0)
json (2.6.3)
kramdown (2.4.0) kramdown (2.4.0)
rexml rexml
kramdown-parser-gfm (1.1.0) kramdown-parser-gfm (1.1.0)
@ -60,18 +49,8 @@ GEM
rb-fsevent (~> 0.10, >= 0.10.3) rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10) rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0) mercenary (0.4.0)
multi_css (0.1.0)
css_press
multi_js (0.0.1)
uglifier
nokogiri (1.15.2-x86_64-linux) nokogiri (1.15.2-x86_64-linux)
racc (~> 1.4) racc (~> 1.4)
octopress-hooks (2.6.2)
jekyll (>= 2.0)
octopress-minify-html (1.3.1)
html_press (~> 0.8)
jekyll (>= 2.0)
octopress-hooks
pathutil (0.16.2) pathutil (0.16.2)
forwardable-extended (~> 2.6) forwardable-extended (~> 2.6)
public_suffix (5.0.1) public_suffix (5.0.1)
@ -89,8 +68,6 @@ GEM
google-protobuf (~> 3.23) google-protobuf (~> 3.23)
terminal-table (3.0.2) terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3) unicode-display_width (>= 1.1.1, < 3)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
unicode-display_width (2.4.2) unicode-display_width (2.4.2)
webrick (1.8.1) webrick (1.8.1)
@ -101,7 +78,6 @@ DEPENDENCIES
jekyll (~> 4.3.2) jekyll (~> 4.3.2)
jekyll-include-cache (~> 0.2.1) jekyll-include-cache (~> 0.2.1)
jekyll-seo-tag (~> 2.8) jekyll-seo-tag (~> 2.8)
octopress-minify-html (~> 1.3)
sanitize (~> 6.0) sanitize (~> 6.0)
BUNDLED WITH BUNDLED WITH

View File

@ -12,13 +12,7 @@ timezone: Asia/Kolkata
plugins: plugins:
- jekyll-include-cache - jekyll-include-cache
- jekyll-seo-tag - jekyll-seo-tag
- octopress-minify-html
- uglifier
env: development env: development
webmaster_verifications: webmaster_verifications:
google: sR2qUrWTIJvtOlBP4RwHSavUoICUZaIGYLdxuylnSc4 google: sR2qUrWTIJvtOlBP4RwHSavUoICUZaIGYLdxuylnSc4
bing: 786007083CF16051F7322AF072B1D04E bing: 786007083CF16051F7322AF072B1D04E
html_press:
unquoted_attributes: true
drop_empty_values: true
strip_crlf: false

View File

@ -15,7 +15,7 @@ layout: default
<summary> <summary>
<h2>{{post.title | strip}} </h2> <h2>{{post.title | strip}} </h2>
<a class="topic-title" href="{{post.url}}">🔗</a> <a class="topic-title" href="{{post.url}}">🔗</a>
{% if post.sources contains "PTI" %} {% if post.sources contains "PTI" or post.sources contains "IE"%}
<span title="Syndicated News">📡</span> <span title="Syndicated News">📡</span>
{%endif%} {%endif%}
</summary> </summary>

View File

@ -1,9 +0,0 @@
# Monkey patch to fix the inline_script bug
module HtmlPress
def self.js_compressor (text, options = nil)
options ||= {}
# This line is commented
# options[:inline_script] = true
MultiJs.compile(text, options).gsub(/;$/,'')
end
end

View File

@ -12,7 +12,7 @@ layout: default
{% for post in site.pages %} {% for post in site.pages %}
{% if post.topics and post.days_ago < 2 and post.topics.first == topic %} {% if post.topics and post.days_ago < 2 and post.topics.first == topic %}
{% unless post.sources contains "PTI" %} {% unless post.sources contains "PTI" or post.sources contains "IE" %}
<details data-hash="{{post.id}}-{{post.date | date: '%s'}}"><summary><h3>{{post.title | strip}}</h3></summary> <details data-hash="{{post.id}}-{{post.date | date: '%s'}}"><summary><h3>{{post.title | strip}}</h3></summary>
<div class="details-content">{{post.content}}</div> <div class="details-content">{{post.content}}</div>
</details> </details>