Skip to content

Commit

Permalink
migrate all stylesheets to SCSS
Browse files Browse the repository at this point in the history
combine main stylesheets into a single file, minify and fingerprint all
files
  • Loading branch information
willnorris committed May 26, 2021
1 parent 9a58ba5 commit d659dc3
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 13 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// feather core and components
@import "feather-core";
@import "feather-component-button";
@import "feather-component-grid";

@import "main";
File renamed without changes.
2 changes: 1 addition & 1 deletion content/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Twitter Open Source
description: Twitter Open Source Website
keywords: twitter, open, source, open source, finatra, finagle, scala
custom_css: index.css
custom_css: index.scss
custom_js: index.js
---

Expand Down
2 changes: 1 addition & 1 deletion content/memberships.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
title: Memberships | Twitter Open Source
description: Twitter Open Source Website
keywords: twitter, open, source, open source, finatra, finagle, scala
custom_css: memberships.css
custom_css: memberships.scss
custom_js: memberships.js
---
2 changes: 1 addition & 1 deletion content/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
title: Projects | Twitter Open Source
description: All Twitter Open Source Projects
keywords: twitter, open, source, open source, finatra, finagle, scala
custom_css: projects.css
custom_css: projects.scss
custom_js: projects.js
---
2 changes: 1 addition & 1 deletion content/year-in-review.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
title: Year in Review | Twitter Open Source
description: Twitter Open Source Website
keywords: twitter, open, source, open source, finatra, finagle, scala
custom_css: year-in-review.css
custom_css: year-in-review.scss
custom_js: year-in-review.js
---
13 changes: 4 additions & 9 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,10 @@
<title>{{ .Title }}</title>
<link rel="shortcut icon" type="image/png" href="{{ "assets/favicon.ico" | relURL }}"/>

<!-- Feather CSS -->
<link rel="stylesheet" href="{{ "css/feather-core.css" | relURL }}"/>
<link rel="stylesheet" href="{{ "css/feather-component-grid.css" | relURL }}"/>
<link rel="stylesheet" href="{{ "css/feather-component-button.css" | relURL }}"/>

<!-- Main CSS -->
<link rel="stylesheet" href="{{ "css/main.css" | relURL }}"/>
{{- $style := resources.Get "css/style.scss" | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}"/>

{{- with .Params.custom_css }}
<!-- Custom CSS -->
<link rel="stylesheet" href="{{ printf "css/%s" . | relURL }}"/>
{{- $style := resources.Get (printf "css/%s" .) | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}"/>
{{ end }}

0 comments on commit d659dc3

Please sign in to comment.