Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add route meta tags description and example (#256) #265

Merged
merged 3 commits into from
Feb 17, 2023

Conversation

TomWebwalker
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Which package are you modifying?

  • vite-angular-plugin
  • astro-angular
  • create-analog
  • router
  • platform
  • content

What is the current behavior?

Issue Number: #256

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@netlify
Copy link

netlify bot commented Feb 15, 2023

Deploy Preview for analog-app ready!

Name Link
🔨 Latest commit a802e8d
🔍 Latest deploy log https://app.netlify.com/sites/analog-app/deploys/63ee9b34e6f0e00008743ffd
😎 Deploy Preview https://deploy-preview-265--analog-app.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.

@netlify
Copy link

netlify bot commented Feb 15, 2023

Deploy Preview for analog-blog ready!

Name Link
🔨 Latest commit a802e8d
🔍 Latest deploy log https://app.netlify.com/sites/analog-blog/deploys/63ee9b341dd60e0008959a13
😎 Deploy Preview https://deploy-preview-265--analog-blog.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.

@netlify
Copy link

netlify bot commented Feb 15, 2023

Deploy Preview for analog-docs ready!

Name Link
🔨 Latest commit a802e8d
🔍 Latest deploy log https://app.netlify.com/sites/analog-docs/deploys/63ee9b340935eb0008b0464c
😎 Deploy Preview https://deploy-preview-265--analog-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.

Copy link
Member

@brandonroberts brandonroberts left a comment

Choose a reason for hiding this comment

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

Thanks! Left some feedback

```

The above example sets meta tag `<meta http-equiv="refresh" content="30">`, which forces the browser to refresh the page every 30 seconds.
To read more about possible meta tags, please visit official [docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta).
Copy link
Member

Choose a reason for hiding this comment

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

Can you also add a section for using meta tags for an Open Graph image?

export const routeMeta: RouteMeta = {
  meta: [
    {
      name: 'description',
      content: 'Description of the page',
    },
    {
      name: 'author',
      content: 'Analog Team',
    },
    {
      property: 'og:title',
      content: 'Title of the page',
    },
    {
      property: 'og:description',
      content: 'Some catchy description',
    },
    {
      property: 'og:image',
      content: 'https://somepage.com/someimage.png',
    },
  ];
};

@brandonroberts brandonroberts merged commit 988cecb into analogjs:main Feb 17, 2023
@brandonroberts
Copy link
Member

Awesome! @allcontributors add @TomWebwalker for doc

@allcontributors
Copy link
Contributor

@brandonroberts

I've put up a pull request to add @TomWebwalker! 🎉

Villanuevand pushed a commit to Villanuevand/analog that referenced this pull request Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants