Skip to content

Commit

Permalink
chore(build): using hugo pipes
Browse files Browse the repository at this point in the history
  • Loading branch information
sdvcrx committed Mar 18, 2020
1 parent d39d3e4 commit f25d032
Show file tree
Hide file tree
Showing 53 changed files with 9 additions and 6,098 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.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
.icon-link {
visibility: hidden;
font-size: 16px;
display: contents;

&:before {
vertical-align: middle;
Expand Down
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions src/js/even.js → assets/js/even.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,5 +276,3 @@ Even.responsiveTable = function() {
wrapper.appendChild(table);
}
};

export {Even}
4 changes: 0 additions & 4 deletions src/js/main.js → assets/js/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import {Even} from './even.js'

import '../css/style.scss'

$(document).ready(function () {
Even.backToTop();
Even.mobileNavbar();
Expand Down
6 changes: 0 additions & 6 deletions data/even/assets.json

This file was deleted.

4 changes: 3 additions & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@
{{- end -}}

<!-- Styles -->
<link href="{{ print "dist/" .Site.Data.even.assets.even.css | relURL }}" rel="stylesheet">
{{ $style := resources.Get "css/style.scss" | toCSS | minify | fingerprint }}
<link href="{{ $style.Permalink }}" rel="stylesheet">

{{ if .Site.Params.publicCDN.enable -}}
{{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxCSS | safeHTML }}{{ end }}
{{- else -}}
Expand Down
6 changes: 5 additions & 1 deletion layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@
<link rel="stylesheet" href="{{ "lib/js-sequence-diagrams/sequence-diagram-2.0.1.min.css" | relURL }}" integrity="sha384-6QbLKJMz5dS3adWSeINZe74uSydBGFbnzaAYmp+tKyq60S7H2p6V7g1TysM5lAaF" crossorigin="anonymous">
{{- end -}}
{{- end }}
<script type="text/javascript" src="{{ print "dist/" .Site.Data.even.assets.even.js | relURL }}"></script>

{{ $even := resources.Get "js/even.js" }}
{{ $main := resources.Get "js/main.js" }}
{{ $js := slice $even $main | resources.Concat "js/main.js" | fingerprint }}
<script type="text/javascript" src="{{ $js.Permalink }}"></script>

{{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }}
<script type="text/javascript">
Expand Down
32 changes: 0 additions & 32 deletions package.json

This file was deleted.

7 changes: 0 additions & 7 deletions postcss.config.js

This file was deleted.

2 changes: 0 additions & 2 deletions static/dist/even.26188efa.min.js

This file was deleted.

4 changes: 0 additions & 4 deletions static/dist/even.c2a46f00.min.css

This file was deleted.

Loading

0 comments on commit f25d032

Please sign in to comment.