Skip to content

Commit

Permalink
added 404 page and no-indexed in robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
ololiuhqui committed May 20, 2024
1 parent 9731077 commit a84a36c
Show file tree
Hide file tree
Showing 22 changed files with 1,014 additions and 7 deletions.
4 changes: 4 additions & 0 deletions assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ html {
scroll-padding-top: 100px;
}

main {
min-height: 50vh;
}

/* ICONS */
.bi {
font-size: 1.25rem;
Expand Down
4 changes: 3 additions & 1 deletion config/_default/languages/.en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ the following areas:"""
mail2 = "[email protected]"
phone = "+39 3801783513"


[params.notfound]
title = "404, page not found" # text for 404 page

[menus]
# If you add a new language remember to change the pageRef to match the desired content folder!
[[menus.main]]
Expand Down
4 changes: 3 additions & 1 deletion config/_default/languages/.it.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ seguenti aree:"""
mail = "[email protected]"
mail2 = "[email protected]"
phone = "+39 3801783513"


[params.notfound]
title = "404, pagina non trovata" # text for 404 page

[menus]
# If you add a new language remember to change the pageRef to match the desired content folder!
Expand Down
3 changes: 3 additions & 0 deletions config/_default/languages/.sq.toml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ Seancat tona do të zgjasin 60 minuta personalisht ose online. Së bashku do mun
mail = "[email protected]"
mail2 = "[email protected]"
phone = "+39 3801783513"

[params.notfound]
title = "404, page not found" # text for 404 page


[menus]
Expand Down
6 changes: 6 additions & 0 deletions content/en/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Page not found |
type: 'pages'
layout: '404'
permalink: /404.html
---
6 changes: 6 additions & 0 deletions content/it/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Pagina non trovata |
type: 'pages'
layout: '404'
permalink: /404.html
---
6 changes: 6 additions & 0 deletions content/sq/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Faqja nuk u gjet |
type: 'pages'
layout: '404'
permalink: /404.html
---
1 change: 0 additions & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
{{- partial "head.html" . -}}
<body class="background-image">
{{- partial "header.html" . -}}

<div id="content">
<main class="py-5 px-5 container">{{- block "main" .}} {{- end }}</main>
</div>
Expand Down
8 changes: 8 additions & 0 deletions layouts/pages/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{{define "main"}}

<div class="d-flex flex-column align-items-center py-5 my-5">
<h1 class="text-center display-3">{{.Site.Params.notfound.title}}</h1>
<a type="button" class="btn btn-primary mt-5 btn-lg" href="{{absLangURL ""}}">Home</a>
</div>

{{end}}
4 changes: 3 additions & 1 deletion layouts/robots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
User-agent: *
Disallow:
{{ range .Site.Languages }}
Disallow: /{{ . }}/404
{{end}}
Sitemap: https://ervakambo.com/sitemap.xml
2 changes: 1 addition & 1 deletion public/css/styles.min.css

Large diffs are not rendered by default.

295 changes: 295 additions & 0 deletions public/en/404/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,295 @@
<!DOCTYPE html>
<html><head>
<title>Page not found | Erva Kambo Psychologist</title>
<meta charset="utf-8" />
<meta name="description" content="" />
<meta name="dc.relation" content="https://ervakambo.com" />
<meta name="robots" content="index,follow" />


<meta itemprop="name" content="Erva Kambo - Psicologa" />
<meta itemprop="description" content="" />
<meta itemprop="image" content="https://ervakambo.com/img/profile.jpg" />


<meta property="og:url" content="https://ervakambo.com" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Erva Kambo - Psicologa" />
<meta property="og:description" content="" />
<meta property="og:image" content="https://ervakambo.com/img/profile.jpg" />


<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Erva Kambo - Psicologa" />
<meta name="twitter:description" content="" />
<meta name="twitter:image" content="https://ervakambo.com/img/profile.jpg" />

<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="theme-color" content="#1A94D2" />


<link rel="stylesheet" href="/css/styles.min.css" media="screen" />


<link rel="shortcut icon" type="image/x-icon" href="https://ervakambo.com/img/favicon.ico" />
</head>
<body class="background-image">
<header class="shadow-sm sticky-top">
<nav class="navbar navbar-expand-lg navbar-light py-3">
<div class="container px-5">
<a class="navbar-brand" href="https://ervakambo.com/en/"
>
<span class="fw-bolder"
>Erva Kambo <br />
<span class="fw-light text-muted"
>Psychologist</span
></span
>
</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul
class="navbar-nav align-items-center ms-auto mb-2 mb-lg-0 fw-bolder"
>
<li class="nav-item">
<a class="nav-link" href="/en/">Home</a>
</li>

<li class="nav-item">
<a class="nav-link" href="/en/services/">Services</a>
</li>

<li class="nav-item">
<a class="nav-link" href="/en/office/">The Office</a>
</li>

<li class="nav-item">
<a class="nav-link" href="/en/contacts/">Contacts</a>
</li>

<li class="vr ms-1 d-none d-lg-block"></li>

<li class="mt-2 m-lg-0 nav-item">
<div
class="d-flex flex-row justify-content-center align-items-center"
>




<a
class="d-flex align-items-center"
href="https://ervakambo.comen/ "
>
<img
src="https://ervakambo.com/img/flags/en.svg"
class="language-flag shadow-sm"
alt=""
/>




<a
class="d-flex align-items-center"
href="https://ervakambo.comit/ "
>
<img
src="https://ervakambo.com/img/flags/it.svg"
class="language-flag shadow-sm"
alt=""
/>




<a
class="d-flex align-items-center"
href="https://ervakambo.comsq/ "
>
<img
src="https://ervakambo.com/img/flags/sq.svg"
class="language-flag shadow-sm"
alt=""
/>

</a>
</div>
</li>

</ul>
</div>
</div>
</nav>
</header>
<div id="content">
<main class="py-5 px-5 container">

<div class="d-flex flex-column align-items-center py-5 my-5">
<h1 class="text-center display-3">404, page not found</h1>
<a type="button" class="btn btn-primary mt-5 btn-lg" href="https://ervakambo.com/en/">Home</a>
</div>

</main>
</div><footer class="footer">

<section class="text-light bg-dark first-section">
<div
class="container d-flex flex-row justify-content-center justify-content-md-between align-items-center py-4 px-5"
>


<div class="d-none d-md-block">
<span>Get connected with me on social networks &gt;</span>
</div>

<div class="d-flex">

<a href="https://www.instagram.com/ervakambo/" class="mx-2">
<i class="bi bi-instagram text-light"></i>
</a>

<a href="https://www.linkedin.com/in/ervakambo/" class="mx-2">
<i class="bi bi-linkedin text-light"></i>
</a>

<a href="https://wa.me/393801783513" class="mx-2">
<i class="bi bi-whatsapp text-light"></i>
</a>

</div>

</div>

</section>



<section class="">
<div class="container text-md-start mt-5 px-5">

<div class="row mt-3">

<div class="col-md-6 col-lg-6 col-xl-4 text-center text-md-start mb-4">

<h6 class="text-uppercase fw-bold">
Navigate
</h6>
<hr class="mb-4 mt-0 d-inline-block" />
<p>
<a href="/en/" class="text-muted text-uppercase">Home</a>
</p>

<p>
<a href="/en/services/" class="text-muted text-uppercase">Services</a>
</p>

<p>
<a href="/en/office/" class="text-muted text-uppercase">The Office</a>
</p>

<p>
<a href="/en/contacts/" class="text-muted text-uppercase">Contacts</a>
</p>

</div>

<div class="d-none d-xl-block col-xl-4 text-center mb-3">
<h3>Erva Kambo</h3>
<p class="mb-2">Psychologist</p>
<div class="fw-light mb-2">
Via della Robbia 23 50132, Firenze <br />
VAT No. 07339790482 <br />
Tuscany Order of Psychologists No. 10278
</div>


</div>


<div
class="col-md-6 col-lg-6 col-xl-4 mb-4 text-center text-md-start text-xl-end"
>

<h6 class="text-uppercase fw-bold">
Contact
</h6>
<hr class="mb-4 mt-0 d-inline-block" />

<p class="d-xl-none">
<i class="bi bi-building mx-2 d-xl-none"></i>
<span class="text-muted"
>Via della Robbia 23 50132, Firenze</span
>
<i class="bi bi-building mx-2 d-none d-xl-inline"></i>
</p>

<p>
<i class="bi bi-envelope mx-2 d-xl-none"></i>
<a
class="text-muted"
href="mailto:[email protected]"
>[email protected]</a
>
<i class="bi bi-envelope mx-2 d-none d-xl-inline"></i>
</p>

<p>
<i class="bi bi-envelope mx-2 d-xl-none"></i>
<a
class="text-muted"
href="mailto:[email protected]"
>[email protected]</a
>
<i class="bi bi-envelope mx-2 d-none d-xl-inline"></i>
</p>

<p>
<i class="bi bi-telephone mx-2 d-xl-none"></i>
<a
class="text-muted"
href="callto:&#43;39%203801783513"
>&#43;39 3801783513</a
>
<i class="bi bi-telephone mx-2 d-none d-xl-inline"></i>
</p>


</div>


</div>

</div>
</section>



<div class="copyright text-light py-2 text-center">
<p class="my-1 fs-6 text-muted">© 2024 all rights reserved - Designed by Ludovico Caluori 🎨</p>
</div>






<script type="module" src="https://ervakambo.com/js/detectLanguage.js"></script>

<script src="/js/bundle.min.js" defer></script>
</footer>
</body>
</html>
Loading

0 comments on commit a84a36c

Please sign in to comment.