Commit bc73fc50 authored by Patrik Trefil's avatar Patrik Trefil 🐢
Browse files

Initial commit

parents
The MIT License (MIT)
Copyright (c) 2020 YOUR_NAME_HERE
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
description: ""
# klicova slova musi byt oddelena carkou a BEZ mezer
pageKeywords: ""
imageOn: false
imagePath: ""
imageAlt: ""
#nazev stranky v ceskem jazyce
translationKey: ""
---
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
weight: 0
draft: true
description: ""
# klicova slova musi byt oddelena carkou a BEZ mezer
pageKeywords: ""
imageOn: false
imagePath: ""
imageAlt: ""
svgOn: true
svgPath: "/.svg"
svgAlt: ""
# casto /pdf/XX.pdf
itemUrl: "{{ .Name }}"
#nazev stranky v ceskem jazyce
translationKey: ""
---
{{ define "main"}}
<h2>Tato stránka neexistuje</h2>
{{ end }}
<!DOCTYPE html>
<html lang="{{ .Language }}">
{{ partial "head.html" . }}
{{if and (isset .Page.Params "webppath") (isset .Page.Params "altpath") }}
<style>
.webp #image-container {
background-image:url('{{ .Page.Params.webpPath }}');
}
.no-webp #image-container {
background-image:url('{{ .Page.Params.altPath }}');
}
</style>
{{end}}
<body>
<div id="page-container">
{{ partial "header.html" . }}
<main>
<!-- Hero Image -->
{{ if eq .Page.Params.imageOn true }}
<div id="image-container">
<h1 class="image-title">{{ .Title }}</h1>
<a
href="{{if eq .Title "O Nás" }}#mapa{{else}}#content{{end}}"
class="scroll"
aria-label="Posun níže"
>
{{ partial "svg/arrow_down.svg" . }}
</a>
</div>
{{ else }}
<h1 class="page-title">{{ .Title }}</h1>
{{ end }}
<!-- /Hero Image -->
<!-- Obsah -->
<div class="content">
{{ block "main" . }}
{{ end }}
</div>
<!-- Mapa O Nas -->
{{ if or (eq .Title "O Nás") (or (eq .Title "About") (eq .Title "Über uns")) }}
<div id="mapa">
<h2>{{ T "mapa" }}</h2>
<!--<a class="scroll" href="#content" aria-label="Posun níže">-->
<!--</a>-->
</div>
{{ end }}
<!-- /Mapa O Nas -->
<!-- /Obsah -->
</main>
{{ partial "footer.html" . }}
</div>
</body>
</html>
{{ define "main" }}
{{ .Content }}
<div class="cards-container">
{{ range .Pages.ByWeight }}
<a class="card-link" href="{{ .Params.itemUrl }}"{{ if (in .Params.itemUrl "pdf") }} target="_blank"{{end}}>
<div class="card">
{{ if .Page.Params.svgOn }}
<div class="svg-container">
<img src="/img/{{ .Param "svgPath" }}" alt="{{ .Param "svgAlt" }}"/>
</div>
{{end}}
<div class="card-title">
{{.Title}}
</div>
</div>
</a>
{{ end }}
</div>
{{ end }}
\ No newline at end of file
{{ define "main" }}
{{ .Content }}
{{ end }}
{{ define "main" }}
<div id="home-icons">
<div>
<img src="/img/homepage/spoluprace_ikona.svg" alt="" />
<span class="captions">{{ T "spoluprace" }}</span>
</div>
<div>
<img src="/img/homepage/lide_ikona.svg" alt="" />
<span class="captions">{{ T "lide" }}</span>
</div>
<div>
<img src="/img/homepage/kvalita_ikona.svg" alt="" />
<span class="captions">{{ T "kvalita" }}</span>
</div>
<div>
<img src="/img/homepage/prostredi_ikona.svg" alt="" />
<span class="captions">{{ T "prostredi" }}</span>
</div>
<div>
<img src="/img/homepage/zlepsovani_ikona.svg" alt="" />
<span class="captions">{{ T "zlepsovani" }}</span>
</div>
</div>
<h2 id="moto">"{{ T "moto" }}"</h2>
{{ .Content }}
{{ end }}
<footer id="footer">
<div id="flags-container">
<nav class="langNav">
{{ range .Translations }}
{{ $jmenoSouboru := lower (delimit (slice .Language.LanguageName ".svg") "") }}
{{ if fileExists (delimit (slice "static/img/lang/" $jmenoSouboru) "") }}
<a href="{{ .Permalink }}" aria-label="{{ .Language.LanguageName }}"><img src="/img/lang/{{ $jmenoSouboru }}" alt="{{ .Language.LanguageName }}"></a>
{{ end}}
{{end}}
</nav>
</div>
<div id="kontakt-footer">
<a class="contact" href="mailto:{{ .Site.Params.email }}">
<img src="/img/kontakt/mail.svg" alt="Email:"/>
{{ .Site.Params.email }}
</a>
<a
class="contact"
href="tel:{{ delimit (slice "0" (replace (replace .Site.Params.tel " " "") "+" "0")) "" }}"
>
<img src="/img/kontakt/tel.svg" alt="Tel.:"/>
{{ .Site.Params.tel }}
</a>
</div>
<div id="footer-loga">
<a href="https://www.wepplergroup.cz" target="_blank" rel="noopener" aria-label="Weppler Group">
<img class="loga" src="/img/loga/logo_weppler_group.svg" alt="" />
</a>
<a
href="https://www.wepplergroup.cz/cs/weppler-trefil/o-nas"
target="_blank"
rel="noopener"
aria-label="Weppler Trefil"
>
<img class="loga" src="/img/loga/logo_weppler_trefil.svg" alt="" />
</a>
<a
href="https://www.wepplergroup.cz/cs/weppler-czech/o-nas"
target="_blank"
rel="noopener"
aria-label="Weppler Czech"
>
<img class="loga" src="/img/loga/logo_weppler_czech.svg" alt="" />
</a>
</div>
</footer>
<head>
<!--Meta tags tutorial:-->
<!--https://www.skcript.com/svr/perfect-seo-meta-tags-with-hugo/-->
<!--General-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta property="og:type" content="website" />
<meta name="author" content="{{ .Site.Params.author }}" />
<meta
name="keywords"
content="{{ .Site.Params.globalKeywords }}{{ with .Params.pageKeywords }},{{.}}{{ end }}"
/>
<meta
property="og:updated_time"
content="{{ .Lastmod.Format "2006-01-02T15:04:05Z0700" | safeHTML }}"
/>
<meta property="fb:app_id" content="{{ .Site.Param "appid" }}" />
<meta name="rating" content="safe for kids" />
<meta name="coverage" content="Worldwide" />
<meta name="distribution" content="Global" />
<meta name="HandheldFriendly" content="True" />
<meta name="msapplication-tap-highlight" content="no" />
<meta
name="apple-mobile-web-app-title"
content="{{ .Site.Params.sitename }}"
/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta
name="apple-mobile-web-app-status-bar-style"
content="black-translucent"
/>
<meta name="apple-touch-fullscreen" content="yes" />
<meta name="geo.placename" content="Ostrava" />
<!--Translations-->
{{ if .IsTranslated }}
{{ range .Translations }}
<link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}" title="{{ .Language.LanguageName }}">
{{ end }}
{{ end }}
<!--Icons, generated by realfavicongenerator.net-->
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" defer/>
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#0c5ba6" />
<meta name="msapplication-TileColor" content="#2d89ef" />
<meta name="theme-color" content="#ffffff" />
<!--Description-->
<meta name="description" content="{{ .Params.description }}" />
<meta itemprop="description" content="{{ .Params.description }}" />
<meta property="og:description" content="{{ .Params.description }}" />
<meta name="twitter:description" content="{{ .Params.description }}" />
<!--Robots-->
<meta name="robots" content="index,follow" />
<meta name="googlebot" content="index,follow" />
<!--Links-->
<base href="{{ .Permalink }}" />
<link rel="canonical" href="{{ .Permalink }}" itemprop="url" />
<meta name="url" content="{{ .Permalink }}" />
<meta name="twitter:url" content="{{ .Permalink }}" />
<meta property="og:url" content="{{ .Permalink }}" />
<!--Images-->
<meta itemprop="image" content="{{ .Site.Params.hlavniLogo | absURL }}" />
<meta property="og:image" content="{{ .Site.Params.hlavniLogo | absURL }}" />
<meta name="twitter:image" content="{{ .Site.Params.hlavniLogo | absURL }}" />
<meta name="twitter:image:src" content="{{ .Site.Params.hlavniLogo | absURL }}" />
<!--Languages-->
<meta property="og:locale" content="{{ .Language.Lang }}" />
<meta name="language" content="{{ .Language.LanguageName }}" />
{{ range .AllTranslations }}
<link
rel="alternate"
hreflang="{{ .Language.Lang }}"
href="{{ .Permalink }}"
title="{{ .Language.LanguageName }}"
/>
{{ end }}
<!--CSS-->
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap" rel="stylesheet" defer>
<!--<link-->
<!--rel="stylesheet"-->
<!--href="/css/master.css"-->
<!--type="text/css"-->
<!--media="screen"-->
<!--charset="utf-8"-->
<!--/>-->
{{ $reset := resources.Get "/css/reset.css" }}
{{ $typography := resources.Get "/css/typography.css" }}
{{ $layout := resources.Get "/css/layout.css" }}
{{ $colors := resources.Get "/css/colors.css" }}
{{ $other := resources.Get "/css/other.css" }}
{{ $style := slice $reset $typography $layout $colors $other | resources.Concat "global.css" | resources.PostCSS | minify | fingerprint }}
<link
rel="stylesheet"
href="{{ $style.Permalink }}"
type="text/css"
media="screen"
charset="utf-8"
integrity="{{ $style.Data.Integrity }}"
async
/>
<!--<link rel="stylesheet" href="/css/master.css" type="text/css" media="screen" charset="utf-8">-->
<!--<link-->
<!--rel="stylesheet"-->
<!--href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.min.css"-->
<!--/>-->
<!--Title-->
<title>{{ .Title }}</title>
<meta property="og:title" content="{{ .Title }}" />
<meta name="twitter:title" content="{{ .Title }}" />
<meta itemprop="name" content="{{ .Title }}" />
<meta name="application-name" content="{{ .Title }}" />
<meta property="og:site_name" content="{{ .Site.Params.sitename }}" />
<!--Site's Scripts-->
{{ $js := resources.Get "/js/script.js" }}
{{ $secureJS := $js | resources.Fingerprint }}
<script type="text/javascript" src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}" defer></script>
{{ $jsmodernizr := resources.Get "/js/modernizr-custom.js" }}
{{ $secureJSmodernizr := $jsmodernizr | resources.Fingerprint }}
<script type="text/javascript" src="{{ $secureJSmodernizr.Permalink }}" integrity="{{ $secureJSmodernizr.Data.Integrity }}" defer></script>
{{ template "_internal/google_analytics_async.html" . }}
<!--JSON LD-->
{{ partial "json_ld/general_json_ld.html" . }}
{{ block "structuredData" . }} {{ end }}
</head>
<nav id="header">
<div id="horni-header">
<a href="{{ "/" | absLangURL }}">
<img id="hlavni-logo" src="{{ .Site.Params.hlavniLogo }}" alt="Logo firmy {{ .Site.Params.firma }}"/>
</a>
<div class="toggle toggle-link">
{{ partial "svg/hamburger.svg" . }}
</div>
</div>
{{ $title := .Title }}
{{ range .Site.Menus.mainmenu }}
<a
href="{{ .URL | absLangURL }}"
id="{{if eq .Name $title}}current-link{{end}}"
{{if strings.HasPrefix .URL "http"}}target="_blank"
rel="noopener"
{{end}}
>{{.Name}}</a
>
{{end}}
</nav>
"address": {
"@type": "PostalAddress",
"addressCountry": "CZ",
"addressLocality": "Industrial area",
"addressRegion": "{{ .Site.Params.Adresa.kraj }}",
"streetAddress": "{{ .Site.Params.Adresa.cisloPopisne }} {{ .Site.Params.Adresa.ulice }}",
"postalCode": "{{ .Site.Params.Adresa.psc }}"
}
\ No newline at end of file
<script defer type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "JobPosting",
"url": "{{ .Permalink }}",
"datePosted": "2020-08-3",
"title": "Brusič kovů na plocho a na kulato",
"description": "",
"hiringOrganization": {
"@type": "Organization",
"name": "Weppler Tools s.r.o.",
"sameAs": "https://weppler-tools.cz"
},
"jobLocation": {
"@type": "Place",
"address": {
"@type": "PostalAddress",
"addressCountry": "CZ",
"addressLocality": "Industrial area",
"addressRegion": "{{ .Site.Params.Adresa.kraj }}",
"streetAddress": "{{ .Site.Params.Adresa.cisloPopisne }} {{ .Site.Params.Adresa.ulice }}",
"postalCode": "{{ .Site.Params.Adresa.psc }}"
}
}
}
</script>
{{ partial "json_ld/website.json" . }}
{{ partial "json_ld/webpage.json" .}}
{{ partial "json_ld/local_business.json" . }}
{{ if eq .Page.Params "translationkey" "brusic" }}
{{ partial "json_ld/brusic.json" . }}
{{ end }}
<script defer type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "LocalBusiness",
"url": "{{ .Permalink }}",
"address": {
"@type": "PostalAddress",
"addressCountry": "CZ",
"addressLocality": "Industrial area",
"addressRegion": "{{ .Site.Params.Adresa.kraj }}",
"streetAddress": "{{ .Site.Params.Adresa.cisloPopisne }} {{ .Site.Params.Adresa.ulice }}",
"postalCode": "{{ .Site.Params.Adresa.psc }}"
}
"geo": {
"@type": "GeoCoordinates",
"latitude": {{ .Site.Params.Adresa.lat }},
"longitude": {{ .Site.Params.Adresa.long }}
},
"description": "{{ .Site.Params.popis }}",
"sameAs": [
"{{ .Site.Params.facebook }}"
],
"name": "{{ .Title }}",
"telephone": "{{ .Site.Params.tel }}",
"email": "{{ .Site.Params.email }}",
"faxNumber": "{{ .Site.Params.fax }}",
"logo": "/img/loga/weppler_tools.png",
"openingHours": "Mo,Tu,We,Th,Fr 08:00-16:00",
"image": "/img/loga/weppler_tools.png"
}
</script>
<script defer type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebPage",
{{ with .Page.Param "imagepath" }}
"primaryImageOfPage": {
"@type": "ImageObject",
"contentUrl": "{{ . }}",
},
{{ end }}
"mainContentOfPage": {
"@type": "WebPageElement",
"cssSelector": "#content"
}
}
</script>
<script defer type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"author": "{{ .Site.Params.author }}",
"url": "{{ .Permalink }}",
"sameAs": [
"{{ .Site.Params.facebook }}"
]
}
</script>
<div class="loga-partneru">
{{ $count := 0 }}
{{ range .Site.Params.partneri }}
{{ $img := index . 1}}
{{ $jmeno := index . 0 }}
{{ $link := index . 2 }}
{{ if lt $count 4 }}
{{ $soubor := "" }}
{{ if (fileExists (delimit (slice "static/img/partneri/" $img ".svg") "")) }}{{ $soubor = delimit (slice $img ".svg") "" }}{{ else if (fileExists (delimit (slice "static/img/partneri/" $img ".png") "")) }}{{ $soubor = delimit (slice $img ".png") "" }}{{ else if (fileExists (delimit (slice "static/img/partneri/" $img ".jpg") "")) }}{{ $soubor = delimit (slice $img ".jpg") "" }}{{ else if (fileExists (delimit (slice "static/img/partneri/" $img ".jpeg") "")) }}{{ $soubor = delimit (slice $img ".jpeg") "" }}{{end}}
<a href="{{ $link }}" target="_blank" rel="noopener">
<picture>
<source srcset="/img/partneri/{{ delimit (slice $img ".webp") "" }}" type="image/webp"/>
<source srcset="/img/partneri/{{ $soubor }}">
<img class="pictures" src="/img/partneri/{{ $soubor }}" alt="Firma {{ $jmeno }}"/>
</picture>
</a>
{{ $count = add $count 1 }}
{{ end }}
{{ end }}
</div>
<details>
<summary>
{{ T "dalsi_partneri" }}
</summary>
{{ $count = 0 }}
<div class="loga-partneru">
{{ range .Site.Params.partneri }}
{{ $img := index . 1}}
{{ $jmeno := index . 0 }}
{{ $link := index . 2 }}
{{ if gt $count 3}}
{{ $soubor := "" }}
{{ if (fileExists (delimit (slice "static/img/partneri/" $img ".svg") "")) }}{{ $soubor = delimit (slice $img ".svg") "" }}{{ else if (fileExists (delimit (slice "static/img/partneri/" $img ".png") "")) }}{{ $soubor = delimit (slice $img ".png") "" }}{{ else if (fileExists (delimit (slice "static/img/partneri/" $img ".jpg") "")) }}{{ $soubor = delimit (slice $img ".jpg") "" }}{{ else if (fileExists (delimit (slice "static/img/partneri/" $img ".jpeg") "")) }}{{ $soubor = delimit (slice $img ".jpeg") "" }}{{end}}
<a href="{{ $link }}" target="_blank" rel="noopener">
<picture>
<source srcset="/img/partneri/{{ delimit (slice $img ".webp") "" }}" type="image/webp">
<source srcset="/img/partneri/{{ $soubor }}">
<img class="pictures" src="/img/partneri/{{ $soubor }}" alt="Firma {{ $jmeno }}"/>
</picture>
</a>
{{end}}
{{ $count = add $count 1 }}
{{end}}
</div>
</details>
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-down" width="24" height="24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M0 0h24v24H0z" stroke="none"/><path d="M12 5v14m6-6l-6 6m-6-6l6 6"/></svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-zap"><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/></svg>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment