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

github.com/EmielH/hallo-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel Hollander <EmielH@users.noreply.github.com>2018-10-28 16:12:32 +0300
committerEmiel Hollander <EmielH@users.noreply.github.com>2018-10-28 16:12:32 +0300
commit3bfa83334855d04218f4df61001088c23646b1f4 (patch)
tree20ec37525dadec13939ffd78baf2dfe747c5a3a9 /layouts
Initial commit
Diffstat (limited to 'layouts')
-rw-r--r--layouts/404.html0
-rw-r--r--layouts/_default/baseof.html9
-rw-r--r--layouts/index.html22
-rw-r--r--layouts/partials/footer.html6
-rw-r--r--layouts/partials/head.html35
-rw-r--r--layouts/partials/header.html0
-rw-r--r--layouts/partials/introduction.html1
7 files changed, 73 insertions, 0 deletions
diff --git a/layouts/404.html b/layouts/404.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/404.html
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..ab3dc99
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html lang="{{ .Site.LanguageCode | default "en" }}">
+ {{- partial "head.html" . -}}
+ <body>
+ {{- partial "header.html" . -}}
+ {{- block "main" . }}{{- end }}
+ {{- partial "footer.html" . -}}
+ </body>
+</html>
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..652dfc4
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,22 @@
+{{ define "main" }}
+
+<main>
+ <div class="column left">
+ <img src="images/portrait.jpg" width="300" height="300" class="portrait" />
+ </div>
+ <div class="column right">
+ <h1>{{ i18n "hello" }}.</h1>
+ <h2>{{ i18n "i-am" }} {{ .Site.Author.name | default "Hallo" }}.</h2>
+ <p>{{- partial "introduction.html" . -}}</p>
+
+ <div class="links">
+ {{- range .Site.Params.links -}}
+ <a href="{{ .url }}" title="{{ .title }}">
+ <span class="{{ .iconset | default "fab" }} fa-{{ .icon }}"></span>
+ </a>
+ {{- end -}}
+ </div>
+ </div>
+</main>
+
+{{ end }} \ No newline at end of file
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..854ee37
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,6 @@
+<footer>
+ <div class="column"></div>
+ <div class="column">
+ {{ i18n "generator" | safeHTML }}
+ </div>
+</footer> \ No newline at end of file
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
new file mode 100644
index 0000000..503ba66
--- /dev/null
+++ b/layouts/partials/head.html
@@ -0,0 +1,35 @@
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ {{- if eq .URL "/" }}
+ <meta name="description" content="{{ .Site.Params.Description }}">
+ {{- else if .Description }}
+ <meta name="description" content="{{ .Description }}">
+ {{- end }}
+
+ <title>
+ {{- if eq .URL "/" }}
+ {{ .Site.Title }}
+ {{- else }}
+ {{ .Title }} &middot; {{ .Site.Title }}
+ {{- end }}
+ </title>
+
+ <!-- CSS -->
+ {{- $inServerMode := .Site.IsServer }}
+ {{- $cssTarget := "css/style.css" }}
+ {{- $cssOptions := cond ($inServerMode) (dict "targetPath" $cssTarget "enableSourceMap" true) (dict "targetPath" $cssTarget "outputStyle" "compressed") }}
+ {{- $style := resources.Get "scss/hallo.scss" | toCSS $cssOptions }}
+ <link rel="stylesheet" href="{{ $style.RelPermalink }}">
+
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,700">
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.2/css/all.css" integrity="sha384-/rXc/GQVaYpyDdyxK+ecHPVYJSN9bmVFBvjA/9eOB+pb3F2w2N6fc5qB9Ew5yIns" crossorigin="anonymous">
+
+ <!-- Favicon -->
+ <link rel="icon" type="image/png" sizes="32x32" href="{{ .Site.BaseURL }}images/favicon-32x32.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="{{ .Site.BaseURL }}images/favicon-16x16.png">
+ <link rel="apple-touch-icon" sizes="180x180" href="{{ .Site.BaseURL}}images/apple-touch-icon.png">
+
+ <!-- RSS -->
+ <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
+</head>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/partials/header.html
diff --git a/layouts/partials/introduction.html b/layouts/partials/introduction.html
new file mode 100644
index 0000000..830f078
--- /dev/null
+++ b/layouts/partials/introduction.html
@@ -0,0 +1 @@
+Hallo is a single-page Hugo theme for personal introductions. Add a portrait, an introduction, several links, and you're set. Create a partial called introduction.html on your own site to replace this standard introduction. Create a file called portrait.jpg in static/images to replace the standard portrait. \ No newline at end of file