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

Update prod #65

Merged
merged 6 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/grid-info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="block">
<div class="grid__block">
<h2 class="title">Open Source</h2>
<div class="text">Исходный код открыт<br/>для исследования и обслуживания</div>
<div class="text">Исходный код открыт<br/>для исследования и обсуждения</div>
</div>
<div class="grid__block">
<div class="title">100 000 000</div>
Expand Down
6 changes: 6 additions & 0 deletions middleware/trailingSlashRedirect.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default function ({ route, redirect }) {
if (route.path !== '/' && route.path.endsWith('/')) {
const withoutTrailingSlash = route.path.slice(0, -1)
redirect(301, withoutTrailingSlash)
}
}
17 changes: 12 additions & 5 deletions nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
export default {
router: {
/**
* This will not allow to visit route with trailing slash
* (else redirect will be treated as navigation to the current page and error will be raised)
*/
trailingSlash: false,

/**
* This middleware will redirect user if he tries to visit route with trailing slash
*/
middleware: 'trailingSlashRedirect',
},
// Target (https://go.nuxtjs.dev/config-target)
target: 'static',

Expand All @@ -24,11 +36,6 @@ export default {
name: 'theme-color',
content: '#242732',
},
{
name: 'robots',
content: 'noindex,nofollow',
},

],
link: [
{
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"postcss-custom-media": "^7.0.8",
"postcss-loader": "^3.0.0",
"postcss-nested": "^4.2.3",
"postcss-nested-ancestors": "^2.0.0"
"postcss-nested-ancestors": "^2.0.0",
"vue-meta": "^2.4.0"
}
}
73 changes: 72 additions & 1 deletion pages/ru.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ import UsedByTable, {UsedByItem} from '~/components/used-by-table.vue';
import UiButton from '~/components/ui-button.vue';
import Contact from '~/components/contact.vue';
import gridInfo from '~/components/grid-info.vue';
import { MetaInfo } from 'vue-meta';

export default Vue.extend({
components: {
Expand Down Expand Up @@ -315,7 +316,7 @@ export default Vue.extend({
}
},
},
head() {
head(): MetaInfo {
return {
title: "Хоук — российский трекер ошибок",
meta: [
Expand Down Expand Up @@ -374,6 +375,76 @@ export default Vue.extend({
name: 'twitter:url',
content: 'https://hawk.so/ru'
},
],
script: [
{
// JSON-LD schema.org markup for WebPage
type: 'application/ld+json',
json: {
"@context": "https://schema.org",
"@type": "WebPage",
"name": "Хоук — российский трекер ошибок",
"description": "Мониторинг ошибок в ПО с серверами в России и открытым исходным кодом",
"image": "https://hawk.so/hawk-ru-og-image.png",
"url": "https://hawk.so/ru",
"publisher": {
"@type": "Organization",
"name": "Хоук",
"logo": {
"@type": "ImageObject",
"url": "https://hawk.so/hawk-ru-og-image.png"
}
},
"creator": {
"@type": "Organization",
"name": "CodeX",
"description": "Команда open-source разработчиков",
"url": "https://codex.so",
"logo": {
"@type": "ImageObject",
"url": "https://codex.so/public/app/img/codex-logo.svg"
},
"sameAs": [
"http://twitter.com/codex_team"
]
}
},
},
{
// JSON-LD schema.org markup for Product
type: 'application/ld+json',
json: {
"@context": "https://schema.org",
"@type": "Product",
"name": "Хоук — российский трекер ошибок",
"description": "Мониторинг ошибок в ПО с серверами в России и открытым исходным кодом",
"image": "https://hawk.so/hawk-ru-og-image.png",
"brand": {
"@type": "Brand",
"name": "Хоук"
},
"offers": {
"@type": "Offer",
"url": "https://hawk.so/ru",
"priceCurrency": "RUB",
"price": "0", // Adjust this value to the actual price
"availability": "https://schema.org/InStock"
},
"creator": {
"@type": "Organization",
"name": "CodeX",
"description": "Команда open-source разработчиков",
"url": "https://codex.so",
"logo": {
"@type": "ImageObject",
"url": "https://codex.so/public/app/img/codex-logo.svg"
},
"sameAs": [
"http://twitter.com/codex_team"
]
}
}
}
]
}
}
Expand Down
2 changes: 0 additions & 2 deletions static/robots.txt

This file was deleted.

Loading
Loading