Initial commit: Add telonma homepage
This commit is contained in:
16
layouts/partials/email_form.html
Normal file
16
layouts/partials/email_form.html
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
<form action="/submit-form" method="POST">
|
||||
<label for="name">Name:</label>
|
||||
<input type="text" id="name" name="name" required>
|
||||
|
||||
<label for="email">Email:</label>
|
||||
<input type="email" id="email" name="email" required>
|
||||
|
||||
<label for="message">Message:</label>
|
||||
<textarea id="message" name="message" required></textarea>
|
||||
|
||||
<!-- Honeypot field -->
|
||||
<input type="text" name="hidden_field" style="display:none;">
|
||||
|
||||
<button type="submit">Send</button>
|
||||
</form>
|
||||
47
layouts/partials/footer/footer.html
Normal file
47
layouts/partials/footer/footer.html
Normal file
@@ -0,0 +1,47 @@
|
||||
<div id="footer">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{{- if gt (len .Site.Params.footer.links) 0 }}
|
||||
{{- $link_cols := div (cond .Site.Params.footer.contact_form.enabled 6 12) (len .Site.Params.footer.links) }}
|
||||
{{- range .Site.Params.footer.links }}
|
||||
<section class="col-{{ $link_cols }} col-6-narrower col-12-mobilep">
|
||||
<h3>{{ .header }}</h3>
|
||||
<ul class="links">
|
||||
{{- range .links }}
|
||||
{{- if .pageref -}}
|
||||
<li><a href="{{ (site.GetPage .pageref).Permalink }}">{{ .title }}</a>
|
||||
{{- else -}}
|
||||
<li><a href="{{ .url }}">{{ .title }}</a>
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
|
||||
{{- if .Site.Params.footer.contact_form.enabled }}
|
||||
{{- partial "footer/contact.html" .Site.Params.footer.contact_form }}
|
||||
{{- end }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="icons">
|
||||
{{- range .Site.Params.social }}
|
||||
<li><a href="{{ .url }}" class="{{ if .icon }}icon brands {{ .icon }}{{ end }}">
|
||||
<span class="label">{{ .title }}</span>
|
||||
</a>
|
||||
{{- end }}
|
||||
</ul>
|
||||
|
||||
<div class="copyright">
|
||||
<ul class="menu">
|
||||
{{ if .Site.Params.Copyright }}
|
||||
<li>{{ replace .Site.Params.Copyright "{currentYear}" now.Year }}
|
||||
{{ end }}
|
||||
{{- if .Site.Params.showArcana | default false }}
|
||||
<li>Design: <a href="https://html5up.net">HTML5 UP</a>
|
||||
<li><a href="https://github.com/half-duplex/hugo-arcana">Theme</a>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
20
layouts/partials/header.html
Normal file
20
layouts/partials/header.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<div id="header">
|
||||
{{ if hugo.IsMultilingual }}
|
||||
{{- partial "languages.html" . }}
|
||||
{{- end -}}
|
||||
<div id="logo-wrapper"><h1><a href="{{ .Site.BaseURL }}" id="logo">
|
||||
{{- if .Site.Data.globalheader.image }}
|
||||
<img src="{{ .Site.Data.globalheader.image | relURL }}" alt="{{ .Site.Data.globalheader.image_alt }}" />
|
||||
{{- end }}
|
||||
{{ with .Site.Data.globalheader.title }}{{ . | markdownify }}{{ else }}{{ .Site.Title }}{{ end }}
|
||||
</a></h1></div>
|
||||
|
||||
<nav id="nav">
|
||||
<ul>
|
||||
{{- range .Site.Menus.main }}
|
||||
<li class="{{ if or ($.Page.IsMenuCurrent "main" .) ($.Page.HasMenuCurrent "main" .) }}current{{ end }}">
|
||||
<a href="{{ .URL | default "#" }}">{{ .Name }}</a>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
Reference in New Issue
Block a user