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

github.com/siegerts/hugo-theme-basic.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsiegerts <stephen.siegert@gmail.com>2019-02-11 01:25:16 +0300
committersiegerts <stephen.siegert@gmail.com>2019-02-11 01:25:16 +0300
commitf2ebdd4efcf38dfbc6c11b34a91d129f688f8331 (patch)
treef11317eecbbf2a207248449cda7c0d7227b9b8f4
parent84246e6bb8a737e03c45813a050af8ef6acc8fac (diff)
add theme meta, update templates with prettier pragma
-rw-r--r--.prettierrc.js3
-rw-r--r--layouts/_default/baseof.html14
-rw-r--r--layouts/_default/list.html12
-rw-r--r--layouts/_default/single.html6
-rw-r--r--layouts/page/single.html25
-rw-r--r--layouts/partials/footer.html4
-rw-r--r--layouts/project/single.html25
-rw-r--r--layouts/section/project.html0
-rw-r--r--theme.toml6
9 files changed, 72 insertions, 23 deletions
diff --git a/.prettierrc.js b/.prettierrc.js
new file mode 100644
index 0000000..8257a5e
--- /dev/null
+++ b/.prettierrc.js
@@ -0,0 +1,3 @@
+module.exports = {
+ disableLanguages: ["html"]
+};
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 5f8e2ec..f32d502 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,11 +1,9 @@
<!DOCTYPE html>
<html>
- {{- partial "head.html" . -}}
- <body>
- {{- partial "header.html" . -}}
- <div id="content">
- {{- block "main" . }}{{- end }}
- </div>
- {{- partial "footer.html" . -}}
- </body>
+ {{- partial "head.html" . -}}
+ <body>
+ {{- partial "header.html" . -}}
+ <div id="content">{{- block "main" . }}{{ -end }}</div>
+ {{- partial "footer.html" . -}}
+ </body>
</html>
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 1f48c85..787ca12 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -11,9 +11,9 @@
>
<section id="main" class="mt5">
<div>
- <!-- <h1 id="title">{{ .Title }}</h1> -->
- <ul id="list" class="pl0"></ul>
- {{ range.Data.Pages }}
+ <ul id="list" class="pl0">
+ <!-- prettier-ignore -->
+ {{ range.Data.Pages.ByPublishDate }}
<li class="list pl0 lh-copy">
<a
class="f3 b dib pa1 black no-underline"
@@ -22,11 +22,11 @@
>
<span class="f6 gray">{{ .Date.Format "January 2, 2006" }}</span>
</li>
- {{ end }}
- </ul>
+ <!-- prettier-ignore -->
+ {{ end }}
+ </ul>
</div>
</section>
- <aside id="meta"></aside>
{{ partial "footer.html" . }}
</body>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 64957a4..2c5911a 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,11 +1,11 @@
{{ partial "header.html" . }}
<body
lang="{{ .Site.LanguageCode }}"
- class="sans-serif w-90 w-60-ns center center-ns mv2 mv5-ns"
+ class="sans-serif w-90 w-80-m w-60-ns center mv2 mv5-ns"
itemscope
itemtype="http://schema.org/Article"
>
- {{ $baseurl := .Site.BaseURL }}
+
<span class="b">/ </span>
<a href="{{ .Site.BaseURL }}" class="b bb bw1 pb1 no-underline black">{{ .Site.Title }}</a>
<span class="b"> / </span>
@@ -18,8 +18,6 @@
<article itemprop="articleBody" id="content" class="w-90 lh-copy">
{{ .Content }}
</article>
-
-
<span class="f6 gray mt3" title="Lastmod: {{ .Lastmod.Format "January 2, 2006" }}. Published at: {{ .PublishDate.Format "2006-01-02" }}.">
{{ if ne .Lastmod .PublishDate }}
diff --git a/layouts/page/single.html b/layouts/page/single.html
new file mode 100644
index 0000000..4800a03
--- /dev/null
+++ b/layouts/page/single.html
@@ -0,0 +1,25 @@
+{{ partial "header.html" . }}
+<body
+ lang="{{ .Site.LanguageCode }}"
+ class="sans-serif w-90 w-60-ns center center-ns mv2 mv5-ns"
+ itemscope
+ itemtype="http://schema.org/Article"
+>
+ {{ $baseurl := .Site.BaseURL }}
+ <span class="b">/ </span>
+ <a
+ href="{{ .Site.BaseURL }}"
+ class="b bb bw1 pb1 no-underline black"
+ >{{ .Site.Title }}</a
+ >
+
+ <section id="main" class="mt5">
+ <h1 itemprop="name" id="title">{{ .Title }}</h1>
+
+ <article itemprop="articleBody" id="content" class="w-90 lh-copy">
+ {{ .Content }}
+ </article>
+ </section>
+
+ {{ partial "footer.html" . }}
+</body>
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index abd583e..c425fec 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,7 +1,7 @@
<footer>
<div>
- <p>
-
+ <p class="f6 gray mt6 lh-copy">
+ {{ .Site.Copyright }}
</p>
</div>
</footer>
diff --git a/layouts/project/single.html b/layouts/project/single.html
new file mode 100644
index 0000000..4800a03
--- /dev/null
+++ b/layouts/project/single.html
@@ -0,0 +1,25 @@
+{{ partial "header.html" . }}
+<body
+ lang="{{ .Site.LanguageCode }}"
+ class="sans-serif w-90 w-60-ns center center-ns mv2 mv5-ns"
+ itemscope
+ itemtype="http://schema.org/Article"
+>
+ {{ $baseurl := .Site.BaseURL }}
+ <span class="b">/ </span>
+ <a
+ href="{{ .Site.BaseURL }}"
+ class="b bb bw1 pb1 no-underline black"
+ >{{ .Site.Title }}</a
+ >
+
+ <section id="main" class="mt5">
+ <h1 itemprop="name" id="title">{{ .Title }}</h1>
+
+ <article itemprop="articleBody" id="content" class="w-90 lh-copy">
+ {{ .Content }}
+ </article>
+ </section>
+
+ {{ partial "footer.html" . }}
+</body>
diff --git a/layouts/section/project.html b/layouts/section/project.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/section/project.html
diff --git a/theme.toml b/theme.toml
index 93f13bb..96a4817 100644
--- a/theme.toml
+++ b/theme.toml
@@ -6,13 +6,13 @@ license = "MIT"
licenselink = "https://github.com/siegerts/hugo-theme-basic/blob/master/LICENSE"
description = ""
homepage = "https://github.com/siegerts/hugo-theme-basic"
-tags = []
+tags = ["minimal", "tachyons", "blog", "syntax highlighting", "google analytics", "plain", "clean", "starter"]
features = []
min_version = "0.41"
[author]
- name = "S. Siegert"
- homepage = ""
+ name = "Stephen Siegert"
+ homepage = "https://github.com/siegerts/hugo-theme-basic"
# If porting an existing theme
[original]