-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: generate a static site with Hugo
Signed-off-by: knqyf263 <[email protected]>
- Loading branch information
Showing
10 changed files
with
242 additions
and
7 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
Empty file.
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,5 @@ | ||
+++ | ||
title = '{{ replace .File.ContentBaseName "-" " " | title }}' | ||
date = {{ .Date }} | ||
draft = true | ||
+++ |
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 @@ | ||
baseURL: "/" | ||
languageCode: en-us | ||
title: Trivy Plugins | ||
enableGitInfo: true | ||
enableRobotsTXT: true | ||
canonifyURLs: true | ||
|
||
disableKinds: | ||
- taxonomy | ||
|
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,11 @@ | ||
{{ define "main" }} | ||
|
||
<h1 class="display-3 text-danger">Not found</h1> | ||
|
||
<p class="lead"> | ||
Sorry, this URL cannot be found. Maybe it’s moved. | ||
</p> | ||
|
||
<a href=" {{ "/" }} " class="btn btn-lg btn-primary">← Home</a> | ||
|
||
{{ 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,28 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>{{ .Site.Title }}</title> | ||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> | ||
<link rel="stylesheet" href="/css/style.css"> | ||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script> | ||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> | ||
<style> | ||
.stars { | ||
display: inline-block; | ||
vertical-align: middle; | ||
margin-left: 10px; | ||
} | ||
</style> | ||
</head> | ||
|
||
{{ partial "header.html" . }} | ||
|
||
<body> | ||
<main> | ||
{{ block "main" . }}{{ end }} | ||
</main> | ||
</body> | ||
</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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{{ define "main" }} | ||
<body> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-8 offset-md-2"> | ||
<h1>{{ .Site.Title }}</h1> | ||
<p>Below you will find the list of Trivy plugins distributed on the centralized | ||
<a href="https://github.com/aquasecurity/trivy-plugin-index">trivy-plugin-index</a>. To install these plugins on your machine:</p> | ||
<ol> | ||
<li><a href="https://aquasecurity.github.io/trivy/v0.51/getting-started/installation/">Install the latest version of Trivy</a></li> | ||
<li>Run <code>trivy plugin install <PLUGIN_NAME></code> to install a plugin.</li> | ||
</ol> | ||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th>Type</th> | ||
<th>Description</th> | ||
<th>Repository</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{{ range .Site.Data.v1.plugins }} | ||
<tr> | ||
<td><a href="{{ .repo }}" target="_blank">{{ .name }}</a></td> | ||
<td>{{ if .type }}{{ .type }}{{ else }}generic{{ end }}</td> | ||
<td>{{ .summary }}</td> | ||
<td> | ||
<a href="{{ .repo }}" target="_blank"> | ||
<img src="https://img.shields.io/github/stars/{{ replace .repo "https://github.com/" "" }}?style=social" alt="GitHub stars"> | ||
</a> | ||
</td> | ||
</tr> | ||
{{ end }} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
{{ 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,10 @@ | ||
<header class="header"> | ||
<div class="container container-header"> | ||
<div class="logo"> | ||
<a href="/" class="header-logo"> | ||
<img src="/img/trivy-logo.svg" alt="Trivy Logo" style="height: 70px;"> | ||
</a> | ||
</div> | ||
</div> | ||
</header> | ||
|
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,17 @@ | ||
.header { | ||
background-color: #f8f9fa; | ||
padding: 10px 0; | ||
margin: 0; | ||
margin-bottom: 30px; | ||
} | ||
|
||
.logo { | ||
display: flex; | ||
align-items: center; | ||
justify-content: flex-start; | ||
} | ||
|
||
.header-logo { | ||
margin-top: -10px; | ||
margin-left: 120px; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.