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

github.com/marketempower/axiom.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJhaura Wachsman <jw@jhaurawachsman.com>2020-07-01 18:29:53 +0300
committerJhaura Wachsman <jw@jhaurawachsman.com>2020-07-01 18:29:53 +0300
commita60c34ead8db950ae1efa71068fb2cbdf028839b (patch)
treeb3e7d44d20345fd865eb592c0d8db984979b1241 /layouts
parent51afd295e502dcfab8da2b5c2b1d2d644345c9a1 (diff)
Add "chromeless" type and layout
Diffstat (limited to 'layouts')
-rwxr-xr-xlayouts/chromeless/baseof.html20
-rwxr-xr-xlayouts/chromeless/single.html5
2 files changed, 25 insertions, 0 deletions
diff --git a/layouts/chromeless/baseof.html b/layouts/chromeless/baseof.html
new file mode 100755
index 0000000..690da91
--- /dev/null
+++ b/layouts/chromeless/baseof.html
@@ -0,0 +1,20 @@
+{{- $langCode := .Site.LanguageCode | default "en-us" -}}
+<!doctype html>
+<html lang="{{ $langCode }}">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
+
+ <title>{{ block "title" . }}{{ with .Title }}{{ . }} : {{ end }}{{ .Site.Title }}{{ end }}</title>
+
+ {{- partial "styles-app" . }}
+ {{- partial "styles-type" . }}
+ {{- partial "scripts-head" . }}
+</head>
+<body>
+ <main class="chromeless-baseof">
+ {{- block "main" . }}{{ end }}
+ </main>
+ {{- partial "scripts-foot" . }}
+</body>
+</html>
diff --git a/layouts/chromeless/single.html b/layouts/chromeless/single.html
new file mode 100755
index 0000000..5861983
--- /dev/null
+++ b/layouts/chromeless/single.html
@@ -0,0 +1,5 @@
+{{ define "main" }}
+<div class="chromeless-single cdata">
+{{ .Content }}
+</div>
+{{ end }}