-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configured prettier and github actions (#19)
* prettier setup * formatted by prettier * github actions test * github actions fix * fix
- Loading branch information
Showing
23 changed files
with
244 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: CI | ||
'on': | ||
- push | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install modules | ||
run: | | ||
npm install | ||
- name: Run Prettier | ||
run: | | ||
npm run check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/public | ||
_gen | ||
_gen | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"overrides": [ | ||
{ | ||
"files": ["*.html"], | ||
"options": { | ||
"parser": "go-template" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
function fileClosure(){ | ||
console.log("Hello World") | ||
function fileClosure() { | ||
console.log("Hello World"); | ||
} | ||
|
||
window.addEventListener('load', fileClosure()); | ||
window.addEventListener("load", fileClosure()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
function loadNavbar(){ | ||
console.log("Loaded Navbar") | ||
function loadNavbar() { | ||
console.log("Loaded Navbar"); | ||
} | ||
|
||
window.addEventListener('load', loadNavbar()); | ||
window.addEventListener("load", loadNavbar()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
background-color: var(--bg); | ||
margin: 0; | ||
padding: 0; | ||
background-color: var(--bg); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,41 @@ | ||
|
||
.overlaypost_header { | ||
background-size: cover; | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
position: absolute; | ||
width: 100%; | ||
height: 75vh; | ||
background-color:black; | ||
margin-top: -10rem; | ||
z-index: -1; | ||
background-size: cover; | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
position: absolute; | ||
width: 100%; | ||
height: 75vh; | ||
background-color: black; | ||
margin-top: -10rem; | ||
z-index: -1; | ||
} | ||
|
||
.overlaypost_blur { | ||
filter: blur(0.2rem); | ||
-webkit-filter: blur(0.2rem); | ||
filter: blur(0.2rem); | ||
-webkit-filter: blur(0.2rem); | ||
} | ||
|
||
.overlaypost_header::after { | ||
content: ""; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
z-index: 1; | ||
background: rgba(10,15,30,0.72); | ||
content: ""; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
z-index: 1; | ||
background: rgba(10, 15, 30, 0.72); | ||
} | ||
|
||
.overlaypost { | ||
padding: 1rem 3.5rem; | ||
max-width: 45rem; | ||
margin: 0 auto; | ||
margin-top: 10rem; | ||
background-color: var(--bg); | ||
box-shadow: 0px 0.5rem 1rem -0.5rem rgba(19, 17, 16, 0.384); | ||
border-radius: 0.25rem; | ||
padding: 1rem 3.5rem; | ||
max-width: 45rem; | ||
margin: 0 auto; | ||
margin-top: 10rem; | ||
background-color: var(--bg); | ||
box-shadow: 0px 0.5rem 1rem -0.5rem rgba(19, 17, 16, 0.384); | ||
border-radius: 0.25rem; | ||
|
||
h2 { | ||
margin-top: 2rem; | ||
} | ||
h2 { | ||
margin-top: 2rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
.post_header { | ||
background-size: cover; | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
position: relative; | ||
height: 40vh; | ||
background-color: var(--bg); | ||
margin-top: 3rem; | ||
background-size: cover; | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
position: relative; | ||
height: 40vh; | ||
background-color: var(--bg); | ||
margin-top: 3rem; | ||
} | ||
|
||
.post_header::after { | ||
content: ""; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
z-index: 1; | ||
background: rgba(10,15,30,0.72); | ||
content: ""; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
z-index: 1; | ||
background: rgba(10, 15, 30, 0.72); | ||
} | ||
|
||
.post { | ||
padding: 1rem 1.5rem; | ||
margin-top: 1.5rem; | ||
max-width: 45rem; | ||
margin: 0 auto; | ||
padding: 1rem 1.5rem; | ||
margin-top: 1.5rem; | ||
max-width: 45rem; | ||
margin: 0 auto; | ||
|
||
h2 { | ||
margin-top: 2rem; | ||
} | ||
h2 { | ||
margin-top: 2rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@import 'variables'; | ||
@import 'components'; | ||
@import 'global'; | ||
@import "variables"; | ||
@import "components"; | ||
@import "global"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
{{ define "main" }} | ||
{{- partial "navbar.html" . -}} | ||
{{- partial "navbar.html" . -}} | ||
|
||
<!--Header--> | ||
{{- if ne .Params.hideBanner true }} | ||
<section class = 'post_header' style = 'background-image:url({{ absURL .Params.background }});'></section> | ||
{{- end }} | ||
<!--Header--> | ||
{{- if ne .Params.hideBanner true }} | ||
<section | ||
class="post_header" | ||
style="background-image:url({{ absURL .Params.background }});" | ||
></section> | ||
{{- end }} | ||
|
||
<!--Content--> | ||
<div class = '{{ if .Params.full }}wrap post{{ else }}post{{ end }}'> | ||
<article class='post_content'> | ||
{{- .Content }} | ||
</article> | ||
</div> | ||
<!--Content--> | ||
<div class="{{ if .Params.full }}wrap post{{ else }}post{{ end }}"> | ||
<article class="post_content"> | ||
{{- .Content }} | ||
</article> | ||
</div> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
{{- partial "head.html" . -}} | ||
<body> | ||
{{- block "main" . }}{{- end }} | ||
</body> | ||
{{- partial "footer.html" . -}} | ||
{{- partial "head.html" . -}} | ||
<body> | ||
{{- block "main" . }}{{- end }} | ||
</body> | ||
{{- partial "footer.html" . -}} | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{{ define "main" }} | ||
<h1>List</h1> | ||
<h1>{{ .Title }}</h1> | ||
{{ .Content }} | ||
<h1>List</h1> | ||
<h1>{{ .Title }}</h1> | ||
{{ .Content }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
{{ define "main" }} | ||
{{- partial "navbar.html" . -}} | ||
{{- partial "navbar.html" . -}} | ||
|
||
<!--Header--> | ||
{{- if ne .Params.hideBanner true }} | ||
<section class = 'overlaypost_header' style = 'background-image:url({{ absURL .Params.background }});'></section> | ||
<section class = 'overlaypost_header overlaypost_blur' style = 'background-image:url({{ absURL .Params.background }});'></section> | ||
{{- end }} | ||
<!--Header--> | ||
{{- if ne .Params.hideBanner true }} | ||
<section | ||
class="overlaypost_header" | ||
style="background-image:url({{ absURL .Params.background }});" | ||
></section> | ||
<section | ||
class="overlaypost_header overlaypost_blur" | ||
style="background-image:url({{ absURL .Params.background }});" | ||
></section> | ||
{{- end }} | ||
|
||
<!--Content--> | ||
<div class = '{{ if .Params.full }}wrap post{{ else }}overlaypost{{ end }}'> | ||
<article class='overlaypost_content'> | ||
<!--Temp--> | ||
<h1 style="font-size: 3rem">{{- .Params.title }}</h1> | ||
{{- .Content }} | ||
</article> | ||
</div> | ||
<!--Content--> | ||
<div class="{{ if .Params.full }}wrap post{{ else }}overlaypost{{ end }}"> | ||
<article class="overlaypost_content"> | ||
<!--Temp--> | ||
<h1 style="font-size: 3rem">{{- .Params.title }}</h1> | ||
{{- .Content }} | ||
</article> | ||
</div> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{{ define "main" }} | ||
<h1>Single</h1> | ||
<h1>{{ .Title }}</h1> | ||
{{ .Content }} | ||
<h1>Single</h1> | ||
<h1>{{ .Title }}</h1> | ||
{{ .Content }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{{ define "main" }} | ||
{{- partial "navbar.html" . -}} | ||
<h1>Site</h1> | ||
{{ .Content }} | ||
{{- partial "navbar.html" . -}} | ||
<h1>Site</h1> | ||
{{ .Content }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
{{- $options := (dict "targetPath" "css/styles.css" "outputStyle" "compressed" "enableSourceMap" "true") -}} | ||
{{- $styles := resources.Get "scss/main.scss" | resources.ExecuteAsTemplate "main.scss" . | resources.ToCSS $options | resources.Fingerprint "sha512" }} | ||
<link rel = 'stylesheet' href = '{{ $styles.Permalink }}' crossorigin="anonymous" integrity = '{{ $styles.Data.Integrity }}'> | ||
<!--<link rel="stylesheet" type="text/css" href="/css/style.css">--> | ||
{{ $title := print .Site.Title " | " .Title }} | ||
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} | ||
<title>{{ $title }}</title> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
{{- $options := (dict "targetPath" "css/styles.css" "outputStyle" "compressed" "enableSourceMap" "true") -}} | ||
{{- $styles := resources.Get "scss/main.scss" | resources.ExecuteAsTemplate "main.scss" . | resources.ToCSS $options | resources.Fingerprint "sha512" }} | ||
<link | ||
rel="stylesheet" | ||
href="{{ $styles.Permalink }}" | ||
crossorigin="anonymous" | ||
integrity="{{ $styles.Data.Integrity }}" | ||
/> | ||
<!--<link rel="stylesheet" type="text/css" href="/css/style.css">--> | ||
{{ $title := print .Site.Title " | " .Title }} | ||
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} | ||
<title>{{ $title }}</title> | ||
</head> |
Oops, something went wrong.