Skip to content

Commit

Permalink
➡️ Merge pull request #56 from leszekkrol/feature/seo
Browse files Browse the repository at this point in the history
🚀 Added SEO improvements to the website!
  • Loading branch information
Leszek W. Król committed Jun 6, 2023
2 parents 4ab2706 + 9b52da5 commit c16c40f
Show file tree
Hide file tree
Showing 20 changed files with 1,616 additions and 1,086 deletions.
2 changes: 1 addition & 1 deletion .github/assets/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion .github/assets/twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@

version: 2
updates:
- package-ecosystem: "npm"

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"

# Maintain dependencies for npm
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@ jobs:

steps:
- name: 🚚 Get latest code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: 🛠 Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: 🔨 Build Project
run: |
npm install
npm ci
npm run build
npm run generate
- name: 📂 Sync files
uses: SamKirkland/[email protected].3
uses: SamKirkland/[email protected].4
with:
dangerous-clean-slate: true
server: ${{ secrets.ftp_host }}
username: ${{ secrets.ftp_username }}
password: ${{ secrets.ftp_password }}
local-dir: ./.output/public/
server-dir: ./public_html/
server-dir: ./public_html/
8 changes: 3 additions & 5 deletions app.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<template>
<div>
<NuxtLayout>
<NuxtPage/>
</NuxtLayout>
</div>
<NuxtLayout>
<NuxtPage/>
</NuxtLayout>
</template>
File renamed without changes
File renamed without changes
14 changes: 12 additions & 2 deletions components/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,24 @@
href="https://www.carbonneutral.com"
:title="$t('section.footer.carbon-neutral')"
data-splitbee-event="Carbon Neutral"
class="underline"><img src="~/assets/carbon-neutral.svg" class="h-8 sm:h-10 md:h-12" /></a>
class="underline">
<img
src="~/assets/svg/carbon-neutral.svg"
:alt="$t('section.footer.carbon-neutral')"
class="h-8 sm:h-10 md:h-12" />
</a>
</li>
<li>
<a
href="https://github.com/leszekkrol/skutecznyplan.pl/"
:title="$t('section.footer.open-source')"
data-splitbee-event="Open Source"
class="underline"><img src="~/assets/open-source.svg" class="h-8 sm:h-10 md:h-10" /></a>
class="underline">
<img
src="~/assets/svg/open-source.svg"
:alt="$t('section.footer.open-source')"
class="h-8 sm:h-10 md:h-10" />
</a>
</li>
</ul>
<span class="text-sm text-gray-500 sm:text-center">&copy; 2021-2023 <a href="https://www.leszekkrol.com" :title="$t('section.footer.webpage')" class="hover:underline">Leszek W. Król</a>. {{ $t('section.footer.all-rights-reserved') }}</span>
Expand Down
2 changes: 1 addition & 1 deletion components/Quotes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<path d="M25.086 77.292c-4.821 0-9.115-1.205-12.882-3.616-3.767-2.561-6.78-6.102-9.04-10.622C1.054 58.534 0 53.411 0 47.686c0-5.273.904-10.396 2.712-15.368 1.959-4.972 4.746-9.567 8.362-13.786a59.042 59.042 0 0 1 12.43-11.3C28.325 3.917 33.599 1.507 39.324 0l11.074 13.786c-6.479 2.561-11.677 5.951-15.594 10.17-3.767 4.219-5.65 7.835-5.65 10.848 0 1.356.377 2.863 1.13 4.52.904 1.507 2.637 3.089 5.198 4.746 3.767 2.41 6.328 4.972 7.684 7.684 1.507 2.561 2.26 5.5 2.26 8.814 0 5.123-1.959 9.19-5.876 12.204-3.767 3.013-8.588 4.52-14.464 4.52Zm54.24 0c-4.821 0-9.115-1.205-12.882-3.616-3.767-2.561-6.78-6.102-9.04-10.622-2.11-4.52-3.164-9.643-3.164-15.368 0-5.273.904-10.396 2.712-15.368 1.959-4.972 4.746-9.567 8.362-13.786a59.042 59.042 0 0 1 12.43-11.3C82.565 3.917 87.839 1.507 93.564 0l11.074 13.786c-6.479 2.561-11.677 5.951-15.594 10.17-3.767 4.219-5.65 7.835-5.65 10.848 0 1.356.377 2.863 1.13 4.52.904 1.507 2.637 3.089 5.198 4.746 3.767 2.41 6.328 4.972 7.684 7.684 1.507 2.561 2.26 5.5 2.26 8.814 0 5.123-1.959 9.19-5.876 12.204-3.767 3.013-8.588 4.52-14.464 4.52Z"></path>
</svg>
<blockquote class="relative">
<p class="text-lg tracking-tight text-gray-300">{{ $t(item.key) }}</p>
<p class="text-lg tracking-tight text-gray-300">{{ item.key }}</p>
</blockquote>
<figcaption class="relative mt-6 flex items-center justify-between border-t border-slate-100 pt-6">
<div>
Expand Down
154 changes: 143 additions & 11 deletions layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,144 @@
<template>
<main id="app" class="bg-gray-900 v-lines agus">
<Navigation />
<Header
tag="podcast"
:title="$t('section.header.title')"
:description="$t('section.header.description')"
url="https://anchor.fm/skuteczny-plan-podcast" />
<slot />
<Footer />
</main>
</template>
<Html :lang="head.htmlAttrs.lang" :dir="head.htmlAttrs.dir">
<Head>
<Title>{{ title }}</Title>
<template v-for="link in head.link" :key="link.id">
<Link :id="link.id" :rel="link.rel" :href="link.href" :hreflang="link.hreflang" />
</template>
<template v-for="meta in head.meta" :key="meta.id">
<Meta :id="meta.id" :property="meta.property" :content="meta.content" />
</template>
</Head>
<Body>
<main id="app" class="bg-gray-900 v-lines agus">
<Navigation />
<Header
tag="podcast"
:title="$t('section.header.title')"
:description="$t('section.header.description')"
url="https://anchor.fm/skuteczny-plan-podcast" />
<slot />
<Footer />
</main>
</Body>
</Html>
</template>

<script setup>
const { t } = useI18n()
const head = useLocaleHead({
addDirAttribute: true,
identifierAttribute: 'id',
addSeoAttributes: true
})
const title = computed(() => t('meta.title'))
useHead({
meta: [
{ charset: "utf-8" },
{ 'http-equiv': 'Content-type', content: 'text/html;charset=UTF-8' },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ name: "author", content: "Leszek W. Król" },
{
hid: "title",
name: "title",
content: t('meta.title'),
},
{
hid: "description",
name: "description",
content: t('meta.description'),
},
{
hid: 'og:site_name',
property: 'og:site_name',
content: t('meta.site_name'),
},
{
hid: 'og:locale',
property: 'og:locale',
content: 'pl_PL',
},
{
hid: 'og:type',
property: 'og:type',
content: 'website',
},
{
hid: 'og:title',
property: 'og:title',
content: t('meta.title'),
},
{
hid: 'og:description',
property: 'og:description',
content: t('meta.description'),
},
{
hid: 'og:url',
property: 'og:url',
content: 'https://www.skutecznyplan.pl',
},
{
hid: 'og:image',
property: 'og:image',
content: 'http://www.skutecznyplan.pl/img/skuteczny-plan-og.png',
},
{
hid: 'og:image:secure_url',
property: 'og:image:secure_url',
content: 'http://www.skutecznyplan.pl/img/skuteczny-plan-og.png',
},
{
hid: 'og:image:type',
property: 'og:image:type',
content: 'image/png',
},
{
hid: 'og:image:alt',
property: 'og:image:alt',
content: t('meta.image_alt'),
},
{
hid: 'twitter:card',
name: 'twitter:card',
content: 'summary_large_image',
},
{
hid: 'twitter:url',
name: 'twitter:url',
content: 'https://www.skutecznyplan.pl',
},
{
hid: 'twitter:image',
name: 'twitter:image',
content: 'http://www.skutecznyplan.pl/img/skuteczny-plan-twitter.png',
},
{
hid: 'twitter:domain',
name: 'twitter:domain',
content: 'skutecznyplan.pl',
},
{
hid: 'twitter:title',
name: 'twitter:title',
content: t('meta.title'),
},
{
hid: 'twitter:description',
name: 'twitter:description',
content: t('meta.description'),
},
{
hid: 'twitter:site',
name: 'twitter:site',
content: '@leszekkrol',
},
{
hid: 'twitter:creator',
name: 'twitter:creator',
content: '@leszekkrol',
},
],
})
</script>
6 changes: 6 additions & 0 deletions locales/pl-PL.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"meta": {
"title": "Skuteczny Plan - Rozwiń praktyczne umiejętności zarządzania",
"description": "Zwiększ swoją produktywność podczas codziennej pracy siegając po dostępną, praktyczną i unikalną wiedzę. Skuteczny plan to podcast prowadzony przez Leszek W. Król.",
"site_name": "Skuteczny Plan",
"image_alt": "Skuteczny Plan to rozmowy o aktualnych wyzwaniach dla firm, produktywnej pracy, nowych technologiach, czy grywalizacji. Zwiększ swoją produktywność podczas codziennej pracy siegając po dostępną, praktyczną i unikalną wiedzę, która pomoże Tobie odmienić sposób w jaki pracujesz każdego dnia."
},
"common": {
"error-404": "Bład 404",
"not-found": "Strona nie została znaleziona",
Expand Down
Loading

0 comments on commit c16c40f

Please sign in to comment.