Skip to content

Commit 6ebd258

Browse files
committed
reverting some changes from before.
1 parent 7b193f4 commit 6ebd258

File tree

8 files changed

+9
-26
lines changed

8 files changed

+9
-26
lines changed

src/components/Recipe.vue

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,8 @@ export default {
178178
},
179179
},
180180
head() {
181-
const metaTitle = this.drink.metaTitle || this.drink.name || 'Open Drinks';
182-
const metaDescription =
183-
this.drink.metaDescription || this.drink.description || 'Open Source Drink Recipes';
181+
const pageTitle = this.drink.name ? `Open Drinks - ${this.drink.name}` : 'Open Drinks';
182+
const metaDescription = this.drink.description || 'Open Source Drink Recipes';
184183
const formatIngredient = ing => {
185184
if (!ing) return '';
186185
const quantity = ing.quantity ? String(ing.quantity).trim() : '';
@@ -211,14 +210,13 @@ export default {
211210
const imageUrl = this.drink.img ? `https://opendrinks.io${this.drink.img}` : undefined;
212211
const url = `https://opendrinks.io${window.location.pathname}`;
213212
return {
214-
title: metaTitle,
215-
titleTemplate: '%s | Open Drinks',
213+
title: pageTitle,
216214
link: [{ rel: 'canonical', href: url }],
217215
meta: [
218216
// Basic SEO
219217
{ name: 'description', content: metaDescription },
220218
// Open Graph
221-
{ property: 'og:title', content: metaTitle },
219+
{ property: 'og:title', content: pageTitle },
222220
{ property: 'og:type', content: 'article' },
223221
{ property: 'og:url', content: url },
224222
{ property: 'og:site_name', content: 'Open Drinks' },
@@ -227,17 +225,17 @@ export default {
227225
...(imageUrl
228226
? [
229227
{ property: 'og:image', content: imageUrl },
230-
{ property: 'og:image:alt', content: metaTitle },
228+
{ property: 'og:image:alt', content: this.drink.name },
231229
]
232230
: []),
233231
// Twitter / X
234232
{ name: 'twitter:card', content: 'summary_large_image' },
235-
{ name: 'twitter:title', content: metaTitle },
233+
{ name: 'twitter:title', content: pageTitle },
236234
{ name: 'twitter:description', content: metaDescription },
237235
...(imageUrl
238236
? [
239237
{ name: 'twitter:image', content: imageUrl },
240-
{ name: 'twitter:image:alt', content: metaTitle },
238+
{ name: 'twitter:image:alt', content: this.drink.name },
241239
]
242240
: []),
243241
],

src/recipes/amf.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"name": "Adios Motherfucker (AMF)",
33
"description": "You say goodbye, we say hello, and also, Adios Motherfucker!",
4-
"metaTitle": "AMF Drink Recipe (Adios Motherf*** Cocktail) – Vodka, Rum, Gin & Blue Curaçao",
5-
"metaDescription": "Make the AMF cocktail (Adios Motherf***) with vodka, rum, gin, tequila, blue curaçao, sweet & sour mix, and lemon-lime soda. Full ingredients and steps.",
64
"github": "dfarley1",
75
"ingredients": [
86
{

src/recipes/argentinian-mate.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"name": "Argentinian Mate",
33
"description": "Mate is an extremely popular beverage in Argentina. Made from a bitter herb, called yerba mate, the drink has an extensive history and a wealth of rituals and customs surrounding its consumption. Most foreigners find mate bitter, perhaps even unsavory, but Argentines adore it.",
4-
"metaTitle": "Argentinian Mate Guide (How to Prepare Yerba Mate Traditionally)",
5-
"metaDescription": "How to prepare traditional Argentinian mate with yerba mate and hot water (~80°C). Step-by-step preparation and tips for using a bombilla and gourd.",
64
"github": "guido97",
75
"ingredients": [
86
{
@@ -38,4 +36,3 @@
3836
"Friendly"
3937
]
4038
}
41-

src/recipes/barraquito.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"name": "Barraquito",
33
"description": "A multi-layered coffee drink.",
4-
"metaTitle": "Barraquito Coffee Recipe (Spanish Layered Coffee Drink)",
5-
"metaDescription": "Learn how to make a barraquito with condensed milk, espresso, Licor 43, and frothed milk. Classic layered Spanish coffee drink with cinnamon (optional lemon peel).",
64
"github": "RichardVerbraak",
75
"ingredients": [
86
{

src/recipes/irish-car-bomb.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"name": "Irish Car Bomb",
33
"description": "An Irish Car Bomb, Irish Slammer, Irish Bomb Shot, or Dublin Drop is a cocktail made by dropping a bomb shot of Irish cream and whiskey into a glass of stout.",
4-
"metaTitle": "Irish Car Bomb Drink Recipe – Guinness, Baileys & Irish Whiskey Shot",
5-
"metaDescription": "How to make an Irish Car Bomb with Guinness stout, Baileys Irish Cream, and Irish whiskey. Ingredients, measurements, and quick serving tips.",
64
"github": "Linh0704",
75
"ingredients": [
86
{
@@ -32,4 +30,4 @@
3230
"alcoholic",
3331
"cream"
3432
]
35-
}
33+
}

src/recipes/masala-chai.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"name": "Masala Chai",
33
"description": "Masala chai is a flavoured tea beverage made by brewing black tea with a mixture of aromatic spices and herbs.",
4-
"metaTitle": "Masala Chai Recipe (Authentic Indian Spiced Tea) – Traditional Stovetop Method",
5-
"metaDescription": "Learn how to make authentic masala chai with black tea, milk, ginger, cardamom, cinnamon, and cloves. Traditional stovetop method, sweetened to taste.",
64
"github": "sounak98",
75
"ingredients": [
86
{

src/recipes/peach-bellini.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"name": "Peach Bellini",
33
"description": "Frozen, refreshing peach bellini made popular by the Joey restaurants! (Not the same but we try to get there).",
4-
"metaTitle": "Peach Bellini Recipe (Frozen Peaches, Peach Vodka & Prosecco) – Easy Cocktail",
5-
"metaDescription": "Blend frozen peaches with peach vodka or schnapps and ice, then top each glass with prosecco (or red wine). A refreshing peach bellini-style cocktail.",
64
"github": "brucremo",
75
"ingredients": [
86
{

src/recipes/warm-water.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"name": "Warm Water",
33
"description": "Everyone's favorite drink, not too hot, not too cold: just right.",
4-
"metaTitle": "Warm Water Recipe (How to Make Warm Water)",
5-
"metaDescription": "How to make warm water: heat water to your preferred temperature (about 90–100°C if boiling), pour into a cup, and serve. Simple step-by-step guide.",
64
"github": "KevinLu",
75
"ingredients": [
86
{
@@ -30,4 +28,4 @@
3028
"easy",
3129
"non-alcoholic"
3230
]
33-
}
31+
}

0 commit comments

Comments
 (0)