Browse Source

rejig layout files

tags/v1.0.0
Stefano Chiodino 6 years ago
parent
commit
63b1f6fd35

+ 12
- 9
layouts/_default/baseof.html View File

@@ -1,11 +1,14 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content">
<html class="no-js" lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
{{- partial "head.html" . -}}

{{"<!-- body start -->" | safeHTML}}

<body id="body" data-spy="scroll" data-target=".navbar" data-offset="50">
<div id="content">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>
</div>
{{- partial "footer.html" . -}}
</body>

</html>

+ 2
- 29
layouts/index.html View File

@@ -1,31 +1,4 @@
{{ partial "header.html" . }}
{{ partial "preloader.html" . }}
{{ partial "hero-area.html" . }}
{{ define "main" }}

{{ partial "navigation.html" . }}

{{ partial "about.html" . }}

{{ partial "cta.html" . }}

{{ partial "service.html" . }}
{{ partial "skill.html" . }}

{{ partial "portfolio.html" . }}

{{ partial "counter.html" . }}

{{ partial "team.html" . }}
{{ partial "pricing.html" . }}

{{ partial "testimonial.html" . }}

{{ partial "blog.html" . }}
{{ partial "contact.html" . }}

{{ partial "footer.html" . }}
{{ end }}

+ 22
- 25
layouts/partials/footer.html View File

@@ -32,28 +32,25 @@

{{"<!-- Essential Scripts -->" | safeHTML}}
{{"<!-- Main jQuery -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/jquery/dist/jquery.min.js" | absURL}}"></script>
{{"<!-- Bootstrap 3.1 -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/bootstrap/dist/js/bootstrap.min.js" | absURL}}"></script>
{{"<!-- Slick Carousel -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/slick-carousel/slick/slick.min.js" | absURL}}"></script>
{{"<!-- Portfolio Filtering -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/mixitup/mixitup.min.js" | absURL}}"></script>
{{"<!-- Smooth Scroll -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/smooth-scroll/dist/js/smooth-scroll.min.js" | absURL}}"></script>
{{"<!-- Magnific popup -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/magnific-popup/dist/jquery.magnific-popup.min.js" | absURL}}"></script>
{{"<!-- Google Map API -->" | safeHTML}}
<script type="text/javascript" src="{{ .Site.Params.gmapAPI | absURL }}"></script>
{{"<!-- Sticky Nav -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/Sticky/jquery.sticky.js" | absURL}}"></script>
{{"<!-- Number Counter Script -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/count-to/jquery.countTo.js" | absURL}}"></script>
{{"<!-- wow.min Script -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/wow/dist/wow.min.js" | absURL}}"></script>
{{"<!-- Custom js -->" | safeHTML}}
<script type="text/javascript" src="{{ "js/script.js" | absURL}}"></script>
</body>
</html>
{{"<!-- Main jQuery -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/jquery/dist/jquery.min.js" | absURL}}"></script>
{{"<!-- Bootstrap 3.1 -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/bootstrap/dist/js/bootstrap.min.js" | absURL}}"></script>
{{"<!-- Slick Carousel -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/slick-carousel/slick/slick.min.js" | absURL}}"></script>
{{"<!-- Portfolio Filtering -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/mixitup/mixitup.min.js" | absURL}}"></script>
{{"<!-- Smooth Scroll -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/smooth-scroll/dist/js/smooth-scroll.min.js" | absURL}}"></script>
{{"<!-- Magnific popup -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/magnific-popup/dist/jquery.magnific-popup.min.js" | absURL}}"></script>
{{"<!-- Google Map API -->" | safeHTML}}
<script type="text/javascript" src="{{ .Site.Params.gmapAPI | absURL }}"></script>
{{"<!-- Sticky Nav -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/Sticky/jquery.sticky.js" | absURL}}"></script>
{{"<!-- Number Counter Script -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/count-to/jquery.countTo.js" | absURL}}"></script>
{{"<!-- wow.min Script -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/wow/dist/wow.min.js" | absURL}}"></script>
{{"<!-- Custom js -->" | safeHTML}}
<script type="text/javascript" src="{{ "js/script.js" | absURL}}"></script>

+ 34
- 0
layouts/partials/head.html View File

@@ -0,0 +1,34 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}">
<meta name="author" content="{{ $.Site.Params.author }}">

{{ "<!-- Mobile Specific Meta -->" | safeHTML }}
<meta name="viewport" content="width=device-width, initial-scale=1">
{{ .Hugo.Generator }}
<title> {{ .Title }} </title>
{{"<!-- Favicon -->" |safeHTML}}
<link rel="shortcut icon" type="image/x-icon" href="{{ "images/favicon.ico" | absURL }}"/>
{{"<!-- CSS -->"|safeHTML}}
{{"<!-- Fontawesome Icon font -->"|safeHTML}}
<link rel="stylesheet" href="{{"plugins/themefisher-font/style.css" | absURL}}">
{{"<!-- bootstrap.min css -->"|safeHTML}}
<link rel="stylesheet" href="{{"plugins/bootstrap/dist/css/bootstrap.min.css"|absURL}}">
{{"<!-- Animate.css -->"|safeHTML}}
<link rel="stylesheet" href="{{"plugins/animate-css/animate.css"|absURL}}">
{{"<!-- Magnific popup css -->"|safeHTML}}
<link rel="stylesheet" href="{{"plugins/magnific-popup/dist/magnific-popup.css"|absURL}}">
{{"<!-- Slick Carousel -->"|safeHTML}}
<link rel="stylesheet" href="{{"plugins/slick-carousel/slick/slick.css"|absURL}}">
<link rel="stylesheet" href="{{"plugins/slick-carousel/slick/slick-theme.css"|absURL}}">
{{"<!-- Main Stylesheet -->"|safeHTML}}
<link rel="stylesheet" href="{{"css/style.css"|absURL}}">
{{ "<!-- Custom CSS -->" | safeHTML }}
{{ range .Site.Params.custom_css }}
<link rel="stylesheet" href="{{ . | absURL }}">
{{ end }}

</head>

+ 0
- 38
layouts/partials/header.html View File

@@ -1,38 +0,0 @@
<!DOCTYPE html>
<html class="no-js" lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}">
<meta name="author" content="{{ $.Site.Params.author }}">
{{ "<!-- Mobile Specific Meta -->" | safeHTML }}
<meta name="viewport" content="width=device-width, initial-scale=1">
{{ .Hugo.Generator }}
<title> {{ .Title }} </title>
{{"<!-- Favicon -->" |safeHTML}}
<link rel="shortcut icon" type="image/x-icon" href="{{ "images/favicon.ico" | absURL }}"/>
{{"<!-- CSS -->"|safeHTML}}
{{"<!-- Fontawesome Icon font -->"|safeHTML}}
<link rel="stylesheet" href="{{"plugins/themefisher-font/style.css" | absURL}}">
{{"<!-- bootstrap.min css -->"|safeHTML}}
<link rel="stylesheet" href="{{"plugins/bootstrap/dist/css/bootstrap.min.css"|absURL}}">
{{"<!-- Animate.css -->"|safeHTML}}
<link rel="stylesheet" href="{{"plugins/animate-css/animate.css"|absURL}}">
{{"<!-- Magnific popup css -->"|safeHTML}}
<link rel="stylesheet" href="{{"plugins/magnific-popup/dist/magnific-popup.css"|absURL}}">
{{"<!-- Slick Carousel -->"|safeHTML}}
<link rel="stylesheet" href="{{"plugins/slick-carousel/slick/slick.css"|absURL}}">
<link rel="stylesheet" href="{{"plugins/slick-carousel/slick/slick-theme.css"|absURL}}">
{{"<!-- Main Stylesheet -->"|safeHTML}}
<link rel="stylesheet" href="{{"css/style.css"|absURL}}">
{{ "<!-- Custom CSS -->" | safeHTML }}
{{ range .Site.Params.custom_css }}
<link rel="stylesheet" href="{{ . | absURL }}">
{{ end }}

</head>
{{"<!-- body start -->" | safeHTML}}
<body id="body" data-spy="scroll" data-target=".navbar" data-offset="50"></body>

Loading…
Cancel
Save