Skip to content

Commit

Permalink
style: formatted files using prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
tfsumon committed Mar 9, 2024
1 parent e2ef6ff commit b054bfa
Show file tree
Hide file tree
Showing 49 changed files with 616 additions and 472 deletions.
9 changes: 9 additions & 0 deletions exampleSite/content/pages/_index.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
ignoreSearch: true

# don't create a separete page
_build:
list: false
render: never
publishResources: false
---
9 changes: 9 additions & 0 deletions exampleSite/content/pages/_index.fr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
ignoreSearch: true

# don't create a separete page
_build:
list: false
render: never
publishResources: false
---
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Got Any Questions"
layout: "contact"
draft: false
ignoreSearch: true
---

Submit the form and confirm your email address at [Formspree](https://formspree.io/).
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Vous avez des questions"
layout: "contact"
draft: false
ignoreSearch: true
---

Envoyez le formulaire et confirmez votre adresse e-mail à l'adresse [Formspree](https://formspree.io/).
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
title: "Frequently Asked Questions"
draft: false
layout: "faq"
ignoreSearch: true
draft: false
---

{{< collapse "Will updates also be free?" >}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
title: "Frequently Asked Questions"
draft: false
layout: "faq"
ignoreSearch: true
draft: false
---

{{< collapse "Will updates also be free?" >}}
Expand Down
Empty file removed layouts/404.html
Empty file.
94 changes: 47 additions & 47 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
<!DOCTYPE html>
<html
lang="{{ site.LanguageCode | default `en-US` }}"
itemscope
itemtype="http://schema.org/WebPage">
<head>
<!-- head (don't cache it) -->
{{ partial "essentials/head.html" . }}


<!-- cache partial only in production -->
{{ if hugo.IsProduction }}
{{ partialCached "essentials/style.html" . }}
{{ else }}
{{ partial "essentials/style.html" . }}
{{ end }}
</head>

<body>
<!-- cache partial only in production -->
{{ if hugo.IsProduction }}
{{ partialCached "preloader.html" . }}
{{ partialCached "gtm-noscript.html" . }}
{{ else }}
{{ partial "preloader.html" . }}
{{ end }}


<!-- header (don't cache it) -->
{{ partial "essentials/header.html" . }}
{{ partial "search-modal.html" (dict "Context" . ) }}


<main>
{{ block "main" . }}{{ end }}
</main>

<!-- cache partial only in production -->
{{ if hugo.IsProduction }}
{{ partialCached "essentials/footer.html" . }}
{{ partialCached "essentials/script.html" . }}
{{ else }}
{{ partial "essentials/footer.html" . }}
{{ partial "essentials/script.html" . }}
{{ end }}
</body>
</html>
<!DOCTYPE html>
<html
lang="{{ site.LanguageCode | default `en-US` }}"
itemscope
itemtype="http://schema.org/WebPage">
<head>
<!-- head (don't cache it) -->
{{ partial "essentials/head.html" . }}


<!-- cache partial only in production -->
{{ if hugo.IsProduction }}
{{ partialCached "essentials/style.html" . }}
{{ else }}
{{ partial "essentials/style.html" . }}
{{ end }}
</head>

<body>
<!-- cache partial only in production -->
{{ if hugo.IsProduction }}
{{ partialCached "preloader.html" . }}
{{ partialCached "gtm-noscript.html" . }}
{{ else }}
{{ partial "preloader.html" . }}
{{ end }}


<!-- header (don't cache it) -->
{{ partial "essentials/header.html" . }}
{{ partial "search-modal.html" (dict "Context" . ) }}


<main>
{{ block "main" . }}{{ end }}
</main>

<!-- cache partial only in production -->
{{ if hugo.IsProduction }}
{{ partialCached "essentials/footer.html" . }}
{{ partialCached "essentials/script.html" . }}
{{ else }}
{{ partial "essentials/footer.html" . }}
{{ partial "essentials/script.html" . }}
{{ end }}
</body>
</html>
87 changes: 40 additions & 47 deletions layouts/_default/contact.html
Original file line number Diff line number Diff line change
@@ -1,51 +1,44 @@
{{ define "main" }}

<!-- contact -->
<section class="section">
<div class="container">
<div class="row">
<div class="col-12">
<h2 class="section-title text-primary">{{ .Title }}</h2>
{{ .Content }}
<form
action="{{ .Site.Params.contact_form_action | safeURL }}"
method="POST"
>
<input
type="text"
id="name"
name="name"
placeholder="Name"
class="form-control mb-4 shadow rounded-0"
/>
<input
type="email"
id="mail"
name="mail"
placeholder="Email"
class="form-control mb-4 shadow rounded-0"
/>
<input
type="text"
id="subject"
name="subject"
placeholder="Subject"
class="form-control mb-4 shadow rounded-0"
/>
<textarea
name="message"
id="message"
placeholder="Message"
class="form-control mb-4 shadow rounded-0"
></textarea>
<button type="submit" value="send" class="btn btn-primary">
{{ i18n "send" }}
</button>
</form>
<!-- contact -->
<section class="section">
<div class="container">
<div class="row">
<div class="col-12">
<h2 class="section-title text-primary">{{ .Title }}</h2>
{{ .Content }}
<form
action="{{ .Site.Params.contact_form_action | safeURL }}"
method="POST">
<input
type="text"
id="name"
name="name"
placeholder="Name"
class="form-control mb-4 shadow rounded-0" />
<input
type="email"
id="mail"
name="mail"
placeholder="Email"
class="form-control mb-4 shadow rounded-0" />
<input
type="text"
id="subject"
name="subject"
placeholder="Subject"
class="form-control mb-4 shadow rounded-0" />
<textarea
name="message"
id="message"
placeholder="Message"
class="form-control mb-4 shadow rounded-0"></textarea>
<button type="submit" value="send" class="btn btn-primary">
{{ i18n "send" }}
</button>
</form>
</div>
</div>
</div>
</div>
</section>
<!-- /contact -->

</section>
<!-- /contact -->
{{ end }}
36 changes: 17 additions & 19 deletions layouts/_default/faq.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
{{ define "main" }}

<!-- faq -->
<section class="section pb-0">
<div class="container">
<div class="row">
<div class="col-12">
<h2 class="section-title text-primary">{{ .Title }}</h2>
<!-- accordion -->
<div id="accordion-wrapper">
{{.Content}}
</div>
</div>
</div>
</div>
</section>
<!-- /faq -->

{{ end }}
{{ define "main" }}
<!-- faq -->
<section class="section pb-0">
<div class="container">
<div class="row">
<div class="col-12">
<h2 class="section-title text-primary">{{ .Title }}</h2>
<!-- accordion -->
<div id="accordion-wrapper">
{{ .Content }}
</div>
</div>
</div>
</div>
</section>
<!-- /faq -->
{{ end }}
8 changes: 3 additions & 5 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{{ define "main" }}

{{ partial "default.html" . }}

{{ end }}
{{ define "main" }}
{{ partial "default.html" . }}
{{ end }}
8 changes: 3 additions & 5 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{{ define "main" }}

{{ partial "default.html" . }}

{{ end }}
{{ define "main" }}
{{ partial "default.html" . }}
{{ end }}
Loading

0 comments on commit b054bfa

Please sign in to comment.