Skip to content

Conversation

zachserviss
Copy link

@zachserviss zachserviss commented Mar 10, 2022

Description of the change

Removing duplicate issues (RS17/27) and redirecting traffic to RS20

Types of changes

  • Documentation content
  • [ x] Page Layout / templates / structure
  • [x ] Internal / code cleanup / build system

@DerekSiemens
Copy link
Contributor

DerekSiemens commented Mar 30, 2022

This PR is branched off of #155. It should not include changes from the other PR, if it relies on those changes then maybe the two PR's should be merged together

*/
export type Entry = {
title: string;
robots?: string;
Copy link
Contributor

@DerekSiemens DerekSiemens Oct 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we can change the usage of just the plain robots in the docs within the code so we don't need two types

}

let ogImageURL:string;
if(props?.fields?.ogFeaturedImage != null && Object.keys(props?.fields?.ogFeaturedImage).length > 0){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There must be a cleaner way to do this

@netlify
Copy link

netlify bot commented Oct 20, 2022

Deploy Preview for saasquatch-docs ready!

Name Link
🔨 Latest commit 1ef18ef
🔍 Latest deploy log https://app.netlify.com/sites/saasquatch-docs/deploys/63ab87e8db20ee000ad2b93f
😎 Deploy Preview https://deploy-preview-156--saasquatch-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

<meta property="og:image" content={ogImageURL || ogImage} />
<meta name="twitter:image" content={ogImageURL || ogImage} />

<meta name="robots" content={props.fields?.robotsTag || props?.robots} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noting that the contentful default here is "FOLLOW", lets make sure that is handled appropriately

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also need to make sure this is handled well for the content within the code that does not have any robots information

import marked from "marked";

// import ogImage from "../assets/images/opengraph-center-crop-helpcenter.png";
const ogImage = require("../assets/images/opengraph-center-crop-helpcenter.png");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets fix this before sending it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants