Inserito il tema direttamente nel codice invece che come sottomodulo
This commit is contained in:
43
themes/hugo-universal-theme/layouts/404.html
Normal file
43
themes/hugo-universal-theme/layouts/404.html
Normal file
@ -0,0 +1,43 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
|
||||
<head>
|
||||
{{ partial "headers.html" . }}
|
||||
{{ partial "custom_headers.html" . }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="all">
|
||||
|
||||
{{ partial "top.html" . }}
|
||||
|
||||
{{ partial "nav.html" . }}
|
||||
|
||||
<div id="content">
|
||||
<div class="container">
|
||||
|
||||
<div class="col-sm-6 col-sm-offset-3" id="error-page">
|
||||
|
||||
<div class="box">
|
||||
|
||||
<h3>{{ i18n "404Message" | markdownify }}</h3>
|
||||
<h4 class="text-muted">{{ i18n "404Error" | markdownify }}</h4>
|
||||
|
||||
<p class="buttons"><a href="{{ "/" | relURL }}" class="btn btn-template-main"><i class="fas fa-home"></i> {{ i18n "404NavHome" | markdownify }}</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<!-- /.col-sm-6 -->
|
||||
</div>
|
||||
<!-- /.container -->
|
||||
</div>
|
||||
<!-- /#content -->
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
128
themes/hugo-universal-theme/layouts/_default/list.html
Normal file
128
themes/hugo-universal-theme/layouts/_default/list.html
Normal file
@ -0,0 +1,128 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
|
||||
<head>
|
||||
{{ partial "headers.html" . }}
|
||||
{{ partial "custom_headers.html" . }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="all">
|
||||
|
||||
{{ partial "top.html" . }}
|
||||
|
||||
{{ partial "nav.html" . }}
|
||||
|
||||
{{ partial "breadcrumbs.html" . }}
|
||||
|
||||
<div id="content">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<!-- *** LEFT COLUMN *** -->
|
||||
|
||||
<div class="col-md-9" id="blog-listing-medium">
|
||||
|
||||
{{ $paginator := .Paginate (where .Data.Pages "Type" "in" .Site.Params.mainSections) }}
|
||||
{{ range $paginator.Pages }}
|
||||
<section class="post">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="image">
|
||||
<a href="{{ .Permalink }}">
|
||||
{{ if .Params.banner }}
|
||||
<img src="{{ .Params.banner | relURL }}" class="img-responsive" alt="" />
|
||||
{{ else }}
|
||||
<img src="{{ "img/placeholder.png" | relURL }}" class="img-responsive" alt="" />
|
||||
{{ end }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
<div class="clearfix">
|
||||
<p class="author-category">
|
||||
{{ if isset .Params "authors" }}
|
||||
{{ i18n "authorBy" }} {{ range $index, $author := .Params.authors }}{{ if $index }}, {{ end }}<a href="{{ (printf "%s/%s" ("authors" | relLangURL) ($author | urlize)) }}">{{ $author }}</a>{{ end }}
|
||||
{{ end }}
|
||||
{{ if isset .Params "categories" }}
|
||||
{{ if gt (len .Params.categories) 0 }}
|
||||
in
|
||||
{{ range $index, $category := .Params.categories }}{{ if $index }}, {{ end }}
|
||||
<a href="{{ "categories/" | relLangURL }}{{ . | urlize | lower }}">{{ $category }}</a>{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
</p>
|
||||
{{ if isset .Params "date" }}
|
||||
|
||||
{{ $createdAt := .Date.Format .Site.Params.date_format }}
|
||||
{{ range $index, $month := slice "January" "February" "March" "April" "May" "June" "July" "August" "September" "October" "November" "December" }}
|
||||
{{ $createdAt = replace $createdAt $month (i18n $month) }}
|
||||
{{ end }}
|
||||
|
||||
<p class="date-comments">
|
||||
<a href="{{ .Permalink }}"><i class="far fa-calendar"></i> {{ $createdAt }}</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ if not .Site.Params.recent_posts.hide_summary }}
|
||||
<p class="intro">{{ .Summary }}</p>
|
||||
<p class="read-more"><a href="{{ .Permalink }}" class="btn btn-template-main">{{ i18n "continueReading" }}</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
<ul class="pager">
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<li class="previous"><a href="{{ .Paginator.Prev.URL | relURL }}">← {{ i18n "newer" }}</a></li>
|
||||
{{ else }}
|
||||
<li class="previous disabled"><a href="#">← {{ i18n "newer" }}</a></li>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Paginator.HasNext }}
|
||||
<li class="next"><a href="{{ .Paginator.Next.URL | relURL }}">{{ i18n "older" }} →</a></li>
|
||||
{{ else }}
|
||||
<li class="next disabled"><a href="#">{{ i18n "older" }} →</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /.col-md-9 -->
|
||||
|
||||
<!-- *** LEFT COLUMN END *** -->
|
||||
|
||||
<!-- *** RIGHT COLUMN ***
|
||||
_________________________________________________________ -->
|
||||
|
||||
<div class="col-md-3">
|
||||
|
||||
<!-- *** MENUS AND WIDGETS *** -->
|
||||
|
||||
{{ partial "sidebar.html" . }}
|
||||
|
||||
<!-- *** MENUS AND FILTERS END *** -->
|
||||
|
||||
</div>
|
||||
<!-- /.col-md-3 -->
|
||||
|
||||
<!-- *** RIGHT COLUMN END *** -->
|
||||
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- /.container -->
|
||||
</div>
|
||||
<!-- /#content -->
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
||||
</div>
|
||||
<!-- /#all -->
|
||||
|
||||
{{ partial "scripts.html" . }}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
90
themes/hugo-universal-theme/layouts/_default/single.html
Normal file
90
themes/hugo-universal-theme/layouts/_default/single.html
Normal file
@ -0,0 +1,90 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
|
||||
<head>
|
||||
{{ partial "headers.html" . }}
|
||||
{{ partial "custom_headers.html" . }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="all">
|
||||
|
||||
{{ partial "top.html" . }}
|
||||
|
||||
{{ partial "nav.html" . }}
|
||||
|
||||
{{ partial "breadcrumbs.html" . }}
|
||||
|
||||
<div id="content">
|
||||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<!-- *** LEFT COLUMN *** -->
|
||||
|
||||
<div class="col-md-9" id="blog-post">
|
||||
|
||||
{{ if or .Params.author .Params.date }}
|
||||
<p class="text-muted text-uppercase mb-small text-right">
|
||||
{{ if isset .Params "authors" }}
|
||||
{{ i18n "authorBy" }} {{ range $index, $author := .Params.authors }}{{ if $index }}, {{ end }}<a href="{{ (printf "%s/%s" ("authors" | relLangURL) ($author | urlize)) }}">{{ $author }}</a>{{ end }}
|
||||
{{ end }}
|
||||
{{ if and .Params.author .Params.date }} | {{ end }}
|
||||
{{ if .Params.date }}
|
||||
{{ $createdAt := .Date.Format .Site.Params.date_format }}
|
||||
{{ range $index, $month := slice "January" "February" "March" "April" "May" "June" "July" "August" "September" "October" "November" "December" }}
|
||||
{{ $createdAt = replace $createdAt $month (i18n $month) }}
|
||||
{{ end }}
|
||||
{{ $createdAt }}
|
||||
{{ end }}
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
<div id="post-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
<!-- /#post-content -->
|
||||
{{ if .Site.Config.Services.Disqus.Shortname }}
|
||||
<div id="comments">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
<!-- /#blog-post -->
|
||||
|
||||
<!-- *** LEFT COLUMN END *** -->
|
||||
|
||||
<!-- *** RIGHT COLUMN *** -->
|
||||
|
||||
<div class="col-md-3">
|
||||
|
||||
<!-- *** MENUS AND WIDGETS *** -->
|
||||
|
||||
{{ partial "sidebar.html" . }}
|
||||
|
||||
<!-- *** MENUS AND FILTERS END *** -->
|
||||
|
||||
</div>
|
||||
<!-- /.col-md-3 -->
|
||||
|
||||
<!-- *** RIGHT COLUMN END *** -->
|
||||
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
|
||||
</div>
|
||||
<!-- /.container -->
|
||||
</div>
|
||||
<!-- /#content -->
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
||||
</div>
|
||||
<!-- /#all -->
|
||||
|
||||
{{ partial "scripts.html" . }}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
10
themes/hugo-universal-theme/layouts/archetypes/default.md
Normal file
10
themes/hugo-universal-theme/layouts/archetypes/default.md
Normal file
@ -0,0 +1,10 @@
|
||||
+++
|
||||
tags = []
|
||||
categories = []
|
||||
description = ""
|
||||
menu = ""
|
||||
banner = ""
|
||||
images = []
|
||||
+++
|
||||
|
||||
<!--more-->
|
||||
37
themes/hugo-universal-theme/layouts/index.html
Normal file
37
themes/hugo-universal-theme/layouts/index.html
Normal file
@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
|
||||
<head>
|
||||
{{ partial "headers.html" . }}
|
||||
{{ partial "custom_headers.html" . }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="all">
|
||||
|
||||
{{ partial "top.html" . }}
|
||||
|
||||
{{ partial "nav.html" . }}
|
||||
|
||||
{{ partial "carousel.html" . }}
|
||||
|
||||
{{ partial "features.html" . }}
|
||||
|
||||
{{ partial "testimonials.html" . }}
|
||||
|
||||
{{ partial "see_more.html" . }}
|
||||
|
||||
{{ partial "recent_posts.html" . }}
|
||||
|
||||
{{ partial "clients.html" . }}
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
||||
</div>
|
||||
<!-- /#all -->
|
||||
|
||||
{{ partial "scripts.html" . }}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
55
themes/hugo-universal-theme/layouts/page/single.html
Normal file
55
themes/hugo-universal-theme/layouts/page/single.html
Normal file
@ -0,0 +1,55 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
|
||||
<head>
|
||||
{{ partial "headers.html" . }}
|
||||
{{ partial "custom_headers.html" . }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="all">
|
||||
{{ partial "top.html" . }}
|
||||
|
||||
{{ partial "nav.html" . }}
|
||||
|
||||
{{ partial "breadcrumbs.html" . }}
|
||||
|
||||
<div id="content">
|
||||
{{ if isset .Params "id" }}
|
||||
|
||||
{{ partial .Params.id . }}
|
||||
|
||||
{{ else }}
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-12">
|
||||
|
||||
<div>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
|
||||
</div>
|
||||
<!-- /.container -->
|
||||
|
||||
{{ end }}
|
||||
</div>
|
||||
<!-- /#content -->
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
||||
</div>
|
||||
<!-- /#all -->
|
||||
|
||||
{{ partial "scripts.html" . }}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,9 @@
|
||||
<div id="heading-breadcrumbs">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h1>{{ .Title }}</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
38
themes/hugo-universal-theme/layouts/partials/carousel.html
Normal file
38
themes/hugo-universal-theme/layouts/partials/carousel.html
Normal file
@ -0,0 +1,38 @@
|
||||
{{ if default true .Site.Params.CarouselHomepage.enable }}
|
||||
{{ if isset .Site.Data "carousel" }}
|
||||
{{ if gt (len .Site.Data.carousel) 0 }}
|
||||
<section>
|
||||
<div class="home-carousel">
|
||||
<div class="dark-mask"></div>
|
||||
<div class="container">
|
||||
<div class="homepage owl-carousel"
|
||||
data-autoplay="{{ default true .Site.Params.CarouselHomepage.auto_play }}"
|
||||
data-slide-speed="{{ default 2000 .Site.Params.CarouselHomepage.slide_speed }}"
|
||||
data-pagination-speed="{{ default 1000 .Site.Params.CarouselHomepage.pagination_speed }}">
|
||||
{{ range sort .Site.Data.carousel "weight" }}
|
||||
<div class="item">
|
||||
{{ if .href }}
|
||||
<a href="{{ .href }}" target="_blank" title="{{ .title | safeHTML }}">
|
||||
{{ end }}
|
||||
<div class="row">
|
||||
<div class="col-sm-5 right">
|
||||
<h1>{{ .title | safeHTML }}</h1>
|
||||
{{ .description | safeHTML }}
|
||||
</div>
|
||||
<div class="col-sm-7">
|
||||
<img class="img-responsive" src="{{ .image }}" alt="">
|
||||
</div>
|
||||
</div>
|
||||
{{ if .href }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
<!-- /.project owl-slider -->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
42
themes/hugo-universal-theme/layouts/partials/clients.html
Normal file
42
themes/hugo-universal-theme/layouts/partials/clients.html
Normal file
@ -0,0 +1,42 @@
|
||||
{{ if isset .Site.Params "clients" }}
|
||||
{{ if .Site.Params.clients.enable }}
|
||||
{{ if isset .Site.Data "clients" }}
|
||||
{{ if gt (len .Site.Data.clients) 0 }}
|
||||
<section class="bar background-gray no-mb">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="heading text-center">
|
||||
<h2>{{ .Site.Params.clients.title | markdownify }}</h2>
|
||||
</div>
|
||||
|
||||
<p class="lead">
|
||||
{{ .Site.Params.clients.subtitle | markdownify }}
|
||||
</p>
|
||||
|
||||
<ul class="owl-carousel customers"
|
||||
data-items="{{ default 6 .Site.Params.CarouselCustomers.items }}"
|
||||
data-autoplay="{{ default false .Site.Params.CarouselCustomers.auto_play }}"
|
||||
data-slide-speed="{{ default 2000 .Site.Params.CarouselCustomers.slide_speed }}"
|
||||
data-pagination-speed="{{ default 1000 .Site.Params.CarouselCustomers.pagination_speed }}">
|
||||
{{ range .Site.Data.clients }}
|
||||
<li class="item" title="{{ .name }}">
|
||||
{{ if .url }}
|
||||
<a href="{{ .url }}" target="_blank">
|
||||
<img src="{{ .image }}" alt="{{ .name }}" class="img-responsive" />
|
||||
</a>
|
||||
{{ else }}
|
||||
<img src="{{ .image }}" alt="{{ .name }}" class="img-responsive" />
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<!-- /.owl-carousel -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
78
themes/hugo-universal-theme/layouts/partials/contact.html
Normal file
78
themes/hugo-universal-theme/layouts/partials/contact.html
Normal file
@ -0,0 +1,78 @@
|
||||
<div class="container" id="contact">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
|
||||
<section>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ if isset .Site.Params "formspree_action" }}
|
||||
|
||||
<div class="heading">
|
||||
<h3>{{ i18n "contactForm" }}</h3>
|
||||
</div>
|
||||
|
||||
<div id="contact-message"></div>
|
||||
|
||||
<form {{ with .Site.Params.contact_form_ajax }}class="contact-form-ajax"{{ else }}{{ end }} method="post" action="{{ .Site.Params.formspree_action }}">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label for="name">{{ i18n "contactName" }}</label>
|
||||
<input type="text" class="form-control" name="name" id="name" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label for="email">{{ i18n "contactMail" }}</label>
|
||||
<input type="email" autocomplete="email" class="form-control" name="email" id="email" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12">
|
||||
<div class="form-group">
|
||||
<label for="message">{{ i18n "contactMessage" }}</label>
|
||||
<textarea id="message" class="form-control" name="message" required></textarea>
|
||||
</div>
|
||||
</div>
|
||||
{{ if and .Site.Params.enableRecaptchaInContactForm .Site.Params.googleRecaptchaKey }}
|
||||
<div class="col-sm-12">
|
||||
<div class="g-recaptcha" data-sitekey="{{ .Site.Params.googleRecaptchaKey }}"></div>
|
||||
<br/>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="col-sm-12 text-center">
|
||||
<button type="submit" class="btn btn-template-main"><i class="far fa-envelope"></i>{{ i18n "contactSend" }}</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</form>
|
||||
|
||||
{{ end }}
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
|
||||
{{ if isset .Site.Params "address" }}
|
||||
<section>
|
||||
|
||||
<h3 class="text-uppercase"> {{ i18n "contactAddrTitle" }}</h3>
|
||||
|
||||
{{ .Site.Params.address | safeHTML }}
|
||||
|
||||
</section>
|
||||
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
|
||||
{{ partial "map.html" . }}
|
||||
48
themes/hugo-universal-theme/layouts/partials/features.html
Normal file
48
themes/hugo-universal-theme/layouts/partials/features.html
Normal file
@ -0,0 +1,48 @@
|
||||
{{ if isset .Site.Params "features" }}
|
||||
{{ if .Site.Params.features.enable }}
|
||||
{{ if isset .Site.Data "features" }}
|
||||
{{ if gt (len .Site.Data.features) 0 }}
|
||||
<section class="bar background-white">
|
||||
<div class="container">
|
||||
{{ $elements := default 3 .Site.Params.features.cols }}
|
||||
{{ $features := sort .Site.Data.features "weight" }}
|
||||
|
||||
{{ $total_rows := div (len $features) $elements }}
|
||||
|
||||
{{ if gt (mod (len $features) $elements) 0 }}
|
||||
{{ $total_rows = add $total_rows 1 }}
|
||||
{{ end }}
|
||||
|
||||
{{ range $i, $sequence := seq $total_rows }}
|
||||
<div class="row row-{{ $i }} row-{{ if eq (mod $i 2) 0 }}odd{{ else }}even{{ end }}">
|
||||
{{ range $j, $sequence2 := (seq $elements) }}
|
||||
|
||||
{{ $feature_index := add (mul $i $elements) $j }}
|
||||
{{ if lt $feature_index (len $features) }}
|
||||
{{ $element := index $features $feature_index }}
|
||||
|
||||
<div class="col-md-{{ div 12 $elements }} col-{{ $j }} col-{{ if eq (mod $j 2) 0 }}odd{{ else }}even{{ end }}">
|
||||
<div class="box-simple">
|
||||
{{ with $element.url }}
|
||||
<a href="{{ $element.url }}">
|
||||
{{ end }}
|
||||
<div class="icon">
|
||||
<i class="{{ $element.icon }}"></i>
|
||||
</div>
|
||||
{{ with $element.url }}
|
||||
</a>
|
||||
{{ end }}
|
||||
<h3>{{ $element.name | markdownify }}</h3>
|
||||
<p>{{ $element.description | markdownify }}</p>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
89
themes/hugo-universal-theme/layouts/partials/footer.html
Normal file
89
themes/hugo-universal-theme/layouts/partials/footer.html
Normal file
@ -0,0 +1,89 @@
|
||||
<footer id="footer">
|
||||
<div class="container">
|
||||
|
||||
{{ if isset .Site.Params "about_us" }}
|
||||
<div class="col-md-4 col-sm-6">
|
||||
<h4>{{ i18n "aboutUs" }}</h4>
|
||||
|
||||
{{ .Site.Params.about_us | safeHTML }}
|
||||
|
||||
<hr class="hidden-md hidden-lg hidden-sm">
|
||||
|
||||
</div>
|
||||
<!-- /.col-md-4 -->
|
||||
{{ end }}
|
||||
|
||||
<div class="col-md-4 col-sm-6">
|
||||
|
||||
{{ if isset .Site.Params "recent_posts" }}{{ if (default true .Site.Params.footer.recent_posts.enable) }}
|
||||
<h4>{{ i18n "recentPosts" }}</h4>
|
||||
|
||||
<div class="blog-entries">
|
||||
{{ range first 3 (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
|
||||
<div class="item same-height-row clearfix">
|
||||
<div class="image same-height-always">
|
||||
<a href="{{ .Permalink }}">
|
||||
{{ if isset .Params "banner" }}
|
||||
<img src="{{ .Params.banner | relURL }}" class="img-responsive" alt="{{ .Title }}" />
|
||||
{{ else }}
|
||||
<img src="{{ "img/placeholder.png" | relURL }}" class="img-responsive" alt="{{ .Title }}" />
|
||||
{{ end }}
|
||||
</a>
|
||||
</div>
|
||||
<div class="name same-height-always">
|
||||
<h5><a href="{{ .Permalink }}">{{ .Title }}</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<hr class="hidden-md hidden-lg">
|
||||
{{ end }}{{ end }}
|
||||
|
||||
</div>
|
||||
<!-- /.col-md-4 -->
|
||||
|
||||
{{ if isset .Site.Params "address" }}
|
||||
<div class="col-md-4 col-sm-6">
|
||||
|
||||
<h4>{{ i18n "contactTitle" }}</h4>
|
||||
|
||||
{{ .Site.Params.address | safeHTML }}
|
||||
|
||||
<a href="{{ default "/contact" .Site.Params.contact_url }}" class="btn btn-small btn-template-main">{{ i18n "contactGoTo" }}</a>
|
||||
|
||||
<hr class="hidden-md hidden-lg hidden-sm">
|
||||
|
||||
</div>
|
||||
<!-- /.col-md-4 -->
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
<!-- /.container -->
|
||||
</footer>
|
||||
|
||||
<!-- /#footer -->
|
||||
|
||||
<!-- *** FOOTER END *** -->
|
||||
|
||||
<!-- *** COPYRIGHT ***
|
||||
_________________________________________________________ -->
|
||||
|
||||
<div id="copyright">
|
||||
<div class="container">
|
||||
<div class="col-md-12">
|
||||
{{ if isset .Site.Params "copyright" }}
|
||||
<p class="pull-left">{{ .Site.Params.copyright | safeHTML }}</p>
|
||||
{{ end }}
|
||||
<p class="pull-right">
|
||||
{{ i18n "templateBy" | markdownify }} <a href="https://bootstrapious.com/universal-business-e-commerce-template">Bootstrapious</a>.
|
||||
<!-- Not removing this link is part of the licence conditions of the template. Thanks for understanding :) -->
|
||||
|
||||
{{ i18n "portedBy" | markdownify }} <a href="https://github.com/devcows/hugo-universal-theme">DevCows</a>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /#copyright -->
|
||||
|
||||
<!-- *** COPYRIGHT END *** -->
|
||||
100
themes/hugo-universal-theme/layouts/partials/headers.html
Normal file
100
themes/hugo-universal-theme/layouts/partials/headers.html
Normal file
@ -0,0 +1,100 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="robots" content="all,follow">
|
||||
<meta name="googlebot" content="index,follow,snippet,archive">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{{ $title_plain := .Title | markdownify | plainify }}
|
||||
<title>{{ $title_plain }}</title>
|
||||
<meta name="author" content="{{ .Param "author" }}" />
|
||||
{{ $keywords := .Site.Params.defaultKeywords | default (slice "" | first 0) }}
|
||||
{{ if isset .Params "tags" }}{{ range .Params.tags }}{{ $keywords = $keywords | append . }}{{ end }}{{ end }}
|
||||
{{ if isset .Params "keywords" }}{{ range .Params.keywords }}{{ $keywords = $keywords | append . }}{{ end }}{{ end }}
|
||||
{{ if gt (len $keywords) 0 }}
|
||||
<meta name="keywords" content="{{ delimit (uniq $keywords) ", " }}">
|
||||
{{ end }}
|
||||
{{ $description_plain := default .Site.Params.defaultDescription .Description | markdownify | plainify }}
|
||||
<meta name="description" content="{{ $description_plain }}">
|
||||
|
||||
{{ hugo.Generator }}
|
||||
|
||||
<!-- Font -->
|
||||
<link href='//fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,500,700,800' rel='stylesheet' type='text/css'>
|
||||
|
||||
<!-- Bootstrap and Font Awesome CSS -->
|
||||
<link rel="stylesheet" href="//use.fontawesome.com/releases/v6.7.2/css/all.css">
|
||||
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
|
||||
|
||||
<!-- CSS animations -->
|
||||
<link href="{{ "css/animate.css" | relURL }}" rel="stylesheet">
|
||||
|
||||
<!-- Theme stylesheet, if possible do not edit this stylesheet -->
|
||||
{{ with .Site.Params.style }}
|
||||
<link href="{{ "css/style" | relURL }}.{{ . }}.css" rel="stylesheet" id="theme-stylesheet">
|
||||
{{ else }}
|
||||
<link href="{{ "css/style.default.css" | relURL }}" rel="stylesheet" id="theme-stylesheet">
|
||||
{{ end }}
|
||||
|
||||
<!-- Custom stylesheet - for your changes -->
|
||||
<link href="{{ "css/custom.css" | relURL }}?{{ now.Unix }}" rel="stylesheet">
|
||||
|
||||
<!-- Responsivity for older IE -->
|
||||
{{ `
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
` | safeHTML }}
|
||||
|
||||
<!-- Favicon and Apple touch icons-->
|
||||
<link rel="shortcut icon" href="{{ "img/favicon.ico" | relURL }}" type="image/x-icon" />
|
||||
<link rel="apple-touch-icon" href="{{ "img/apple-touch-icon.png" | relURL }}" />
|
||||
|
||||
<!-- owl carousel CSS -->
|
||||
<link href="{{ "css/owl.carousel.css" | relURL }}" rel="stylesheet">
|
||||
<link href="{{ "css/owl.theme.css" | relURL }}" rel="stylesheet">
|
||||
|
||||
<!-- RSS feed -->
|
||||
<link rel="alternate" href="{{ "/index.xml" | absURL }}" type="application/rss+xml" title="{{ .Site.Title }}">
|
||||
|
||||
<!-- Facebook OpenGraph tags -->
|
||||
{{ $is_blog := and (eq .Type "blog") (eq .Kind "page") }}
|
||||
{{ $has_image := isset .Params "banner" }}
|
||||
{{ $image := cond $has_image .Params.banner (.Site.Params.default_sharing_image | default "img/sharing-default.png") }}
|
||||
{{ $is_valid_image := print "static/" $image | fileExists }}
|
||||
{{ if $is_valid_image }}
|
||||
{{ $image_ext := path.Ext $image }}
|
||||
<meta property="og:locale" content="{{ replace .Site.LanguageCode "-" "_" }}">
|
||||
<meta property="og:site_name" content="{{ .Site.Title }}">
|
||||
<meta property="og:title" content="{{ $title_plain }}">
|
||||
<meta property="og:type" content="{{ cond $is_blog "article" "website" }}">
|
||||
<meta property="og:url" content="{{ .Permalink }}" />
|
||||
<meta property="og:description" content="{{ $description_plain }}">
|
||||
<meta property="og:image" content="{{ $image | absURL }}">
|
||||
<meta property="og:image:type" content="image/{{ if eq $image_ext ".svg" }}svg+xml{{ else }}{{ trim $image_ext "." }}{{ end }}">
|
||||
{{ with .Params.banner_alt }}<meta property="og:image:alt" content="{{ . | markdownify | plainify }}">{{ end }}
|
||||
{{ $image_local := printf "/static/%s" $image}}
|
||||
{{ with (imageConfig $image_local) }}
|
||||
<meta property="og:image:width" content="{{ .Width }}">
|
||||
<meta property="og:image:height" content="{{ .Height }}">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ with .Lastmod }}<meta property="og:updated_time" content="{{ .Format "2006-01-02T15:04:05Z0700" }}">{{ end }}
|
||||
{{ if $is_blog }}
|
||||
{{ with .Param "facebook_site" }}<meta property="article:publisher" content="https://www.facebook.com/{{ . }}/">{{ end }}
|
||||
{{ with .Param "facebook_author" }}<meta property="article:author" content="https://www.facebook.com/{{ . }}/">{{ end }}
|
||||
{{ with .Params.categories }}<meta property="article:section" content="{{ index . 0 }}">{{ end }}
|
||||
{{ range .Params.tags }}<meta property="article:tag" content="{{ . }}">
|
||||
{{ end }}
|
||||
{{ if gt .ExpiryDate .PublishDate }}<meta property="article:expiration_time" content="{{ .ExpiryDate.Format "2006-01-02T15:04:05Z0700" }}">{{ end }}
|
||||
{{ with .PublishDate }}<meta property="article:published_time" content="{{ .Format "2006-01-02T15:04:05Z0700" }}">{{ end }}
|
||||
{{ with .Lastmod }}<meta property="article:modified_time" content="{{ .Format "2006-01-02T15:04:05Z0700" }}">{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<!-- Twitter Card meta tags -->
|
||||
<meta name="twitter:card" content="summary{{ if (and $is_blog (and $has_image $is_valid_image)) }}_large_image{{ end }}">
|
||||
{{ with .Param "twitter_site" }}<meta name="twitter:site" content="@{{ . }}">{{ end }}
|
||||
<meta name="twitter:title" content="{{ $title_plain | truncate 70 }}">
|
||||
{{ if $is_valid_image }}
|
||||
<meta name="twitter:image" content="{{ $image | absURL }}">
|
||||
{{ end }}
|
||||
<meta name="twitter:description" content="{{ $description_plain | truncate 200 }}">
|
||||
{{ with .Param "twitter_author" }}<meta name="twitter:creator" content="@{{ . }}">{{ end }}
|
||||
17
themes/hugo-universal-theme/layouts/partials/map.html
Normal file
17
themes/hugo-universal-theme/layouts/partials/map.html
Normal file
@ -0,0 +1,17 @@
|
||||
{{ if and .Site.Params.enableGoogleMaps .Site.Params.googleMapsApiKey }}
|
||||
{{ if isset .Site.Params "latitude" }}
|
||||
{{ if isset .Site.Params "longitude" }}
|
||||
<div class="hidden">
|
||||
<input id="gmap-lat" value="{{ .Site.Params.latitude }}" />
|
||||
<input id="gmap-lng" value="{{ .Site.Params.longitude }}" />
|
||||
<input id="gmap-marker" value="{{ "img/marker.png" | relURL }}" />
|
||||
{{ if isset .Site.Params "direction" }}
|
||||
<input id="gmap-dir" value="{{ .Site.Params.direction }}" />
|
||||
{{ else }}
|
||||
<input id="gmap-dir" value="{{ .Site.Params.latitude }},{{ .Site.Params.longitude }}" />
|
||||
{{ end }}
|
||||
</div>
|
||||
<div id="map" />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
161
themes/hugo-universal-theme/layouts/partials/nav.html
Normal file
161
themes/hugo-universal-theme/layouts/partials/nav.html
Normal file
@ -0,0 +1,161 @@
|
||||
<header class="navbar-affixed-top" data-spy="affix" data-offset-top="62">
|
||||
<div class="navbar navbar-default yamm {{ if .Site.Params.dropdown_mouse_over }}mouseover{{ end }}" role="navigation" id="navbar">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand home" href="{{ "/" | relLangURL }}">
|
||||
{{ if default false .Site.Params.disabled_logo }}
|
||||
<h4>{{ .Site.Params.logo_text }}</h4>
|
||||
{{ else }}
|
||||
<img src="{{ .Site.Params.logo | relURL }}" alt="{{ .Title }} logo" class="hidden-xs hidden-sm" />
|
||||
<img src="{{ .Site.Params.logo_small | relURL }}" alt="{{ .Title }} logo" class="visible-xs visible-sm" />
|
||||
{{ end }}
|
||||
<span class="sr-only">{{ .Title }} - {{ i18n "navHome" }}</span>
|
||||
</a>
|
||||
<div class="navbar-buttons">
|
||||
<button type="button" class="navbar-toggle btn-template-main" data-toggle="collapse" data-target="#navigation">
|
||||
<span class="sr-only">{{ i18n "navToggle" }}</span>
|
||||
<i class="fas fa-align-justify"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.navbar-header -->
|
||||
|
||||
<div class="navbar-collapse collapse" id="navigation">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
{{ $current := . }}
|
||||
|
||||
{{ range .Site.Menus.main.ByWeight }}
|
||||
{{ $topLevel := replace .URL "/" "" }}
|
||||
{{ $active := "" }}
|
||||
|
||||
{{ if eq $current.RelPermalink .URL }}
|
||||
{{ $active = "active" }}
|
||||
{{ end }}
|
||||
|
||||
{{ if eq $current.Type $topLevel }}
|
||||
{{ $active = "active" }}
|
||||
{{ end }}
|
||||
|
||||
{{ if and (or (eq $current.RelPermalink .URL) (eq "term" $current.Kind)) (in (slice "page" "term") $current.Kind) }}
|
||||
{{ range (split .URL "/") }}
|
||||
{{ if eq "blog" . }}
|
||||
{{ $active = "active" }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .HasChildren }}
|
||||
<!-- Check if the first child marks a menu section identifier -->
|
||||
{{ $hasSections := (hasPrefix (index .Children 0).Identifier "section.") }}
|
||||
<li class="dropdown{{ if $hasSections }} use-yamm yamm-fw{{end}} {{ $active }}">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ .Name }} <span class="caret"></span></a>
|
||||
{{ if $hasSections }}
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<div class="yamm-content">
|
||||
<div class="row">
|
||||
{{ if ne .URL "" }}
|
||||
<div class="col-sm-6">
|
||||
<img src="{{ .URL }}" class="img-responsive hidden-xs"/>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="col-sm-3">
|
||||
{{ range .Children.ByWeight }}
|
||||
{{ $column := printf "%s" .Post }}
|
||||
{{ if eq $column "1" }}
|
||||
<h5>{{ .Name }}</h5>
|
||||
{{ if .HasChildren }}
|
||||
<ul>
|
||||
{{ range .Children.ByWeight }}
|
||||
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
{{ range .Children.ByWeight }}
|
||||
{{ $column := printf "%s" .Post }}
|
||||
{{ if eq $column "2" }}
|
||||
<h5>{{ .Name }}</code></h5>
|
||||
{{ if .HasChildren }}
|
||||
<ul>
|
||||
{{ range .Children.ByWeight }}
|
||||
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ if eq .URL "" }}
|
||||
<div class="col-sm-3">
|
||||
{{ range .Children }}
|
||||
{{ $column := printf "%s" .Post }}
|
||||
{{ if eq $column "3" }}
|
||||
<h5>{{ .Name }}</code></h5>
|
||||
{{ if .HasChildren }}
|
||||
<ul>
|
||||
{{ range .Children.ByWeight }}
|
||||
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
{{ range .Children }}
|
||||
{{ $column := printf "%s" .Post }}
|
||||
{{ if eq $column "4" }}
|
||||
<h5>{{ .Name }}</code></h5>
|
||||
{{ if .HasChildren }}
|
||||
<ul>
|
||||
{{ range .Children.ByWeight }}
|
||||
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
{{ else }}
|
||||
<ul class="dropdown-menu">
|
||||
{{ range .Children.ByWeight }}
|
||||
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ else }}
|
||||
<li class="dropdown {{ $active }}">
|
||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<!--/.nav-collapse -->
|
||||
|
||||
<div class="collapse clearfix" id="search">
|
||||
<form class="navbar-form" role="search">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" placeholder="Search">
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" class="btn btn-template-main"><i class="fas fa-search"></i></button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!--/.nav-collapse -->
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- *** NAVBAR END ***-->
|
||||
12
themes/hugo-universal-theme/layouts/partials/page.html
Normal file
12
themes/hugo-universal-theme/layouts/partials/page.html
Normal file
@ -0,0 +1,12 @@
|
||||
<div class="container" role="main">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
{{ .Content }}
|
||||
{{ if .Site.Config.Services.Disqus.Shortname }}
|
||||
<div class="disqus-comments">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -0,0 +1,76 @@
|
||||
{{ if isset .Site.Params "recent_posts" }}
|
||||
{{ if .Site.Params.recent_posts.enable }}
|
||||
<section class="bar background-white no-mb">
|
||||
<div class="container">
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="heading text-center">
|
||||
<h2>{{ .Site.Params.recent_posts.title | markdownify }}</h2>
|
||||
</div>
|
||||
|
||||
<p class="lead">
|
||||
{{ .Site.Params.recent_posts.subtitle | markdownify }}
|
||||
</p>
|
||||
|
||||
<!-- *** BLOG HOMEPAGE *** -->
|
||||
|
||||
<div class="row">
|
||||
{{ $posts := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }}
|
||||
{{ range first 4 $posts.Pages }}
|
||||
<div class="col-md-3 col-sm-6">
|
||||
<div class="box-image-text blog">
|
||||
<div class="top">
|
||||
<div class="image" style="overflow:hidden">
|
||||
{{ if isset .Params "banner" }}
|
||||
<img src="{{ .Params.banner | relURL }}" class="img-responsive" alt="" />
|
||||
{{ else }}
|
||||
<img src="{{ "img/placeholder.png" | relURL }}" class="img-responsive" alt="" />
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="bg"></div>
|
||||
<div class="text">
|
||||
<p class="buttons">
|
||||
<a href="{{ .Permalink }}" class="btn btn-template-transparent-primary"><i class="fas fa-link"></i> {{ i18n "readMore" }}</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
|
||||
<p class="author-category">
|
||||
{{ if isset .Params "authors" }}
|
||||
{{ i18n "authorBy" }} {{ range $index, $author := .Params.authors }}{{ if $index }}, {{ end }}<a href="{{ (printf "%s/%s" ("authors" | relLangURL) ($author | urlize)) }}">{{ $author }}</a>{{ end }}
|
||||
{{ end }}
|
||||
{{ if .Params.date }}
|
||||
{{ $createdAt := .Date.Format .Site.Params.date_format }}
|
||||
{{ range $index, $month := slice "January" "February" "March" "April" "May" "June" "July" "August" "September" "October" "November" "December" }}
|
||||
{{ $createdAt = replace $createdAt $month (i18n $month) }}
|
||||
{{ end }}
|
||||
{{ i18n "publishedOn" }} {{ $createdAt }}
|
||||
{{ end }}
|
||||
</p>
|
||||
{{ if not .Site.Params.recent_posts.hide_summary }}
|
||||
<p class="intro">{{ .Summary }}</p>
|
||||
<p class="read-more">
|
||||
<a href="{{ .Permalink }}" class="btn btn-template-main">{{ i18n "continueReading" }}</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-image-text -->
|
||||
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
|
||||
<!-- *** BLOG HOMEPAGE END *** -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.container -->
|
||||
</section>
|
||||
<!-- /.bar -->
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
20
themes/hugo-universal-theme/layouts/partials/scripts.html
Normal file
20
themes/hugo-universal-theme/layouts/partials/scripts.html
Normal file
@ -0,0 +1,20 @@
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
<script src="//code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
|
||||
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
|
||||
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/waypoints/4.0.1/jquery.waypoints.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/Counter-Up/1.0/jquery.counterup.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-parallax/1.1.3/jquery-parallax.js"></script>
|
||||
{{ if and .Site.Params.enableGoogleMaps .Site.Params.googleMapsApiKey }}
|
||||
<script src="//maps.googleapis.com/maps/api/js?key={{.Site.Params.googleMapsApiKey}}&v=3.exp"></script>
|
||||
<script src="{{ "js/hpneo.gmaps.js" | relURL }}"></script>
|
||||
<script src="{{ "js/gmaps.init.js" | relURL }}"></script>
|
||||
{{ end }}
|
||||
{{ if and .Site.Params.enableRecaptchaInContactForm .Site.Params.googleRecaptchaKey }}
|
||||
<script src="//www.google.com/recaptcha/api.js" async defer></script>
|
||||
{{ end }}
|
||||
<script src="{{ "js/front.js" | relURL }}"></script>
|
||||
|
||||
<!-- owl carousel -->
|
||||
<script src="{{ "js/owl.carousel.min.js" | relURL }}"></script>
|
||||
28
themes/hugo-universal-theme/layouts/partials/see_more.html
Normal file
28
themes/hugo-universal-theme/layouts/partials/see_more.html
Normal file
@ -0,0 +1,28 @@
|
||||
{{ if isset .Site.Params "see_more" }}
|
||||
{{ if .Site.Params.see_more.enable }}
|
||||
<section class="bar background-image-fixed-2 no-mb color-white text-center">
|
||||
<div class="dark-mask"></div>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="icon icon-lg"><i class="{{ .Site.Params.see_more.icon }}"></i>
|
||||
</div>
|
||||
<h3 class="text-uppercase">{{ .Site.Params.see_more.title | markdownify }}</h3>
|
||||
<p class="lead">{{ .Site.Params.see_more.subtitle | markdownify }}</p>
|
||||
<p class="text-center">
|
||||
{{ with .Site.Params.see_more.link_url }}
|
||||
<a href="{{ . }}" class="btn btn-template-transparent-black btn-lg">
|
||||
{{ end }}
|
||||
{{ with .Site.Params.see_more.link_text }}
|
||||
{{ . | markdownify }}
|
||||
{{ end }}
|
||||
{{ with .Site.Params.see_more.link_url }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
@ -0,0 +1,5 @@
|
||||
{{ partial "widgets/search.html" . }}
|
||||
|
||||
{{ partial "widgets/categories.html" . }}
|
||||
|
||||
{{ partial "widgets/tags.html" . }}
|
||||
@ -0,0 +1,55 @@
|
||||
{{ if isset .Site.Params "testimonials" }}
|
||||
{{ if .Site.Params.testimonials.enable }}
|
||||
{{ if isset .Site.Data "testimonials" }}
|
||||
{{ if gt (len .Site.Data.testimonials) 0 }}
|
||||
<section class="bar background-pentagon no-mb">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="heading text-center">
|
||||
<h2>{{ .Site.Params.testimonials.title }}</h2>
|
||||
</div>
|
||||
|
||||
<p class="lead">
|
||||
{{ .Site.Params.testimonials.subtitle | markdownify }}
|
||||
</p>
|
||||
|
||||
<!-- *** TESTIMONIALS CAROUSEL *** -->
|
||||
|
||||
<ul class="owl-carousel testimonials same-height-row"
|
||||
data-items="{{ default 4 .Site.Params.CarouselTestimonials.items }}"
|
||||
data-autoplay="{{ default false .Site.Params.CarouselTestimonials.auto_play }}"
|
||||
data-slide-speed="{{ default 2000 .Site.Params.CarouselTestimonials.slide_speed }}"
|
||||
data-pagination-speed="{{ default 1000 .Site.Params.CarouselTestimonials.pagination_speed }}">
|
||||
{{ range .Site.Data.testimonials }}
|
||||
<li class="item">
|
||||
<div class="testimonial same-height-always">
|
||||
<div class="text">
|
||||
<p>{{ .text | markdownify }}</p>
|
||||
</div>
|
||||
<div class="bottom">
|
||||
<div class="icon"><i class="fas fa-quote-left"></i>
|
||||
</div>
|
||||
<div class="name-picture">
|
||||
<img class="" alt="" src="{{ .avatar | absURL }}">
|
||||
<h5>{{ .name }}</h5>
|
||||
<p>{{ .position }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<!-- /.owl-carousel -->
|
||||
|
||||
<!-- *** TESTIMONIALS CAROUSEL END *** -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.bar -->
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
20
themes/hugo-universal-theme/layouts/partials/top.html
Normal file
20
themes/hugo-universal-theme/layouts/partials/top.html
Normal file
@ -0,0 +1,20 @@
|
||||
{{ if .Site.Params.topbar.enable }}
|
||||
<header>
|
||||
<div id="top">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xs-5">
|
||||
{{ .Site.Params.topbar.text | safeHTML }}
|
||||
</div>
|
||||
<div class="col-xs-7">
|
||||
<div class="social">
|
||||
{{ range .Site.Menus.topbar.ByWeight }}
|
||||
<a href="{{ .URL | safeURL }}" target="_blank" style="opacity: 1;">{{ .Pre }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
{{ end }}
|
||||
@ -0,0 +1,24 @@
|
||||
{{ if .Site.Params.widgets.categories }}
|
||||
{{ if isset .Site.Taxonomies "categories" }}
|
||||
{{ if not (eq (len .Site.Taxonomies.categories) 0) }}
|
||||
<div class="panel panel-default sidebar-menu">
|
||||
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">{{ i18n "categoriesTitle" }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<ul class="nav nav-pills nav-stacked">
|
||||
{{ $current := . }}
|
||||
{{ range $name, $items := .Site.Taxonomies.categories }}
|
||||
<li {{ if eq $current.RelPermalink ($name | urlize | lower | printf "/categories/%s/") }}class="active"{{ end }}>
|
||||
<a href="{{ "categories/" | relLangURL }}{{ $name | urlize | lower }}">{{ $name | upper }} ({{ len $items }})</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
@ -0,0 +1,22 @@
|
||||
{{ if isset .Site.Params.widgets "search" }}
|
||||
{{ if .Site.Params.widgets.search }}
|
||||
<div class="panel panel-default sidebar-menu">
|
||||
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">{{ i18n "searchTitle" }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<form action="//google.com/search" method="get" accept-charset="UTF-8" role="search">
|
||||
<div class="input-group">
|
||||
<input type="search" name="q" class="form-control" placeholder="{{ i18n "searchTitle" }}" />
|
||||
<input type="hidden" name="sitesearch" value="{{ "/" | absURL }}" />
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" class="btn btn-template-main"><i class="fas fa-search"></i></button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
@ -0,0 +1,24 @@
|
||||
{{ if .Site.Params.widgets.tags }}
|
||||
{{ if isset .Site.Taxonomies "tags" }}
|
||||
{{ if not (eq (len .Site.Taxonomies.tags) 0) }}
|
||||
<div class="panel sidebar-menu">
|
||||
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">{{ i18n "tagsTitle" }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<ul class="tag-cloud">
|
||||
{{ $current := . }}
|
||||
{{ range $name, $items := .Site.Taxonomies.tags }}
|
||||
<li {{ if eq $current.RelPermalink (printf "%s/%s/" ("tags" | relLangURL) ($name | urlize | lower)) }}class="active"{{ end }}>
|
||||
<a href="{{ "tags/" | relLangURL }}{{ $name | urlize | lower }}"><i class="fas fa-tags"></i> {{ $name }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user