Skip to content

Commit

Permalink
Change twitter.com to x.com
Browse files Browse the repository at this point in the history
  • Loading branch information
coliff committed May 20, 2024
1 parent cb22558 commit d218b9c
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 58 deletions.
1 change: 0 additions & 1 deletion content/en/content-management/comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,3 @@ Open-source commenting systems:
[issotutorial]: https://stiobhart.net/2017-02-24-isso-comments/
[partials]: /templates/partials/
[MongoDB]: https://www.mongodb.com/
[tweet]: https://twitter.com/spf13
2 changes: 1 addition & 1 deletion content/en/content-management/shortcodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ You may call the `twitter` shortcode by using its `tweet` alias.
To display a Twitter post with this URL:

```txt
https://twitter.com/SanDiegoZoo/status/1453110110599868418
https://x.com/SanDiegoZoo/status/1453110110599868418
```

Include this in your Markdown:
Expand Down
2 changes: 1 addition & 1 deletion content/en/showcase/forestry/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Lastly, we want to take the opportunity to give some love to other amazing tools
### What tools did we use?

* Our Norwegian designer Nichlas is in love with [**Sketch**](https://www.sketchapp.com/). From what we hear it’s a designer’s dream come true.
* Some say our main graphic is [mesmerizing](https://twitter.com/hmncllctv/status/968907474664284160). Nichlas created it using [**3DS Max**](https://www.autodesk.com/products/3ds-max/overview).
* Some say our main graphic is [mesmerizing](https://x.com/hmncllctv/status/968907474664284160). Nichlas created it using [**3DS Max**](https://www.autodesk.com/products/3ds-max/overview).
* [**Hugo**](https://gohugo.io/) -- of course.
* Chris can’t think of modern web development without [**Gulp**](https://gulpjs.com/) & [**Webpack**](https://webpack.js.org/). We used them to add additional build steps such as Browsersync, CSS, JS and SVG optimization.
* Speaking about adding steps to our build, our lives would be much harder without [**CircleCI**](https://circleci.com/) for continuous deployment and automated testing purposes.
Expand Down
8 changes: 4 additions & 4 deletions content/en/templates/embedded.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ To include the embedded template:
{{ template "_internal/schema.html" . }}
```

## Twitter Cards
## X (Twitter) Cards

{{% note %}}
To override Hugo's embedded Twitter Cards template, copy the [source code] to a file with the same name in the layouts/partials directory, then call it from your templates using the [`partial`] function:
Expand All @@ -212,7 +212,7 @@ To override Hugo's embedded Twitter Cards template, copy the [source code] to a
[source code]: {{% eturl twitter_cards %}}
{{% /note %}}

Hugo includes an embedded template for [Twitter Cards](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards),
Hugo includes an embedded template for [X (Twitter) Cards](https://developer.x.com/en/docs/twitter-for-websites/cards/overview/abouts-cards),
metadata used to attach rich media to Tweets linking to your site.

To include the embedded template:
Expand All @@ -221,9 +221,9 @@ To include the embedded template:
{{ template "_internal/twitter_cards.html" . }}
```

### Configure Twitter Cards
### Configure X (Twitter) Cards

Hugo's Twitter Card template is configured using a mix of configuration variables and [front-matter](/content-management/front-matter/) on individual pages.
Hugo's X (Twitter) Card template is configured using a mix of configuration variables and [front-matter](/content-management/front-matter/) on individual pages.

{{< code-toggle file=hugo >}}
[params]
Expand Down

0 comments on commit d218b9c

Please sign in to comment.