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/skills.html')
-rw-r--r--layouts/partials/sections/skills.html69
1 files changed, 69 insertions, 0 deletions
diff --git a/layouts/partials/sections/skills.html b/layouts/partials/sections/skills.html
new file mode 100644
index 0000000..0770d11
--- /dev/null
+++ b/layouts/partials/sections/skills.html
@@ -0,0 +1,69 @@
+{{ "<!-- SKILLS -->" | safeHTML }}
+{{ $data := .Site.Data.skills }}
+<section class="section" id="skills">
+ {{ with $data.title }}
+ <div class="container-fluid">
+ <div class="row">
+ <div class="text-center">
+ <h2 class="section-heading">{{ . }}</h2>
+ <hr class="primary">
+ </div>
+ </div>
+ </div>
+ {{ end }}
+
+ <div class="container-fluid">
+ <div class="row">
+ <div class="col-lg-6 col-lg-offset-1 text-primary">
+ <p>{{ $data.text | markdownify }}</p>
+ </div>
+ {{ with $data.download }}
+ <div class="col-lg-4 col-lg-offset-8 text-center">
+ <a href="/files/{{ .filename }}" download class="btn btn-primary btn-xl">
+ {{ with .button_text }}
+ {{ . }}
+ {{ end }}
+ {{ if .icon }}
+ {{ $pack := or .icon_pack "fa" }}
+ <i class="{{ $pack }} {{ .icon }} wow bounceIn"></i>
+ {{ end }}
+ </a>
+ </div>
+ {{ end }}
+ </div>
+
+ {{/* Tags & Categories */}}
+ {{ $project_sections := .Site.Params.projects.categories }}
+ <div class="row">
+ <div class="col-lg-5 col-lg-offset-1">
+ <div class="skills-container">
+ {{ $label := or $data.tags_label "TAGS" }}
+ <h4>{{ $label }}</h4>
+ <div class="tags">
+ {{ range $project_sections }}
+ {{ with $.Site.GetPage "section" . }}
+ {{ $params := (dict "type" "tags" "context" . "scratch" .Scratch "removeDuplicates" true) }}
+ {{ partial "utils/list-keywords.html" $params }}
+ {{ end }}
+ {{ end }}
+ </div>
+ </div>
+ </div>
+
+ <div class="col-lg-5">
+ <div class="skills-container">
+ {{ $label := or $data.categories_label "CATEGORIES" }}
+ <h4>{{ $label }}</h4>
+ <div class="tags">
+ {{ range $project_sections }}
+ {{ with $.Site.GetPage "section" . }}
+ {{ $params := (dict "type" "categories" "context" . "scratch" .Scratch "removeDuplicates" true) }}
+ {{ partial "utils/list-keywords.html" $params }}
+ {{ end }}
+ {{ end }}
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+</section>