Skip to content

Commit

Permalink
Add generic customization to landing page
Browse files Browse the repository at this point in the history
Allow generic additional HTML or CSS to be added to the landing page
output.

Signed-off-by: SuperQ <superq@gmail.com>
  • Loading branch information
SuperQ committed Mar 30, 2023
1 parent f42e5c7 commit 739c2f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions web/landing_page.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ label {
display: inline-block;
width: {{.Form.Width}}em;
}
{{.ExtraCSS}}
2 changes: 2 additions & 0 deletions web/landing_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ type LandingConfig struct {
Description string // A short description about the exporter.
Form LandingForm // A POST form.
Links []LandingLinks // Links displayed on the landing page.
ExtraHTML string // Additional HTML to be embedded.
ExtraCSS string // Additional CSS to be embedded.
Version string // The version displayed.
}

Expand Down
1 change: 1 addition & 0 deletions web/landing_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ <h1>{{.Name}}</h1>
</form>
</div>
{{ end }}
{{ .ExtraHTML }}
</main>
</body>
</html>

0 comments on commit 739c2f9

Please sign in to comment.