diff --git a/README.md b/README.md index d8e6a3222..b9e0433d5 100644 --- a/README.md +++ b/README.md @@ -151,19 +151,6 @@ seen [here](governance/related-groups/) ### On-going projects -#### Policy team - -Policy is an essential component of a secure system. - -[Bi-weekly meetings](https://docs.google.com/document/d/1ihFfEfgViKlUMbY2NKxaJzBkgHh-Phk5hqKTzK-NEEs/edit?usp=sharing) -at 3:00 PM PT focus on policy concerns and initiatives. - -Co-leads - -- TBD - -Co-chair representative: @achetal01 - #### Security reviews [Security reviews](./assessments) are a collaborative process for the benefit of diff --git a/website/config.toml b/website/config.toml index b5e78eb71..f4aa7661a 100644 --- a/website/config.toml +++ b/website/config.toml @@ -133,8 +133,8 @@ sidebar_search_disable = false [params.ui.feedback] enable = true # The responses that the user sees after clicking "yes" (the page was helpful) or "no" (the page was not helpful). -yes = 'Glad to hear it! Please tell us how we can improve.' -no = 'Sorry to hear that. Please tell us how we can improve.' +yes = 'Glad to hear it! Please tell us how we can improve.' +no = 'Sorry to hear that. Please tell us how we can improve.' # Adds a reading time to the top of each doc. # If you want this feature, but occasionally need to remove the Reading time from a single page, diff --git a/website/layouts/_default/content.html b/website/layouts/_default/content.html new file mode 100644 index 000000000..d8a1ecb0b --- /dev/null +++ b/website/layouts/_default/content.html @@ -0,0 +1,17 @@ +
+

{{ .Title }}

+ {{ with .Params.description }}
{{ . | markdownify }}
{{ end }} + {{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) }} + {{ partial "reading-time.html" . }} + {{ end }} + {{ .Content }} + {{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable)) }} + {{ partial "feedback.html" .Site.Params.ui.feedback }} +
+ {{ end }} + {{ if (.Site.Params.DisqusShortname) }} +
+ {{ partial "disqus-comment.html" . }} + {{ end }} +
{{ partial "page-meta-lastmod.html" . }}
+
diff --git a/website/layouts/partials/feedback.html b/website/layouts/partials/feedback.html index 966fd0b34..d79f34fe1 100644 --- a/website/layouts/partials/feedback.html +++ b/website/layouts/partials/feedback.html @@ -35,21 +35,18 @@

Feedback

noButton.disabled = true; }; const sendFeedback = (value) => { - if (typeof ga !== 'function') return; - const args = { - command: 'send', - hitType: 'event', - category: 'Helpful', - action: 'click', - label: window.location.pathname, - value: value - }; - ga(args.command, args.hitType, args.category, args.action, args.label, args.value); + if (typeof gtag !== 'function') return; + gtag('event', 'page_helpful', { + 'event_category': 'Helpful', + 'event_label': window.location.href, + 'value': value + }); }; yesButton.addEventListener('click', () => { yesResponse.classList.add('feedback--response__visible'); disableButtons(); - sendFeedback(1); + {{ $maxValue := .max_value | default 100 -}} + sendFeedback({{ $maxValue }}); }); noButton.addEventListener('click', () => { noResponse.classList.add('feedback--response__visible');