File tree Expand file tree Collapse file tree 5 files changed +25
-5
lines changed Expand file tree Collapse file tree 5 files changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ jobs:
18
18
uses : ruby/setup-ruby@v1
19
19
with :
20
20
bundler-cache : true
21
- env :
22
- JEKYLL_ENV : production
23
21
24
22
- name : Build the website
25
23
run : bundle exec jekyll build
24
+ env :
25
+ JEKYLL_ENV : production
26
26
27
27
- name : Publish
28
28
uses : cloudflare/pages-action@1
Original file line number Diff line number Diff line change 7
7
< link rel ="preconnect " href ="https://fonts.gstatic.com " crossorigin >
8
8
< link href ="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap " rel ="stylesheet ">
9
9
< link href ="https://fonts.googleapis.com/css2?family=DM+Sans&family=Syncopate:wght@700&display=swap " rel ="stylesheet ">
10
- < link type =" text/css " rel =" stylesheet " href =" /application.css " />
10
+
11
11
< script async src ="https://analytics.umami.is/script.js " data-website-id ="209b35e2-b972-4bf5-8a88-09cedbc740f8 " data-domains ="ruby.uy "> </ script >
12
- < link rel ="stylesheet " href ="/assets/css/ styles. css ">
12
+ < link rel ="stylesheet " href ="{{ " styles " | css }} ">
13
13
</ head >
Original file line number Diff line number Diff line change
1
+ require 'digest'
2
+
3
+ module Filters
4
+ def buster ( filename )
5
+ filepath = File . join ( @context . registers [ :site ] . dest , filename )
6
+
7
+ Digest ::SHA256
8
+ . file ( filepath )
9
+ . then { |sha | sha . hexdigest }
10
+ . then { |digest | "#{ filename } ?#{ digest } " }
11
+ rescue Errno ::ENOENT
12
+ filename
13
+ end
14
+
15
+ def css ( filename )
16
+ buster ( "/assets/css/#{ filename } .css" )
17
+ end
18
+ end
19
+
20
+ Liquid ::Template . register_filter ( Filters )
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
---
2
2
---
3
- @import ' topbar' ;
3
+ @import ' application ' , ' topbar' ;
You can’t perform that action at this time.
0 commit comments