Skip to content

Commit

Permalink
Merge every CSS file into once
Browse files Browse the repository at this point in the history
  • Loading branch information
gr-im committed Aug 13, 2024
1 parent 7c94279 commit e928904
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
9 changes: 8 additions & 1 deletion lib/action/css.ml
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
let run (module R : Sigs.RESOLVER) =
Batch_copy.run ~extension:[ "css" ] ~source:R.Source.css ~target:R.Target.css
Yocaml.Action.Static.write_file R.Target.css
(Yocaml.Pipeline.pipe_files ~separator:"\n"
Yocaml.Path.
[
R.Source.css / "fonts.css";
R.Source.css / "reset.css";
R.Source.css / "style.css";
])
2 changes: 1 addition & 1 deletion lib/resolver.ml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module Make (R : Sigs.RESOLVABLE) = struct
let atom = Path.(R.target / "atom.xml")
let ring_opml = Path.(opml / "ring.opml")
let members = Path.(R.target / "u")
let css = Path.(R.target / "css")
let css = Path.(R.target / "css" / "style.css")
let fonts = Path.(R.target / "fonts")
let index = Path.(R.target / "index.html")
let images = Path.(R.target / "images")
Expand Down
2 changes: 0 additions & 2 deletions static/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
<title>
ring.muhokama.fun{%- if has_page_title %} - {{ page_title }}{%- endif -%}
</title>
<link rel="stylesheet" href="/css/fonts.css" />
<link rel="stylesheet" href="/css/reset.css" />
<link rel="stylesheet" href="/css/style.css" />
</head>
<body>
Expand Down

0 comments on commit e928904

Please sign in to comment.