Skip to content
Open
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
9 changes: 3 additions & 6 deletions config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@ shortname = "cmpsoares-com"
disableLanguages = [] # example: ["fr"] for disable french language

############################# Outputs ##############################
enableRobotsTXT = true

[sitemap]
changefreq = 'weekly'
filename = 'sitemap.xml'
priority = 0.5
# Brand sunset: serve static/robots.txt (Disallow: /) and do not generate a sitemap.
enableRobotsTXT = false
disableKinds = ["sitemap"]

[author]
name = 'C.M.P.Soares, Lda.'
Expand Down
21 changes: 10 additions & 11 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ whatsapp_label = "+351 217 960 588"
email = "contact@cmpsoares.com"
# disqus (used by blog comment templates)
disqusShortname = "cmpsoares-com"
# contact form action
contact_form_action = "https://formspree.io/f/mrgrnyzq" # contact form works with https://formspree.io
# contact form action — retired with the CMPSOARES sunset (do not re-enable)
contact_form_action = ""
# Google Analitycs
google_analitycs_id = "UA-216173935-1"
# main sections
Expand All @@ -38,17 +38,16 @@ enable = true
label = "Contact Us"
link = "/contact"

# Contact
# Contact — retired with the CMPSOARES sunset (no Netlify / Formspree forms)
[contact_form]
enable = true
netlify_forms_integration = true
enable = false
netlify_forms_integration = false

# Subscription
# Subscription — retired with the CMPSOARES sunset (no Mailchimp form)
[subscription]
enable = true
# mailchimp subsciption
mailchimp_form_action = "https://cmpsoares.us4.list-manage.com/subscribe/post?u=a37f9f4e15985d7754bad97ba&id=284d8c24ca" # replace this url with yours
mailchimp_form_name = "b_a37f9f4e15985d7754bad97ba_284d8c24ca" # replace this code with yours
enable = false
mailchimp_form_action = ""
mailchimp_form_name = ""

# Google Services
# Google Adsense
Expand Down Expand Up @@ -83,7 +82,7 @@ content = "This site uses cookies. By continuing to use this website, you agree
button = "I Accept"

[tidio_chatbot]
enable = true
enable = false
id = "7ddfxeybyiti3uffdq8ewy4onogssfzd"

[termly]
Expand Down
41 changes: 1 addition & 40 deletions layouts/_default/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,46 +62,7 @@ <h6 class="text-dark">Address</h6>
</div>
</section>

{{ if site.Params.contact_form.enable }}
<section class="section section-lg-bottom bg-light">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<p class="subtitle">{{ i18n "form_subtitle" }}</p>
<h2 class="section-title">{{ i18n "form_title" }}</h2>
</div>
<div class="col-lg-12 text-center p-0">
{{ if site.Params.contact_form.netlify_forms_integration }}
<form name="contact" method="POST" data-netlify="true" netlify-honeypot="bot-field" class="row">
{{ else }}
<form action="{{ site.Params.contact_form_action }}" method="post" class="row">
{{ end }}
<p hidden>
<label>
Don’t fill this out if you’re human: <input name="bot-field" />
</label>
</p>
<div class="col-lg-6">
<input type="email" name="email" class="form-control mb-4" placeholder="Your email">
</div>
<div class="col-lg-6">
<input type="text" name="name" class="form-control mb-4" placeholder="Your Name">
</div>
<div class="col-lg-12">
<input type="text" name="subject" class="form-control mb-4" placeholder="Subject">
</div>
<div class="col-lg-12">
<textarea name="message" class="form-control mb-4" placeholder="Message"></textarea>
</div>
<div class="col-12">
<button type="submit" class="btn btn-primary">{{ i18n "submit_now"}}</button>
</div>
</form>
</div>
</div>
</div>
</section>
{{ end }}
{{/* Contact / Netlify / Formspree forms removed — CMPSOARES sunset. */}}

{{ if site.Params.gmap.enable }}
{{ if site.Params.gmap.enable_gmap_api }}
Expand Down
1 change: 1 addition & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<title>TEKSOMA Technology & Consultancy</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="CMPSOARES is now TEKSOMA Technology & Consultancy.">
<meta name="robots" content="noindex, follow">
<link rel="shortcut icon" href="{{ site.Params.favicon | relURL }}" type="image/x-icon">
<link rel="canonical" href="https://tech.teksoma.com/">
<meta http-equiv="refresh" content="3;url=https://tech.teksoma.com/">
Expand Down
1 change: 1 addition & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

<!-- mobile responsive meta -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
<meta name="robots" content="noindex, follow">
<meta name="description" content="{{ .Params.Description | default site.Params.description }}">
{{ with site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
{{ hugo.Generator }}
Expand Down
28 changes: 1 addition & 27 deletions layouts/partials/subscription.html
Original file line number Diff line number Diff line change
@@ -1,27 +1 @@
{{"<!-- subscription -->" | safeHTML }}
{{ if .Site.Params.subscription.enable }}
{{ with .Site.Params.subscription }}
<section class="subscription">
<div class="container">
<div class="subscription-wrapper">
<div class="d-flex position-relative mx-5 justify-content-between align-items-center flex-column flex-md-row text-center text-md-left">
<h3 class="text-white flex-fill">{{ i18n "subscribe_newsletter" | safeHTML }}</h3>
<form action="{{ .mailchimp_form_action }}" method="post"
name="mc-embedded-subscribe-form" target="_blank" novalidate class="row flex-fill">
<div class="col-lg-7 my-md-2 my-2">
<input type="email" class="form-control text-white px-4 border-0 w-100 text-center text-md-left" placeholder="Your Email" name="EMAIL">
</div>
<div class="col-lg-5 my-md-2 my-2">
<button type="submit" name="subscribe" class="btn btn-primary btn-lg border-0 w-100">{{ i18n "subscribe_now" | safeHTML }}</button>
<div style="position: absolute; left: -5000px;" aria-hidden="true">
<input type="text" name="{{ .mailchimp_form_name }}" tabindex="-1">
</div>
</div>
</form>
</div>
</div>
</div>
</section>
{{ end }}
{{ end }}
{{"<!-- /subscription -->" | safeHTML }}
{{"<!-- subscription retired with CMPSOARES sunset — no Mailchimp form -->" | safeHTML }}
62 changes: 0 additions & 62 deletions layouts/robots.txt
Original file line number Diff line number Diff line change
@@ -1,64 +1,2 @@
User-agent: *

Disallow: /images/
Disallow: /js/
Disallow: /css/

User-agent: MJ12bot
Disallow: /

User-agent: AhrefsBot
Disallow: /

User-agent: BLEXBot
Disallow: /

# Block SISTRIX
User-agent: SISTRIX Crawler
Disallow: /
User-agent: sistrix
Disallow: /
User-agent: 007ac9
Disallow: /
User-agent: 007ac9 Crawler
Disallow: /

# Block Uptime robot
User-agent: UptimeRobot/2.0
Disallow: /

# Block Ezooms Robot
User-agent: Ezooms Robot
Disallow: /

# Block Perl LWP
User-agent: Perl LWP
Disallow: /

# Block netEstate NE Crawler (+http://www.website-datenbank.de/)
User-agent: netEstate NE Crawler (+http://www.website-datenbank.de/)
Disallow: /

# Block WiseGuys Robot
User-agent: WiseGuys Robot
Disallow: /

# Block Turnitin Robot
User-agent: Turnitin Robot
Disallow: /

# Block Heritrix
User-agent: Heritrix
Disallow: /

# Block pricepi
User-agent: pimonster
Disallow: /

User-agent: SurdotlyBot
Disallow: /

User-agent: ZoominfoBot
Disallow: /

Sitemap: {{ "sitemap.xml" | absLangURL }}
6 changes: 6 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@
# Skip vendored theme demo content from secrets scanning; those are upstream
# placeholder keys, not real credentials, and the exampleSite isn't built.
SECRETS_SCAN_OMIT_PATHS = "themes/agico-hugo/exampleSite/**"

# After this deploy: delete the registered Netlify form named "contact" in
# Site settings → Forms. Removing the HTML stops detection at build time;
# a leftover registered form can still accept POSTs until it is deleted.
# Request-time block is the forced catch-all 301 in static/_redirects.

6 changes: 6 additions & 0 deletions static/_headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Drop cmpsoares.com from the index. follow lets 301s land on TEKSOMA.
/*
X-Robots-Tag: noindex, follow

/robots.txt
X-Robots-Tag: noindex
32 changes: 31 additions & 1 deletion static/_redirects
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# cmpsoares.com → tech.teksoma.com insights migration (301)
# CMPSOARES brand sunset — 301 the old site to TEKSOMA.
# /robots.txt stays on this host so crawlers see Disallow: / here.
# Forced (!) so redirects win over published HTML (including form pages).

/robots.txt /robots.txt 200!

# Legacy blog posts → tech.teksoma.com insights
/blog/2022-01-25_why-you-should-have-the-habit-to-sign-all-your-git-commits/* https://tech.teksoma.com/insights/sign-git-commits 301!
/blog/2022-01-25-why-you-should-have-the-habit-to-sign-all-your-git-commits/* https://tech.teksoma.com/insights/sign-git-commits 301!

Expand All @@ -16,3 +21,28 @@
/blog/2024-11-14_rca-showdown-sre-vs-itil-itsm/* https://tech.teksoma.com/insights/rca-showdown-sre-vs-itil-itsm 301!

/blog/* https://tech.teksoma.com/insights 301!

# Semantic page map (must sit above the catch-all)
/contact https://tech.teksoma.com/contact 301!
/contact/ https://tech.teksoma.com/contact 301!
/about https://tech.teksoma.com/about 301!
/about/ https://tech.teksoma.com/about 301!
/team https://tech.teksoma.com/about 301!
/team/ https://tech.teksoma.com/about 301!
/service https://tech.teksoma.com/services 301!
/service/ https://tech.teksoma.com/services 301!
/pricing https://tech.teksoma.com/plans 301!
/pricing/ https://tech.teksoma.com/plans 301!
/privacy_policy https://teksoma.com/privacy-policy 301!
/privacy_policy/ https://teksoma.com/privacy-policy 301!
/cookie_policy https://teksoma.com/cookie-policy 301!
/cookie_policy/ https://teksoma.com/cookie-policy 301!
/terms https://teksoma.com/privacy-policy 301!
/terms/ https://teksoma.com/privacy-policy 301!
/career https://tech.teksoma.com/about 301!
/career/* https://tech.teksoma.com/about 301!
/tags/* https://tech.teksoma.com/insights 301!
/categories/* https://tech.teksoma.com/insights 301!

# Everything else, including POST /form-name=contact, goes to the TEKSOMA homepage.
/* https://tech.teksoma.com/ 301!
5 changes: 5 additions & 0 deletions static/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# CMPSOARES is sunset. Do not crawl or index this host.
# Humans and crawlers that ignore robots.txt are 301'd to tech.teksoma.com.

User-agent: *
Disallow: /
Loading