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:
authorDerek Severin <severinderek@gmail.com>2018-09-10 10:13:58 +0300
committerDerek Severin <severinderek@gmail.com>2018-09-10 10:13:58 +0300
commitea6fa8bbc08508cd145b618fa0fe75823805e0e6 (patch)
treee63ada6e970df8d9b86041c4c22cc33c6a6b3390 /layouts/_default
parent4dc67cffa49f060841d1e72f59a799883d0a6bba (diff)
First commit
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html47
-rw-r--r--layouts/_default/li.html8
-rw-r--r--layouts/_default/limage.html34
-rw-r--r--layouts/_default/list.html6
-rw-r--r--layouts/_default/single.html46
5 files changed, 141 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..6fa2314
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
+ <head>
+ {{ partial "head.html" . }}
+ </head>
+
+ <body id="page-top">
+ {{ block "header" . }}
+ <header>
+ {{ partial "nav.html" (dict "context" . "fixed" false) }}
+ {{ partial "pages/hero.html" . }}
+ </header>
+ {{ end }}
+
+ {{ block "body" . }}
+ <main id="list-content">
+ {{ block "sidebar" . }}
+ {{ partial "pages/sidebar.html" . }}
+ {{ end }}
+ <div class="list-page">
+ <div class="list-page-container">
+ <article class="list-page-content">
+ {{ block "title" . }}
+ {{ partial "pages/title.html" . }}
+ {{ end }}
+
+ {{ block "content" . }}{{ end }}
+
+ {{ block "lists" . }}
+ {{ partial "pages/lists.html" . }}
+ {{ end }}
+ </article>
+ </div>
+ </div>
+ </main>
+ {{ end }}
+
+ {{ block "footer" . }}
+ <footer>
+ {{ partial "footer.html" . }}
+ </footer>
+ {{ end }}
+ {{ block "tail" . }}
+ {{ partial "tail.html" . }}
+ {{ end }}
+ </body>
+</html>
diff --git a/layouts/_default/li.html b/layouts/_default/li.html
new file mode 100644
index 0000000..8532cec
--- /dev/null
+++ b/layouts/_default/li.html
@@ -0,0 +1,8 @@
+<li class="project-item">
+ <a href="{{.Permalink}}">{{ .Title }}</a>
+ {{ with .Params.subtitle }}
+ <p>
+ {{ . | markdownify }}
+ </p>
+ {{ end }}
+</li>
diff --git a/layouts/_default/limage.html b/layouts/_default/limage.html
new file mode 100644
index 0000000..c2ad958
--- /dev/null
+++ b/layouts/_default/limage.html
@@ -0,0 +1,34 @@
+<div class="col-lg-4 col-sm-6">
+ {{ $path := replace .Dir "\\" "/" }}
+ <a href="/{{ $path }}" class="project-box project-link">
+ {{ if .Params.small_image }}
+ {{ $image := .Resources.GetMatch .Params.small_image }}
+ {{ with $image }}
+ <img src="{{ .RelPermalink | relURL }}" class="img-responsive" alt="{{ .Name }}">
+ {{ end }}
+ {{ end }}
+
+ <div class="project-box-caption">
+ <div class="project-box-caption-content">
+ {{ with .Title }}
+ <div class="project-name">
+ {{ . }}
+ </div>
+ {{ end }}
+ {{ with .Params.subtitle }}
+ <div class="project-category">
+ {{ . }}
+ </div>
+ {{ end }}
+ {{ if .Params.startDate }}
+ <div class="project-date">
+ From {{ .Params.startDate }}
+ {{ with .Params.endDate }}
+ to {{ . }}
+ {{ end }}
+ </div>
+ {{ end }}
+ </div>
+ </div>
+ </a>
+</div>
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..dba9cb4
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,6 @@
+{{ define "content" }}
+ {{ with .Content}}
+ {{ . | markdownify }}
+ <hr>
+ {{ end }}
+{{ end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..8b606f5
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,46 @@
+{{ define "content" }}
+ {{ $logos := .Resources.Match "logos/*" }}
+ {{ if gt (len $logos) 0 }}
+ <ul class="logos-list" aria-hidden="true">
+ {{ range $logos }}
+ {{ if eq .ResourceType "image" }}
+ {{ $image := .Fit "64x64" }}
+ <li>
+ <figure>
+ <img class="logo" src="{{ $image.RelPermalink }}" alt="" title="{{ $image.Title }}">
+ </figure>
+ </li>
+ {{ end }}
+ {{ end }}
+ </ul>
+ {{ end }}
+
+ {{ with .Content}}
+ <div>
+ {{ . | markdownify }}
+ <hr>
+ </div>
+ {{ end }}
+
+ {{ $images := .Resources.Match "images/*" }}
+ {{ if gt (len $images) 0 }}
+ <ul class="images-list" aria-hidden="true">
+ {{ range $images }}
+ {{ if eq .ResourceType "image" }}
+ {{ $image := .Resize "512x" }}
+ <li>
+ <figure>
+ <img class="image" src="{{ $image.RelPermalink }}" alt="" title="{{ $image.Title }}">
+ {{ with $image.Params.copyright }}
+ <figcaption class="copyright">{{ . | markdownify }}</figcaption>
+ {{ end }}
+ </figure>
+ </li>
+ {{ end }}
+ {{ end }}
+ </ul>
+ {{ end }}
+{{ end }}
+
+{{ define "lists" }}
+{{ end }}