Skip to content

Commit

Permalink
feat: add open graph image
Browse files Browse the repository at this point in the history
  • Loading branch information
Phosphorus-M committed Feb 7, 2024
1 parent 3cc4876 commit 6faa65b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion book.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[book]
title = "El Lenguaje de Programación Rust"
authors = ["Steve Klabnik", "Carol Nichols", "Contributions from the Rust Community"]
description = "El libro oficial para aprender el lenguaje de programación Rust, con tutoriales y guias"
description = "El libro oficial para aprender el lenguaje de programación Rust, con tutoriales y guías."
language = "es"

[output.html]
Expand Down
Binary file added src/img/open-graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions theme/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#ffffff" />

<meta property="og:url" content="https://rustlanges.github.io">
<meta property="og:type" content="book">
<meta property="og:title" content="{{ title }}">
<meta property="og:description" content="{{ description }}">
<meta property="og:image" content="https://rustlanges.github.io/rust-book-es/img/open-graph.png">

{{#if favicon_svg}}
<link rel="icon" href="{{ path_to_root }}favicon.svg">
{{/if}}
Expand Down

0 comments on commit 6faa65b

Please sign in to comment.