59 Commits

Author SHA1 Message Date
Zack Chase
8006250971
Add page number to blog list pages after the first page (#3485) 2023-10-11 09:04:04 -07:00
Pablo Seibelt
c9bbbbb243
Remove extra newlines for PR 2023-09-06 15:03:47 -03:00
Pablo Seibelt
a79d8d2640
Skip loading segment for specific user agents 2023-09-06 15:01:37 -03:00
Zack Chase
893e62db2e
Add vwo snippet (#3175) 2023-07-20 15:20:51 -07:00
Christian Nunciato
9f361425cf
Use a rectangular default og:image (#3140) 2023-07-10 17:34:10 -07:00
Christian Nunciato
c977c7bdc9
Don't send Sentryt events for browsers we don't support (#3118) 2023-06-28 07:52:44 -07:00
Christian Nunciato
d188322a99
Add Algolia search UI (#2868) 2023-06-12 12:00:58 -07:00
Christian Nunciato
ec5251b5a0
Add blog meta image (#3020) 2023-06-08 18:00:55 -07:00
Sean Holung
9f115f8326
update title tags to replace slashes with dots for registry pages (#2554) 2023-03-10 16:17:22 -08:00
Zack Chase
eefd35a287
Add noindex to taxonomy pages (#2138) 2023-01-12 14:31:24 -08:00
Zack Chase
b84e155727
Add additional text in titles for docs and registry (#2387) 2023-01-10 12:00:46 -08:00
Christian Nunciato
9086a9a6fa
Add a page listing all blog tags (#2064) 2023-01-04 13:13:21 -08:00
Christian Nunciato
821b297956
Add templates section (#1891) 2022-09-12 23:29:32 +00:00
Sarah Hughes
9effe6c127
add script for google events, fill in event data for CED (#1872)
* add script for google events, fill in event data for CED

* lint

* remove explicit googlebot allow
2022-08-26 14:52:01 -07:00
Kimberley Mackenzie
e35e01f06f
Prettier Spike (#1517)
* Add Prettier set-up (no formatting in this commit).

* Manual fixes for Prettier issues.

* Run Prettier fix on non-markdown files.

* Incorporate Prettier PR feedback - update commands, re-apply new yaml styles, add editor config.

* Remove deprecated config item.

* Add dependency on prettier-plugin-go-template.

* reconcile changed file with prettier formatting.

* Add git blame ignore revs file to include Prettier formatting commit.

* Fix format issue with merge conflict.
2022-06-01 10:58:20 -07:00
Zack Chase
8e853a17e2
Update site header with fb domain verfication (#1556) 2022-05-26 11:15:14 -07:00
Zack Chase
4c6d729ab9
Add context to assets partial (#1247) 2022-03-29 09:10:02 -07:00
Kimberley Mackenzie
2da70149fa
Add swiftype meta tag for registry package overview pages. (#1219) 2022-03-17 09:07:56 -07:00
Zack Chase
6f7171fc23
Add zoominfo websights snippet (#1132) 2022-03-16 15:05:33 -07:00
Christian Nunciato
06afa6d1a0
Redirect /crosswalk (#1024)
We don't currently have any content on this page, and it's indexed, so we should probably send those who find it to our current Crosswalk for AWS docs.
2022-02-02 10:30:23 -08:00
Matt Stratton
b2605ca5d2
Add support for custom canonical tag (#902)
Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-12-14 12:46:31 -06:00
Zack Chase
598bab4064
Fix some SEO issues and warnings (#825) 2021-11-04 11:38:55 -07:00
Devon Grove
6059153556
Add Registry to sections which use anchor-js (#824) 2021-11-04 08:44:21 -07:00
Christian Nunciato
97ad290726 Merge branch 'master' into cnunciato/reg-staging-test 2021-10-14 15:10:01 -07:00
Praneet Loke
b1361816ea
Add another meta tag to add a title prefix for packages pages (#721) 2021-10-13 17:05:42 -07:00
Christian Nunciato
66896d7571
Add theme for local dev, use the theme-assets partial, fix cli font size (#705)
* Add theme for local dev, use the theme-assets partial, fix cli font size

* Restore a mistakenly deleted thing
2021-10-09 22:14:12 -07:00
Christian Nunciato
0ed9e751a6
Support page-level noindex (#540) 2021-08-31 13:18:29 -07:00
Christian Nunciato
1004191784
Lazy-load sentry (#282) 2021-06-01 11:46:19 -07:00
Zack Chase
268f051e19
Update social card image (#129) 2021-04-27 16:55:07 -07:00
Sean Holung
36a5263f86
update logo in page title (#112)
* switch logo
2021-04-20 19:32:37 -07:00
David Wrede
7fcffc3519 New search experience via Swiftype (#5223)
* Prototyping new Swiftype search integration

* Remove script for building search index

* Remove search

* Script cleanup

* Style adjustments

* Relocate search bar to top of left nav

* Back out inadvertent package.json additions

* Reparent the Swiftype autocomplete container

Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-02-19 16:48:31 -08:00
David Wrede
2f39ad0bd8 Denote blog entries in Swiftype search result sets (#5262) 2021-02-16 11:08:57 -08:00
David Wrede
2173bd418c Override Swiftype title string to shortened version of main title (#5179) 2021-02-09 22:09:22 -08:00
Christian Nunciato
f39e6b3603 Couple of JS fixes (#4508)
* Correct IIFE syntax
* Check for anchors before using it
2020-11-02 13:00:22 -08:00
Zack Chase
bbb62ffc2d Add tag for google site verification (#4407)
* Add tag for google site verification

* Replace exisiting google verification tag
2020-10-20 13:23:49 -07:00
Christian Nunciato
4a6ba81ebc Replace the *2pulumis with a pulumi-convert component (#4266) 2020-10-08 10:51:50 -07:00
Zack Chase
b703958deb Preload component.js files (#3922)
* Prefetch component.js files

* Use preload instead of prefetch

* Add crossorigin to preloads

* Use async instead of defer for component.js loads

* Add preloads for component scripts

* Use defer instead of async

* Apply suggestions from code review

Co-authored-by: Christian Nunciato <c@nunciato.org>

* Add back in crossorigin to avoid warning

* Update layouts/partials/head.html

Co-authored-by: Christian Nunciato <c@nunciato.org>

Co-authored-by: Christian Nunciato <c@nunciato.org>
2020-08-20 15:34:54 -07:00
Christian Nunciato
8cbcd4eb66 Publish sourcemaps to Sentry (#3962) 2020-08-17 13:13:18 -07:00
Christian Nunciato
e607c1ce40 Add Sentry for client-side error reporting (#3912) 2020-08-13 15:47:59 -07:00
Christian Nunciato
859d41cacd Deploy the website atomically (#3799) 2020-07-30 13:44:55 -07:00
Christian Nunciato
f04fa21854 Build CSS and JS bundles outside of Hugo (#3725) 2020-07-02 20:33:01 -07:00
Christian Nunciato
e4929ad6cd Change default card to summary (#2852) 2020-04-06 11:49:36 -07:00
Christian Nunciato
1b5e9661bb use a RelPermalink for the CSS ref (#2347) 2020-01-30 13:01:14 -08:00
Zack Chase
5c54387a80 Add digital version of event one pager (#2239)
* Add initial framework for event landing page

* Clean up event one pager and add new CTA

* Replace image with code block; update cta copy

* Update desktop cta and deploy block copy

* Update address to have google maps link

* Remove unused block and content

* Update naming convention for blocking crawlers from indexing a page

* Rename variable for excluding page from internal search

* Do not add pages blocked from external search to the site map

* Add follow to robots meta tag

* Update contributing doc with new front matter variable

* Remove external search blocking from docs index

* Rename event to show

* Move meta desc so pulumify can rebuild the preview
2020-01-17 17:06:55 -08:00
Christian Nunciato
793dd72610 Run the anchoring script on load (#2126)
Signed-off-by: Christian Nunciato <c@nunciato.org>
2019-12-09 12:22:30 -08:00
Christian Nunciato
b9c843d28f Do some SEO cleanup (#2079)
* Don't block on anchor.js

* Add “| Pulumi” to page titles

Signed-off-by: Christian Nunciato <c@nunciato.org>

* Honor shortened title tags where present

Signed-off-by: Christian Nunciato <c@nunciato.org>

* Fix link to example tutorial

Signed-off-by: Christian Nunciato <c@nunciato.org>

* Add H1 tags to pages without them

Signed-off-by: Christian Nunciato <c@nunciato.org>

* Reduce image sizes

Signed-off-by: Christian Nunciato <c@nunciato.org>
2019-12-03 19:06:35 -08:00
joeduffy
c4438a1e0b Prefer meta_desc over summary
This change prefers meta_desc over summary for controlling meta
description tags.

It also undoes the check for a missing meta description in the
prior commit. Since we unconditionally use Hugo's auto content
summarization via .Summary, it doesn't do anything meaningful.
We may want to revisit this as part of pulumi/docs#1475.
2019-07-30 12:18:23 -04:00
joeduffy
9da560dc98 Fix some titles and meta descriptions
This change fixes up some titles and meta descriptions, in hopes
that it'll have a positive impact on our SEO (and SERP summary).

- Ensure all pages have titles and meaningful meta descriptions.

- Error out if pages lack a meta description. Also add the ability
  to write `nosummary: true` if it's intentionally omitted.

- I'd like to error out if pages lack a title too. Unfortunately,
  the Python API docs are missing titles (pulumi/docs#1127), so this
  check is not currently enabled (easy to uncomment out later).

I also made the possibly-controversial change to stop emitting an
automatic `- Pulumi` at the end of page titles. This

- Leads to illy things -- like `About Pulumi - Pulumi`.

- Might make it more difficult for Google to extract a good title for
  our SERP summary; is that why "Documentation" is currently
  awkwardly labeled simply "Pulumi" on Google at the moment?

- Probably has a net negative effect on things like blog articles,
  which we would like to index naturally based on the content.

I propose that anywhere we want Pulumi in the title, we manually add it.
2019-07-30 11:33:36 -04:00
Justin Van Patten
f7f22f4bbf Fix empty meta description tags and check params consistently (#1445)
The `{{ else if ne .Summary "" }}` check is always evaluating to true (probably because `Summary` is typed as `template.HTML` instead of a `string` in Hugo's source), so we go down this path, but when then using `.Summary`, the value is empty. This results in many pages having empty `<meta name="description">`  instead of falling back to using the default description. The fix is to check `{{ else if .Summary }}` which will only evaluate to true if `.Summary` is set and is a non-zero value.

While making changes here, I cleaned up how we access other params throughout. We'll often use `if isset .Params "foo"` to check if the `foo` param is set, but this only checks if the param is set -- it doesn't check if the param actually has a value. The fix is to just use `if .Params.foo`, which will only be true if `foo` is set and is not: `false` (boolean), `0` (integer), or a zero-length array, slice, map, or string.
2019-07-24 15:49:44 -07:00
Justin Van Patten
88bd810426 Friendly error when npm packages aren't installed (#1378)
Our use of PostCSS in Hugo requires the `postcss-cli` npm package to be installed. If it isn't, Hugo will print an error:

> PostCSS not found; install with "npm install postcss-cli". See https://gohugo.io/hugo-pipes/postcss/

However, this isn't ideal for us, as we use `yarn` in this repo, and don't use it directly. Instead, `make ensure` should be used.

My recent change to add a copy button to code snippets also depends on an npm package (`clipboard-polyfill`) to be installed. If it isn't, Hugo fails with several error messages about not being able to read the file, and it isn't immediately obvious how to address the issue.

This change makes it more clear how to address the problem. If the relevant directories do not exist in `node_modules`, we fail the Hugo build and print an error that says "Run `make ensure`".
2019-07-17 22:39:09 -07:00