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

github.com/jeremybise/twentynineteen-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Bise <jeremy.bise@thosegeeks.com>2019-04-15 18:41:30 +0300
committerJeremy Bise <jeremy.bise@thosegeeks.com>2019-04-15 18:41:30 +0300
commit87f96d48a1ce8565b03068291d354139564dbdb3 (patch)
tree551544b6d6050dbee241a42e5a9c831e8e9be7c1
parentc3dd45ff750021c2b3549cb6916db08522b3552e (diff)
some notes on differences in readme, single template entry header
-rw-r--r--README.md14
-rw-r--r--layouts/404.html0
-rw-r--r--layouts/_default/baseof.html10
-rw-r--r--layouts/_default/single.html6
-rw-r--r--layouts/partials/header.html10
-rw-r--r--layouts/partials/posts/post-list.html6
6 files changed, 31 insertions, 15 deletions
diff --git a/README.md b/README.md
index ed8ce9f..eac8a79 100644
--- a/README.md
+++ b/README.md
@@ -5,3 +5,17 @@ This is a port of the WordPress Twenty Nineteen theme to Hugo. It's a work in pr
## Installation Instructions
`git submodule whatever`
+
+## Highlights
+
+- Accent color configurable via config.toml
+- Featured image treatment using accent color works (maybe???)
+- Social menu in header actually renders the icon (maybe???)
+- Search via Fuse.js included
+- Google Analytics code configurable via config.toml
+
+## Differences from original theme
+
+- Comment related stuff has been omitted
+- Author related stuff has been omitted
+- The article lists show summaries rather than full content \ No newline at end of file
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
index 399e592..3a1dbe2 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -24,7 +24,13 @@
<div id="page" class="site">
<a class="skip-link screen-reader-text" href="#content">Skip to content</a>
- {{ partial "header" . }}
+ <header id="masthead" class="site-header">
+ <div class="site-branding-container">
+ {{ partial "header/site-branding" . }}
+ </div><!-- .layout-wrap -->
+
+ {{ block "entry_header" . }}{{ end }}
+ </header><!-- #masthead -->
<div id="content" class="site-content">
<section id="primary" class="content-area">
@@ -34,7 +40,7 @@
</section>
</div>
- {{ partial "footer" .}}
+ {{ partial "footer" . }}
</div>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 14b6db7..fcc6b05 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,3 +1,9 @@
+{{ define "entry_header" }}
+ <div class="site-featured-image">
+ Entry header...
+ </div>
+{{ end }}
+
{{ define "main" }}
<article class="post entry">
<header class="entry-header">
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
deleted file mode 100644
index cff7902..0000000
--- a/layouts/partials/header.html
+++ /dev/null
@@ -1,10 +0,0 @@
-<header id="masthead" class="site-header">
-
- <div class="site-branding-container">
- {{ partial "header/site-branding" . }}
- </div><!-- .layout-wrap -->
-
- <div class="site-featured-image">
- {{ partial "header/entry-header" . }}
- </div>
-</header><!-- #masthead --> \ No newline at end of file
diff --git a/layouts/partials/posts/post-list.html b/layouts/partials/posts/post-list.html
index 5be7757..44e1582 100644
--- a/layouts/partials/posts/post-list.html
+++ b/layouts/partials/posts/post-list.html
@@ -1,9 +1,9 @@
{{ range where .Pages.ByPublishDate.Reverse "Section" "posts" }}
<article class="post entry">
<header class="entry-header">
- <h2 class="entry-title">
- <a href="{{ .RelPermalink }}" rel="bookmark">{{.Title}}</a>
- </h2>
+ <h2 class="entry-title">
+ <a href="{{ .RelPermalink }}" rel="bookmark">{{.Title}}</a>
+ </h2>
</header>
<!-- TODO: add figure for featured image -->