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

github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/sections/home.html')
-rw-r--r--layouts/partials/sections/home.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/layouts/partials/sections/home.html b/layouts/partials/sections/home.html
new file mode 100644
index 0000000..7d1a9f3
--- /dev/null
+++ b/layouts/partials/sections/home.html
@@ -0,0 +1,30 @@
+{{ "<!-- HOME -->" | safeHTML }}
+{{ with .Site.Data.home }}
+ <section id="home"
+ {{ with .background }}
+ style="background-image: url('{{ (printf "images/%s" .) | relURL }}');"
+ {{ end }}
+ >
+ <div class="header-content">
+ <div class="header-content-inner">
+ {{ with .title }}
+ <h1>{{ . | markdownify }}</h1>
+ {{ end }}
+ {{ with .subtitle }}
+ <h2>{{ . | markdownify }}</h2>
+ {{ end }}
+ {{ if .title }}
+ <hr class="primary">
+ {{ end }}
+ {{ with .text }}
+ <p>{{ . | markdownify }}</p>
+ {{ end }}
+ {{ with .button_text }}
+ <a href="#about" class="btn btn-primary page-scroll">
+ {{ . }}<br>
+ </a>
+ {{ end }}
+ </div>
+ </div>
+ </section>
+{{ end }}