Skip to content

Commit

Permalink
nvd_page seo description typo fix (#72)
Browse files Browse the repository at this point in the history
* tracking code updates -

changed aquasec's the tracking codes to use the google tag manager instead of the old non-ga4 analytics

* updated the nvd_page page types descriptions for seo purposes

* nvd_page seo description typo fix

fixed a typo on the nvd_page seo description

* breadcrumbs and title structure tweaks

updated the semantic title structure to better match the nvd pages

* updated the favicon and shortcut icons on avd
  • Loading branch information
tabakman authored Jul 20, 2023
1 parent 8c84b0c commit a31c412
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 18 deletions.
Binary file modified static/apple-touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/favicon.ico
Binary file not shown.
Binary file modified static/favicon_192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions themes/aquablank/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
<html lang="{{ .Site.LanguageCode | default "en-us" }}">

<head>
<link rel="icon" href="{{ `images/favicon.png` | absURL }}" type="image/x-icon">

<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="{{ "favicon.ico" | relURL }}" />
Expand All @@ -29,9 +27,9 @@
{{ .Scratch.Set "seo_description" .Title | safeHTML }}
{{ .Scratch.Add "seo_description" " Vulnerability, " }}
{{ .Scratch.Add "seo_description" "Severity " }}
{{ .Scratch.Set "seo_description" .Params.cvss_nvd_v3_score | safeHTML }}
{{ .Scratch.Add "seo_description" .Params.cvss_nvd_v3_score | safeHTML }}
{{ .Scratch.Add "seo_description" " " }}
{{ .Scratch.Set "seo_description" .Params.cvss_nvd_v3_severity | safeHTML }}
{{ .Scratch.Add "seo_description" .Params.cvss_nvd_v3_severity | safeHTML }}
{{ .Scratch.Add "seo_description" ", " }}
{{ .Scratch.Add "seo_description" (.Params.header_subtitle | safeHTML | truncate 110) }}
{{ else }}
Expand Down
14 changes: 6 additions & 8 deletions themes/aquablank/layouts/partials/list_avd.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@
<div class="page_pretitle with_icon {{ .Params.icon }} fadeInUp">
{{ if .Params.breadcrumbs }}
{{ $page := . }}
{{ range $breadcrumb := .Params.breadcrumbs }}
{{ if ne $breadcrumb.name $page.Title }}
<a href="{{ $breadcrumb.path }}">{{ $breadcrumb.name }}</a> >
{{ end }}
{{ end }}
{{ .Title }}
{{ else }}
{{ .Title }}
{{ range $breadcrumb := .Params.breadcrumbs }}
{{ if ne $breadcrumb.name $page.Title }}
<a href="{{ $breadcrumb.path }}">{{ $breadcrumb.name }}</a> >
{{ end }}
{{ end }}
{{ end }}
</div>
<h1 class="title page_title fadeInUp animationDelay_1">{{ .Title }}</h1>
</div><!-- header_title_wrap -->
</div><!-- container -->
</div><!-- hero-body -->
Expand Down
4 changes: 1 addition & 3 deletions themes/aquablank/layouts/partials/list_toplevel.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@
<a href="{{ $breadcrumb.path }}">{{ $breadcrumb.name }}</a> >
{{ end }}
{{ end }}
{{ .Title }}
{{ else }}
{{ .Title }}
{{ end }}
</div>
<h1 class="title page_title fadeInUp animationDelay_1">{{ .Title }}</h1>
<!--<h2 class="subtitle page_subtitle">AVD Hero Subtitle 012</h2>-->
</div><!-- header_title_wrap -->
</div><!-- container -->
Expand Down
9 changes: 6 additions & 3 deletions themes/aquablank/layouts/partials/page_avd.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@
<a href="{{ $breadcrumb.path }}">{{ $breadcrumb.name }}</a> >
{{ end }}
{{ end }}
{{ .Title }}
{{ else }}
{{ .Params.heading }}
{{ end }}
</div>

{{ if .Params.breadcrumbs }}
<h1 class="title page_title fadeInUp animationDelay_1">{{ .Title }}</h1>
{{ else }}
<h1 class="title page_title fadeInUp animationDelay_1">{{ .Params.heading }}</h1>
{{ end }}

</div><!-- header_title_wrap -->
</div><!-- container -->
</div><!-- hero-body -->
Expand Down

0 comments on commit a31c412

Please sign in to comment.