Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/themefisher/bigspring-hugo-startup-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsomratpro <abdulmonnafsomrat@gmail.com>2021-03-14 07:02:38 +0300
committersomratpro <abdulmonnafsomrat@gmail.com>2021-03-14 07:02:38 +0300
commit16050b6d841c274ab4d7257167ac45e6086ea828 (patch)
tree57fa15cf394b441e902a93917c8c001be2793ce5 /layouts
parentb92f3fa1832888d7a2f7abb77ee0ff8d43145692 (diff)
modified config and homepage
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.html20
-rw-r--r--layouts/partials/head.html2
2 files changed, 10 insertions, 12 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 68b3c6f..19acca8 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,9 +1,7 @@
{{ define "main" }}
-{{ $content := (index .Site.Data .Site.Language.Lang) }}
-
<!-- banner -->
-{{ with $content.homepage.banner }}
+{{ with .Params.banner }}
<section class="banner">
<div class="container">
<div class="row">
@@ -25,8 +23,8 @@
<!-- /banner -->
<!-- feature -->
-{{ if $content.homepage.feature.enable }}
-{{ with $content.homepage.feature }}
+{{ with .Params.feature }}
+{{ if .enable }}
<section class="section bg-light">
<div class="container">
<div class="row justify-content-center">
@@ -50,8 +48,8 @@
<!-- /feature -->
<!-- service -->
-{{ if $content.homepage.service.enable }}
-{{ with $content.homepage.service }}
+{{ with .Params.service }}
+{{ if .enable }}
{{ range $i,$p := .service_item }}
{{if modBool $i 2}}
<section class="section">
@@ -106,8 +104,8 @@
<!-- /service -->
<!-- screenshot -->
-{{ if $content.homepage.screenshot.enable }}
-{{ with $content.homepage.screenshot }}
+{{ with .Params.screenshot }}
+{{ if .enable }}
<section class="section pb-0">
<div class="container">
<div class="row">
@@ -123,8 +121,8 @@
<!-- /screenshot -->
<!-- call to action -->
-{{ if $content.homepage.call_to_action.enable }}
-{{ with $content.homepage.call_to_action }}
+{{ with .Params.call_to_action }}
+{{ if .enable }}
<section class="section">
<div class="container section shadow rounded-lg px-4">
<div class="row align-items-center justify-content-center text-center text-md-left">
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index c7342e1..56ba41e 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,6 +1,6 @@
<head>
<meta charset="utf-8">
- <title>{{ .Title }}</title>
+ <title>{{with .Title}}{{.}}{{else}}{{site.Title}}{{end}}</title>
{{ "<!-- mobile responsive meta -->" | safeHTML }}
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">