-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from Ruby+Middleman to Hugo (#28)
- Loading branch information
Showing
19 changed files
with
39 additions
and
458 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
.bundle | ||
.cache | ||
.DS_Store | ||
.sass-cache | ||
build/ | ||
/public/ | ||
/resources/_gen/ | ||
/.hugo_build.lock |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
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 @@ | ||
disableKinds = ["taxonomy", "rss", "sitemap"] |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{- define "description" -}} | ||
{{- $latest := partial "latest.html" . -}} | ||
It has been {{ partial "since.html" $latest.date }} since the last alg:none JWT vulnerability. | ||
{{- end -}} | ||
|
||
{{ define "main" }} | ||
{{ $latest := partial "latest.html" . }} | ||
|
||
<h1>It has been <span class="since">{{ partial "since.html" $latest.date }}</span> since the last alg:none JWT vulnerability.</h1> | ||
|
||
<p>{{ $latest.description | safe.HTML }}</p> | ||
|
||
{{ 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{{ $sorted := sort .Site.Data.vulns "date" "desc" }} | ||
{{ $latest := index $sorted 0 }} | ||
{{ return $latest }} |
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,8 @@ | ||
{{- $date := . | time -}} | ||
{{- $duration := now.Sub $date -}} | ||
{{- $days := div $duration.Hours 24 | math.Floor -}} | ||
{{- if eq $days 1.0 -}} | ||
1 day | ||
{{- else -}} | ||
{{ $days }} days | ||
{{- end -}} |
Oops, something went wrong.