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

github.com/fourtyone11/origin-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandomBloke <asleeppiano@outlook.com>2020-02-23 23:18:44 +0300
committerRandomBloke <asleeppiano@outlook.com>2020-02-23 23:18:44 +0300
commitb029228aba2615378097284f7755658e19ee08f6 (patch)
tree692847a79e2a2879ac5803817df87ef175af6895
parent3f7ceab4f21ab8c3e61e1e3429155b9b36188792 (diff)
v0.99
-rw-r--r--.gitignore3
-rw-r--r--.gitlab-ci.yml14
-rw-r--r--LICENSE2
-rw-r--r--assets/js/script.js76
-rw-r--r--assets/scss/_404.scss38
-rw-r--r--assets/scss/_button.scss25
-rw-r--r--assets/scss/_flex.scss11
-rw-r--r--assets/scss/_footer.scss7
-rw-r--r--assets/scss/_header.scss116
-rw-r--r--assets/scss/_list-header.scss46
-rw-r--r--assets/scss/_list.scss6
-rw-r--r--assets/scss/_mixins.scss8
-rw-r--r--assets/scss/_single.scss13
-rw-r--r--assets/scss/_spacing.scss11
-rw-r--r--assets/scss/style.scss7
-rw-r--r--exampleSite/_index.md4
-rw-r--r--exampleSite/about.md28
-rw-r--r--exampleSite/config.toml43
-rw-r--r--exampleSite/homepage/about.md7
-rw-r--r--exampleSite/homepage/index.md3
-rw-r--r--exampleSite/homepage/work.md7
-rw-r--r--exampleSite/post/01_origin-ghost-theme-preview.pngbin0 -> 69825 bytes
-rw-r--r--exampleSite/post/_index.md6
-rw-r--r--exampleSite/post/emoji-support.md48
-rw-r--r--exampleSite/post/markdown-syntax.md148
-rw-r--r--exampleSite/post/math-typesetting.mmark46
-rw-r--r--exampleSite/post/photo.webpbin0 -> 149403 bytes
-rw-r--r--exampleSite/post/photo2.webpbin0 -> 73873 bytes
-rw-r--r--exampleSite/post/placeholder-text.md58
-rw-r--r--exampleSite/post/rich-content.md43
-rw-r--r--exampleSite/resources/_gen/assets/scss/scss/style.scss_48b060fe05b0a273d182ef83c0605941.content1
-rw-r--r--exampleSite/resources/_gen/assets/scss/scss/style.scss_48b060fe05b0a273d182ef83c0605941.json1
-rw-r--r--exampleSite/web/_index.md5
-rw-r--r--layouts/404.html24
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/_default/list.html17
-rw-r--r--layouts/_default/single.html4
-rw-r--r--layouts/index.html3
-rw-r--r--layouts/partials/button.html5
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--layouts/partials/head.html29
-rw-r--r--layouts/partials/header.html103
-rw-r--r--layouts/partials/list-header.html9
-rw-r--r--layouts/partials/mobile-header-nav.html89
-rw-r--r--layouts/partials/post-footer.html10
-rw-r--r--layouts/partials/post-header.html107
-rw-r--r--theme.toml15
47 files changed, 1034 insertions, 216 deletions
diff --git a/.gitignore b/.gitignore
index 0b54f26..3c94510 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
-assets/node_modules/ \ No newline at end of file
+assets/node_modules/
+exampleSite/public/
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..665d6ac
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,14 @@
+image: registry.gitlab.com/pages/hugo:latest
+
+variables:
+ GIT_SUBMODULE_STRATEGY: recursive
+
+pages:
+ script:
+ - cd exampleSite
+ - hugo --gc --themesDir ../..
+ artifacts:
+ paths:
+ - exampleSite/public
+ only:
+ - master
diff --git a/LICENSE b/LICENSE
index faff36e..d42e77d 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2020 YOUR_NAME_HERE
+Copyright (c) 2020 Andrey Parfenov
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
diff --git a/assets/js/script.js b/assets/js/script.js
index 98bb8df..84c789e 100644
--- a/assets/js/script.js
+++ b/assets/js/script.js
@@ -1,29 +1,61 @@
-const navButton = document.querySelector('.mb-header__menu-btn')
-const headerNavMobile = document.querySelector('.mb-header-nav')
-const navCloseButton = document.querySelector('.mb-header-nav__close-btn')
-const headerNavListItems = document.querySelectorAll('.mb-header-nav-list__item')
+const burgerButton = document.querySelector(".mb-header__menu-btn");
+const headerNavMobile = document.querySelector(".mb-header-nav");
+const navCloseButton = document.querySelector(".mb-header-nav__close-btn");
+const headerNavListItems = document.querySelectorAll(
+ ".mb-header-nav-list__item"
+);
+const navigationButton = document.querySelector('.header-nav-list__nav-btn')
-navButton.addEventListener('click', () => {
- headerNavMobile.style.opacity = '0'
- headerNavMobile.classList.add('active')
- window.requestAnimationFrame(() => {
- headerNavMobile.style.opacity = '1'
- headerNavListItems.forEach((item, i) => {
- console.log(item)
+
+if(navigationButton) {
+ navigationButton.addEventListener('click', () => {
+ headerNavMobile.style.opacity = "0";
+ headerNavMobile.classList.add("active");
+ window.requestAnimationFrame(() => {
+ headerNavMobile.style.opacity = "1";
+ headerNavListItems.forEach((item, i) => {
+ setTimeout(() => {
+ item.style.opacity = 1;
+ }, 90 * i);
+ });
+ });
+ function closeHeaderNavHandler() {
+ headerNavMobile.style.opacity = "0";
setTimeout(() => {
- item.style.opacity = 1;
- }, 90 * i)
- })
+ headerNavListItems.forEach(item => {
+ item.style.opacity = 0;
+ });
+ headerNavMobile.classList.remove("active");
+ navCloseButton.removeEventListener("click", closeHeaderNavHandler);
+ }, 300);
+ }
+ navCloseButton.addEventListener("click", closeHeaderNavHandler);
})
+}
+
+if (burgerButton) {
+ burgerButton.addEventListener("click", () => {
+ headerNavMobile.style.opacity = "0";
+ headerNavMobile.classList.add("active");
+ window.requestAnimationFrame(() => {
+ headerNavMobile.style.opacity = "1";
+ headerNavListItems.forEach((item, i) => {
+ console.log(item);
+ setTimeout(() => {
+ item.style.opacity = 1;
+ }, 90 * i);
+ });
+ });
function closeHeaderNavHandler() {
- headerNavMobile.style.opacity = '0'
+ headerNavMobile.style.opacity = "0";
setTimeout(() => {
headerNavListItems.forEach(item => {
- item.style.opacity = 0
- })
- headerNavMobile.classList.remove('active')
- navCloseButton.removeEventListener('click', closeHeaderNavHandler)
- }, 300)
+ item.style.opacity = 0;
+ });
+ headerNavMobile.classList.remove("active");
+ navCloseButton.removeEventListener("click", closeHeaderNavHandler);
+ }, 300);
}
- navCloseButton.addEventListener('click', closeHeaderNavHandler)
-})
+ navCloseButton.addEventListener("click", closeHeaderNavHandler);
+ });
+}
diff --git a/assets/scss/_404.scss b/assets/scss/_404.scss
new file mode 100644
index 0000000..f2a8991
--- /dev/null
+++ b/assets/scss/_404.scss
@@ -0,0 +1,38 @@
+.not-found {
+ display: flex;
+ &__left {
+ flex: 1 1 100px;
+ margin-right: 1rem;
+ }
+ &__htext {
+ font-size: 2.5rem;
+ font-weight: bold;
+ margin-bottom: 1rem;
+ }
+ &__title {
+ font-size: 1.5rem;
+ font-weight: bold;
+ }
+ &__right {
+ flex: 2 1 auto;
+ }
+ &__post {
+ padding-left: 1rem;
+ border-left: 3px solid transparent;
+ &:hover {
+ border-left: 3px solid var(--color-border);
+ }
+ }
+ &__post:not(:last-of-type) {
+ margin-bottom: 1.5rem;
+ }
+ &__home-button {
+ display: inline-block;
+ padding: 1rem;
+ border: 1px solid var(--color-border);
+ &:hover {
+ border: 1px solid var(--color-border-dark);
+ background-color: var(--color-card-bg);
+ }
+ }
+}
diff --git a/assets/scss/_button.scss b/assets/scss/_button.scss
new file mode 100644
index 0000000..50d6b2d
--- /dev/null
+++ b/assets/scss/_button.scss
@@ -0,0 +1,25 @@
+.floating-button {
+ padding: 0;
+ background-color: var(--color-header-bg);
+ position: fixed;
+ bottom: 1rem;
+ right: 1rem;
+ width: 48px;
+ height: 48px;
+ border: 1px solid var(--color-border);
+ box-shadow: 5px 5px var(--color-boxshadow);
+ transition-property: box-shadow, transform;
+ transition-duration: 0.2s, 0.3s;
+ transition-timing-function: ease;
+ text-align: center;
+
+ &__link {
+ @include flex-center;
+ height: 100%;
+ }
+
+ &:hover {
+ transform: translate(4px, 4px);
+ box-shadow: 1px 1px var(--color-boxshadow);
+ }
+}
diff --git a/assets/scss/_flex.scss b/assets/scss/_flex.scss
index 2d37acb..14295f9 100644
--- a/assets/scss/_flex.scss
+++ b/assets/scss/_flex.scss
@@ -1,4 +1,15 @@
.flex {
+ &-1 {
+ flex: 1;
+ }
+ &-col{
+ display: flex;
+ flex-flow: column nowrap;
+ }
+ &-row {
+ display: flex;
+ flex-flow: row nowrap;
+ }
&-between{
display: flex;
justify-content: space-between;
diff --git a/assets/scss/_footer.scss b/assets/scss/_footer.scss
index c8edc95..329abce 100644
--- a/assets/scss/_footer.scss
+++ b/assets/scss/_footer.scss
@@ -14,7 +14,6 @@ footer {
background: var(--color-footer-bg);
width: 100%;
margin: 0 auto;
- box-shadow: 0px 0px 8px 0px var(--color-boxshadow);
@media (min-width: $screen-md) {
width: 80%;
}
@@ -24,3 +23,9 @@ footer {
align-items:center;
}
}
+.post-footer {
+ padding-right: calc(48px + 2rem);
+ @media (min-width: $screen-md) {
+ padding-right: 1%;
+ }
+}
diff --git a/assets/scss/_header.scss b/assets/scss/_header.scss
index 3bcc7f9..6e10a83 100644
--- a/assets/scss/_header.scss
+++ b/assets/scss/_header.scss
@@ -24,6 +24,13 @@ header {
flex-flow: row wrap;
justify-content: center;
align-items: center;
+
+ &--menu {
+ display: none;
+ @media (min-width: $screen-lg) {
+ display: flex;
+ }
+ }
&__item {
margin: 0.5rem;
}
@@ -34,6 +41,22 @@ header {
border-bottom: 2px solid black;
color: black;
}
+ &__nav-btn {
+ display: none;
+ padding: 3px 5px;
+ background: var(--color-text);
+ color: var(--color-text-light);
+ border: 1px solid var(--color-border-dark);
+ max-height: 30px;
+ cursor: pointer;
+ @media (min-width: $screen-lg) {
+ display: inline-block;
+ }
+ }
+ &__nav-btn:hover {
+ background: var(--color-text-light);
+ color: var(--color-text);
+ }
}
.header-nav.desktop {
@@ -43,16 +66,11 @@ header {
}
}
.header-nav {
- &__close-btn {
- fill: currentColor;
- &:hover .header-nav__svg-icon {
- color: gray;
- fill: gray;
- }
- }
+ display: flex;
}
.mb-header-nav {
transition: opacity 0.3s ease;
+ overflow: auto;
display: none;
position: fixed;
background: var(--color-bg);
@@ -63,6 +81,28 @@ header {
right: 0;
width: 100%;
height: 100vh;
+
+ &__wrapper {
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ }
+
+ &__container {
+ flex: 1;
+ text-align: center;
+ }
+
+ &__close-btn {
+ position: absolute;
+ top: 1rem;
+ right: 1rem;
+ fill: currentColor;
+ &:hover .mb-header-nav__svg-icon {
+ color: gray;
+ fill: gray;
+ }
+ }
&__title {
font-size: 2.5rem;
font-weight: 700;
@@ -87,44 +127,34 @@ header {
opacity: 0;
transition: opacity 0.3s ease;
font-size: 2.5rem;
- width: 60%;
margin: 1rem auto;
text-align: center;
-
- @media (min-width: $screen-md) {
- width: 50%;
- }
-
- & > a {
- display: block;
- position: relative;
- overflow: hidden;
- -webkit-text-stroke: 1px var(--color-text);
- -webkit-text-fill-color: transparent;
- &:hover {
- -webkit-text-stroke: 1px #333333;
- }
- &:before {
- z-index: -1;
- position: absolute;
- display: block;
- width: 0;
- content: "";
- height: 100%;
- background: var(--color-hover-extra);
- transition: width 0.3s ease;
- }
- &:hover:before {
- width: 100%;
- }
+ }
+ &__link {
+ text-transform: uppercase;
+ font-weight: bold;
+ position: relative;
+ display: inline-block;
+ -webkit-text-stroke: 1px var(--color-text);
+ color: transparent;
+ background: linear-gradient(90deg, var(--color-extra-2) 0%, var(--color-extra-2) 100%);
+ background-position: left;
+ background-size: 0%;
+ background-repeat: no-repeat;
+ transition: background-size 0.5s ease;
+ background-clip: text;
+ -webkit-background-clip: text;
+ &:hover {
+ background-size: 100%;
}
}
}
.mb-header__menu-btn {
+ flex: 0 0 1.5rem;
display: block;
- height: 24px;
- width: 24px;
+ height: 1.5rem;
+ width: 1.5rem;
padding: 0;
position: relative;
@@ -132,7 +162,7 @@ header {
transition: transform 0.2s ease;
display: inline-block;
position: absolute;
- left:0;
+ left: 0;
top: 3px;
width: 100%;
height: 2px;
@@ -143,7 +173,7 @@ header {
display: inline-block;
background: black;
position: absolute;
- left:0;
+ left: 0;
top: 12px;
width: 100%;
height: 2px;
@@ -153,19 +183,19 @@ header {
display: inline-block;
background: black;
position: absolute;
- left:0;
+ left: 0;
top: 21px;
width: 100%;
height: 2px;
}
- &:hover &-line:nth-child(1){
+ &:hover &-line:nth-child(1) {
transform: translate(-2px, -6px) rotate(2deg);
}
- &:hover &-line:nth-child(2){
+ &:hover &-line:nth-child(2) {
transform: translate(-2px, -2px) rotate(-2deg);
}
- &:hover &-line:nth-child(3){
+ &:hover &-line:nth-child(3) {
transform: translate(-2px, 6px) rotate(2deg);
}
diff --git a/assets/scss/_list-header.scss b/assets/scss/_list-header.scss
new file mode 100644
index 0000000..8fb54f0
--- /dev/null
+++ b/assets/scss/_list-header.scss
@@ -0,0 +1,46 @@
+.list-header {
+ overflow-x: hidden;
+ position: relative;
+ display: flex;
+ background: var(--color-extra);
+ padding: 2rem;
+ margin: 0 auto;
+ border: 1px solid var(--color-border);
+ box-shadow: 5px 5px var(--color-boxshadow);
+ transition-property: box-shadow, transform, background;
+ transition-duration: 0.2s, 0.3s, 0.3s;
+ transition-timing-function: ease;
+
+ @media (min-width: $screen-md) {
+ width: 80%;
+ }
+
+ &:hover {
+ background-color: var(--color-extra-2);
+ }
+
+ @for $i from 1 through 4 {
+ &:hover &__title-2:nth-of-type(#{$i}) {
+ transition-delay: #{$i * 50}ms;
+ opacity: 1;
+ transform: translate($i * 100%);
+ }
+ }
+
+ &__title {
+ font-size: 2.5rem;
+ font-weight: bold;
+ margin-right: 1rem;
+ &-2 {
+ transition-property: opacity, transform;
+ transition-duration : 0.3s, 0.3s;
+ transition-timing-function: ease;
+ opacity: 0;
+ position: absolute;
+ font-size: 2.5rem;
+ font-weight: bold;
+ -webkit-text-stroke: 2px var(--color-text);
+ -webkit-text-fill-color: transparent;
+ }
+ }
+}
diff --git a/assets/scss/_list.scss b/assets/scss/_list.scss
index 7706a4f..cdd1e79 100644
--- a/assets/scss/_list.scss
+++ b/assets/scss/_list.scss
@@ -7,3 +7,9 @@
width: 80%;
}
}
+.list {
+ &__title {
+ font-size: 2.1rem;
+ font-weight: bold;
+ }
+}
diff --git a/assets/scss/_mixins.scss b/assets/scss/_mixins.scss
index 302d8ad..6e085ee 100644
--- a/assets/scss/_mixins.scss
+++ b/assets/scss/_mixins.scss
@@ -1,3 +1,9 @@
+@mixin flex-center {
+ display: flex;
+ justify-content:center;
+ align-items: center;
+}
+
@mixin flex-align($options) {
@if $option == center {
align-items: center;
@@ -25,4 +31,4 @@
@else if $option == end {
justify-content: flex-end;
}
-} \ No newline at end of file
+}
diff --git a/assets/scss/_single.scss b/assets/scss/_single.scss
index 8712db5..6b6a6d2 100644
--- a/assets/scss/_single.scss
+++ b/assets/scss/_single.scss
@@ -1,7 +1,10 @@
.post {
width: 100%;
- max-width: 1024px;
+ max-width: $screen-lg;
margin: 0 auto;
+ @media (min-width: $screen-lg) {
+ width: 80%;
+ }
}
.post-content {
h1{
@@ -62,6 +65,7 @@
}
.highlight pre {
padding: 1rem;
+ overflow: auto;
}
.highlight code {
color: inherit;
@@ -72,21 +76,24 @@
ul {
list-style-type: disc;
padding-left: 1rem;
+ color: var(--color-text-2);
}
ol {
list-style-type: decimal;
padding-left: 1rem;
+ color: var(--color-text-2);
}
- a {
+ a,a:any-link {
color: var(--color-link);
border-bottom: 1px solid var(--color-border);
}
- a:hover {
+ a:hover, a:hover:any-link {
border-bottom: 3px solid var(--color-border);
background-color: var(--color-link-bg);
}
table {
margin: 0.5rem 0;
+ color: var(--color-text-2);
}
table th {
padding: 0.5rem;
diff --git a/assets/scss/_spacing.scss b/assets/scss/_spacing.scss
index d626660..93f2cba 100644
--- a/assets/scss/_spacing.scss
+++ b/assets/scss/_spacing.scss
@@ -21,4 +21,15 @@
&--md {
padding: 2rem;
}
+ &l-sm {
+ padding-left: 1rem;
+ }
+}
+.m {
+ &b-sm {
+ margin-bottom: 1rem;
+ }
+ &b-xs {
+ margin-bottom: 0.5rem;
+ }
}
diff --git a/assets/scss/style.scss b/assets/scss/style.scss
index 35e55e5..f1759fa 100644
--- a/assets/scss/style.scss
+++ b/assets/scss/style.scss
@@ -5,7 +5,7 @@
--color-card-bg: rgba(250,250,250,0.8);
--color-header-bg: white;
--color-text: black;
- --color-text-2: #333333;
+ --color-text-2: #222222;
--color-text-light: white;
--color-text-light-2: rgba(255,255,255,0.9);
--color-link: #0F4C81;
@@ -17,6 +17,7 @@
--color-boxshadow: rgba(100,100,100,1);
--color-boxshadow-dark: rgba(70,70,70,1);
--color-extra: #ffecbc;
+ --color-extra-2: #fcb279;
--color-footer-bg: rgba(250,250,250,0.8);
--color-code-bg: rgba(100,100,100,1);
--color-table-bg: rgba(200,200,200);
@@ -94,10 +95,12 @@ a {
color: initial;
}
+@import "mixins";
@import "typography";
@import "flex";
@import "spacing";
@import "header";
+@import "list-header";
@import "main";
@import "pagination";
@import "li";
@@ -106,3 +109,5 @@ a {
@import "featured-posts";
@import "single";
@import "footer";
+@import "button";
+@import "404";
diff --git a/exampleSite/_index.md b/exampleSite/_index.md
new file mode 100644
index 0000000..6abc75e
--- /dev/null
+++ b/exampleSite/_index.md
@@ -0,0 +1,4 @@
++++
+author = "Hugo Authors"
++++
+
diff --git a/exampleSite/about.md b/exampleSite/about.md
new file mode 100644
index 0000000..a412806
--- /dev/null
+++ b/exampleSite/about.md
@@ -0,0 +1,28 @@
++++
+title = "About"
+description = "Hugo, the world’s fastest framework for building websites"
+date = "2019-02-28"
+aliases = ["about-us","about-hugo","contact"]
+author = "Hugo Authors"
++++
+
+Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
+
+Hugo makes use of a variety of open source projects including:
+
+* https://github.com/yuin/goldmark
+* https://github.com/alecthomas/chroma
+* https://github.com/muesli/smartcrop
+* https://github.com/spf13/cobra
+* https://github.com/spf13/viper
+
+Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages.
+
+Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases.
+
+Websites built with Hugo are extremelly fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider.
+
+Learn more and contribute on [GitHub](https://github.com/gohugoio).
+
+
+
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
new file mode 100644
index 0000000..baf3b46
--- /dev/null
+++ b/exampleSite/config.toml
@@ -0,0 +1,43 @@
+baseURL = ""
+title = "Origin"
+author = "Andrey Parfenov"
+copyright = "© 2020, Andrey Parfenov"
+paginate = 4
+languageCode = "en"
+DefaultContentLanguage = "en"
+enableInlineShortcodes = true
+footnoteReturnLinkContents = "^"
+theme = "origin"
+favicon = ""
+
+[params]
+ description = "simple hugo theme"
+ featured = true
+ facebook = ""
+ twitter = ""
+ instagram = ""
+ youtube = ""
+ github = ""
+ gitlab = ""
+ linkedin = ""
+ mastodon = ""
+ slack = ""
+ stackoverflow = ""
+
+[menu]
+
+ [[menu.main]]
+ identifier = "about"
+ name = "About"
+ url = "/about/"
+ weight = 10
+
+[taxonomies]
+ category = "categories"
+ tag = "tags"
+ series = "series"
+
+[markup]
+ [markup.highlight]
+ style = "github"
+ tabWidth = 4
diff --git a/exampleSite/homepage/about.md b/exampleSite/homepage/about.md
new file mode 100644
index 0000000..c2ba680
--- /dev/null
+++ b/exampleSite/homepage/about.md
@@ -0,0 +1,7 @@
+---
+title: 'Our Difference'
+button: 'About us'
+weight: 2
+---
+
+Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. ipsum dolor sit amet, et essent mediocritatem quo, \ No newline at end of file
diff --git a/exampleSite/homepage/index.md b/exampleSite/homepage/index.md
new file mode 100644
index 0000000..01ffa31
--- /dev/null
+++ b/exampleSite/homepage/index.md
@@ -0,0 +1,3 @@
+---
+headless : true
+---
diff --git a/exampleSite/homepage/work.md b/exampleSite/homepage/work.md
new file mode 100644
index 0000000..f2fee73
--- /dev/null
+++ b/exampleSite/homepage/work.md
@@ -0,0 +1,7 @@
+---
+title: 'We Help Business Grow'
+button: 'Our Work'
+weight: 1
+---
+
+Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. Numquam dolores mel eu, mea docendi omittantur et, mea ea duis erat. Elit melius cu ius. Per ex novum tantas putant, ei his nullam aliquam apeirian. Aeterno quaestio constituto sea an, no eum intellegat assueverit. \ No newline at end of file
diff --git a/exampleSite/post/01_origin-ghost-theme-preview.png b/exampleSite/post/01_origin-ghost-theme-preview.png
new file mode 100644
index 0000000..ab298a2
--- /dev/null
+++ b/exampleSite/post/01_origin-ghost-theme-preview.png
Binary files differ
diff --git a/exampleSite/post/_index.md b/exampleSite/post/_index.md
new file mode 100644
index 0000000..7c6bd54
--- /dev/null
+++ b/exampleSite/post/_index.md
@@ -0,0 +1,6 @@
++++
+aliases = ["posts","articles","blog","showcase","docs"]
+title = "Posts"
+author = "Hugo Authors"
+tags = ["index"]
++++
diff --git a/exampleSite/post/emoji-support.md b/exampleSite/post/emoji-support.md
new file mode 100644
index 0000000..85e366b
--- /dev/null
+++ b/exampleSite/post/emoji-support.md
@@ -0,0 +1,48 @@
++++
+author = "Hugo Authors"
+title = "Emoji Support"
+date = "2019-03-05"
+description = "Guide to emoji usage in Hugo"
+tags = [
+ "emoji",
+]
+image = "photo2.webp"
++++
+
+Emoji can be enabled in a Hugo project in a number of ways.
+<!--more-->
+The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
+
+To enable emoji globally, set `enableEmoji` to `true` in your site’s [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g.
+
+
+<p><span class="nowrap"><span class="emojify">🙈</span> <code>:see_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙉</span> <code>:hear_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙊</span> <code>:speak_no_evil:</code></span></p>
+<br>
+
+The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes.
+
+***
+
+**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g.
+
+{{< highlight html >}}
+.emoji {
+font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols;
+}
+{{< /highlight >}}
+
+{{< css.inline >}}
+<style>
+.emojify {
+ font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols;
+ font-size: 2rem;
+ vertical-align: middle;
+}
+@media screen and (max-width:650px) {
+ .nowrap {
+ display: block;
+ margin: 25px 0;
+}
+}
+</style>
+{{< /css.inline >}}
diff --git a/exampleSite/post/markdown-syntax.md b/exampleSite/post/markdown-syntax.md
new file mode 100644
index 0000000..4711611
--- /dev/null
+++ b/exampleSite/post/markdown-syntax.md
@@ -0,0 +1,148 @@
++++
+author = "Hugo Authors"
+title = "Markdown Syntax Guide"
+date = "2019-03-11"
+description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
+tags = [
+ "markdown",
+ "css",
+ "html",
+ "themes",
+]
+categories = [
+ "themes",
+ "syntax",
+]
+series = ["Themes Guide"]
+aliases = ["migrate-from-jekyl"]
+image = "01_origin-ghost-theme-preview.png"
++++
+
+This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
+<!--more-->
+
+## Headings
+
+The following HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
+
+# H1
+## H2
+### H3
+#### H4
+##### H5
+###### H6
+
+## Paragraph
+
+Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
+
+Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
+
+## Blockquotes
+
+The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
+
+#### Blockquote without attribution
+
+> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
+> **Note** that you can use *Markdown syntax* within a blockquote.
+
+#### Blockquote with attribution
+
+> Don't communicate by sharing memory, share memory by communicating.</p>
+> — <cite>Rob Pike[^1]</cite>
+
+
+[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
+
+## Tables
+
+Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
+
+ Name | Age
+--------|------
+ Bob | 27
+ Alice | 23
+
+#### Inline Markdown within tables
+
+| Inline&nbsp;&nbsp;&nbsp; | Markdown&nbsp;&nbsp;&nbsp; | In&nbsp;&nbsp;&nbsp; | Table |
+| ---------- | --------- | ----------------- | ---------- |
+| *italics* | **bold** | ~~strikethrough~~&nbsp;&nbsp;&nbsp; | `code` |
+
+## Code Blocks
+
+#### Code block with backticks
+
+```
+html
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>Example HTML5 Document</title>
+</head>
+<body>
+ <p>Test</p>
+</body>
+</html>
+```
+#### Code block indented with four spaces
+
+ <!DOCTYPE html>
+ <html lang="en">
+ <head>
+ <meta charset="UTF-8">
+ <title>Example HTML5 Document</title>
+ </head>
+ <body>
+ <p>Test</p>
+ </body>
+ </html>
+
+#### Code block with Hugo's internal highlight shortcode
+{{< highlight html >}}
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>Example HTML5 Document</title>
+</head>
+<body>
+ <p>Test</p>
+</body>
+</html>
+{{< /highlight >}}
+
+## List Types
+
+#### Ordered List
+
+1. First item
+2. Second item
+3. Third item
+
+#### Unordered List
+
+* List item
+* Another item
+* And another item
+
+#### Nested list
+
+* Item
+1. First Sub-item
+2. Second Sub-item
+
+## Other Elements — abbr, sub, sup, kbd, mark
+
+<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
+
+H<sub>2</sub>O
+
+X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
+
+Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
+
+Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
+
diff --git a/exampleSite/post/math-typesetting.mmark b/exampleSite/post/math-typesetting.mmark
new file mode 100644
index 0000000..7f421ae
--- /dev/null
+++ b/exampleSite/post/math-typesetting.mmark
@@ -0,0 +1,46 @@
+---
+author: Hugo Authors
+title: Math Typesetting
+date: 2019-03-08
+description: A brief guide to setup KaTeX
+markup: mmark
+math: true
+---
+
+Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.
+<!--more-->
+
+In this example we will be using [KaTeX](https://katex.org/)
+
+- Create a partial under `/layouts/partials/math.html`
+- Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally.
+- Include the partial in your templates like so:
+
+```
+{{ if or .Params.math .Site.Params.math }}
+{{ partial "math.html" . }}
+{{ end }}
+```
+- To enable KaTex globally set the parameter `math` to `true` in a project's configuration
+- To enable KaTex on a per page basis include the parameter `math: true` in content files.
+
+**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)
+{{< math.inline >}}
+{{ if or .Page.Params.math .Site.Params.math }}
+<!-- KaTeX -->
+<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.1/dist/katex.min.css" integrity="sha384-dbVIfZGuN1Yq7/1Ocstc1lUEm+AT+/rCkibIcC/OmWo5f0EA48Vf8CytHzGrSwbQ" crossorigin="anonymous">
+<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.1/dist/katex.min.js" integrity="sha384-2BKqo+exmr9su6dir+qCw08N2ZKRucY4PrGQPPWU1A7FtlCGjmEGFqXCv5nyM5Ij" crossorigin="anonymous"></script>
+<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
+{{ end }}
+{{</ math.inline >}}
+
+### Examples
+
+Inline math: $$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$
+
+Block math:
+
+$$
+ \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
+$$
+
diff --git a/exampleSite/post/photo.webp b/exampleSite/post/photo.webp
new file mode 100644
index 0000000..842dbb6
--- /dev/null
+++ b/exampleSite/post/photo.webp
Binary files differ
diff --git a/exampleSite/post/photo2.webp b/exampleSite/post/photo2.webp
new file mode 100644
index 0000000..439546f
--- /dev/null
+++ b/exampleSite/post/photo2.webp
Binary files differ
diff --git a/exampleSite/post/placeholder-text.md b/exampleSite/post/placeholder-text.md
new file mode 100644
index 0000000..378b995
--- /dev/null
+++ b/exampleSite/post/placeholder-text.md
@@ -0,0 +1,58 @@
++++
+author = "Hugo Authors"
+title = "Placeholder Text"
+date = "2019-03-09"
+description = "Lorem Ipsum Dolor Si Amet"
+tags = [
+ "markdown",
+ "text",
+]
++++
+
+Lorem est tota propiore conpellat pectoribus de
+pectora summo. <!--more-->Redit teque digerit hominumque toris verebor lumina non cervice
+subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc
+caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis
+lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum.
+
+1. Exierant elisi ambit vivere dedere
+2. Duce pollice
+3. Eris modo
+4. Spargitque ferrea quos palude
+
+Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus
+silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria
+tractus malis.
+
+1. Comas hunc haec pietate fetum procerum dixit
+2. Post torum vates letum Tiresia
+3. Flumen querellas
+4. Arcanaque montibus omnes
+5. Quidem et
+
+# Vagus elidunt
+
+<svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg>
+
+[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon)
+
+## Mane refeci capiebant unda mulcebat
+
+Victa caducifer, malo vulnere contra
+dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere
+furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.
+
+Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli
+Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare
+Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert
+ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae
+vulnus haerentia iuste et exercebat, sui et.
+
+Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem
+Propoetides **parte**.
+
+{{< css.inline >}}
+<style>
+.canon { background: white; width: 100%; height: auto;}
+</style>
+{{< /css.inline >}}
diff --git a/exampleSite/post/rich-content.md b/exampleSite/post/rich-content.md
new file mode 100644
index 0000000..ccf2577
--- /dev/null
+++ b/exampleSite/post/rich-content.md
@@ -0,0 +1,43 @@
++++
+author = "Hugo Authors"
+title = "Rich Content"
+date = "2019-03-10"
+description = "A brief description of Hugo Shortcodes"
+tags = [
+ "shortcodes",
+ "privacy",
+]
+image = "photo.webp"
++++
+
+Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds.
+<!--more-->
+---
+
+## Instagram Simple Shortcode
+
+{{< instagram_simple BGvuInzyFAe hidecaption >}}
+
+<br>
+
+---
+
+## YouTube Privacy Enhanced Shortcode
+
+{{< youtube ZJthWmvUzzc >}}
+
+<br>
+
+---
+
+## Twitter Simple Shortcode
+
+{{< twitter_simple 1085870671291310081 >}}
+
+<br>
+
+---
+
+## Vimeo Simple Shortcode
+
+{{< vimeo_simple 48912912 >}}
diff --git a/exampleSite/resources/_gen/assets/scss/scss/style.scss_48b060fe05b0a273d182ef83c0605941.content b/exampleSite/resources/_gen/assets/scss/scss/style.scss_48b060fe05b0a273d182ef83c0605941.content
new file mode 100644
index 0000000..ea78a4c
--- /dev/null
+++ b/exampleSite/resources/_gen/assets/scss/scss/style.scss_48b060fe05b0a273d182ef83c0605941.content
@@ -0,0 +1 @@
+:root{--color-bg: rgba(255,247,240, 1);--color-card-bg: rgba(250,250,250,0.8);--color-header-bg: white;--color-text: black;--color-text-2: #222222;--color-text-light: white;--color-text-light-2: rgba(255,255,255,0.9);--color-link: #0F4C81;--color-hover: linear-gradient(to right, rgba(120,120,120,1) 0%, rgba(120,120, 120,0.7) 50%);--color-border: rgba(120,120,120,1);--color-border-dark: black;--color-border-light: white;--color-header-border: black;--color-boxshadow: rgba(100,100,100,1);--color-boxshadow-dark: rgba(70,70,70,1);--color-extra: #ffecbc;--color-extra-2: #fcb279;--color-footer-bg: rgba(250,250,250,0.8);--color-code-bg: rgba(100,100,100,1);--color-table-bg: rgba(200,200,200);--color-blockquote: #999999;--color-twitter: rgb(29, 161, 242);--color-link-bg: rgb(200, 200,200, 0.25)}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1;font-family:lato,noto sans,pt sans,roboto,sans-serif;box-sizing:border-box;background:var(--color-bg);height:100vh;display:flex;flex-flow:column nowrap}*{box-sizing:border-box}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}button{cursor:pointer;background:0 0;border:none;outline:none}a{text-decoration:none;color:initial}.h2{font-size:3rem;font-weight:700}.text-shadow{text-shadow:1px 1px 1px #3c3c3c,2px 2px 1px #646464,3px 3px 1px #6e6e6e,4px 4px 1px #787878,5px 5px 1px #828282,6px 6px 1px #8c8c8c,7px 7px 1px #969696}.flex-1{flex:1}.flex-col{display:flex;flex-flow:column nowrap}.flex-row{display:flex;flex-flow:row nowrap}.flex-between{display:flex;justify-content:space-between;align-items:center}.flex-center{display:flex;justify-content:center;align-items:center}.py--sm{padding-top:1rem;padding-bottom:1rem}.px--sm{padding-right:1rem;padding-left:1rem}.py--md{padding-top:2rem;padding-bottom:2rem}.px--md{padding-left:2rem;padding-right:2rem}.p--sm{padding:1rem}.p--md{padding:2rem}.pl-sm{padding-left:1rem}.mb-sm{margin-bottom:1rem}.mb-xs{margin-bottom:.5rem}header{max-width:1584px;margin:0 auto;padding:1rem 2%;width:100%}@media(min-width:1056px){header{padding:1rem 4%}}.header{display:flex;justify-content:space-between;align-items:center}.header__title{font-size:2rem;font-weight:700;margin-bottom:.5rem}.header-nav-list{display:flex;flex-flow:row wrap;justify-content:center;align-items:center}.header-nav-list--menu{display:none}@media(min-width:1056px){.header-nav-list--menu{display:flex}}.header-nav-list__item{margin:.5rem}.header-nav-list__link{border-bottom:2px solid transparent}.header-nav-list__link:hover{border-bottom:2px solid #000;color:#000}.header-nav-list__nav-btn{display:none;padding:3px 5px;background:var(--color-text);color:var(--color-text-light);border:1px solid var(--color-border-dark);max-height:30px;cursor:pointer}@media(min-width:1056px){.header-nav-list__nav-btn{display:inline-block}}.header-nav-list__nav-btn:hover{background:var(--color-text-light);color:var(--color-text)}.header-nav.desktop{display:none}@media(min-width:1056px){.header-nav.desktop{display:block}}.header-nav{display:flex}.mb-header-nav{transition:opacity .3s ease;overflow:auto;display:none;position:fixed;background:var(--color-bg);z-index:10;top:0;left:0;bottom:0;right:0;width:100%;height:100vh}.mb-header-nav__wrapper{display:flex;flex-direction:row;flex-wrap:wrap}.mb-header-nav__container{flex:1;text-align:center}.mb-header-nav__close-btn{position:absolute;top:1rem;right:1rem;fill:currentColor}.mb-header-nav__close-btn:hover .mb-header-nav__svg-icon{color:gray;fill:gray}.mb-header-nav__title{font-size:2.5rem;font-weight:700}.mb-header-nav__title text{animation:2s stroke alternate;stroke-width:.4}.mb-header-nav.active{display:block}.mb-header-nav-list__list{margin:auto;width:50%;display:flex;flex-flow:column;padding:1rem}.mb-header-nav-list__item{opacity:0;transition:opacity .3s ease;font-size:2.5rem;margin:1rem auto;text-align:center}.mb-header-nav-list__link{text-transform:uppercase;font-weight:700;position:relative;display:inline-block;-webkit-text-stroke:1px var(--color-text);color:transparent;background:linear-gradient(90deg,var(--color-extra-2) 0%,var(--color-extra-2) 100%);background-position:0;background-size:0%;background-repeat:no-repeat;transition:background-size .5s ease;background-clip:text;-webkit-background-clip:text}.mb-header-nav-list__link:hover{background-size:100%}.mb-header__menu-btn{flex:0 0 1.5rem;display:block;height:1.5rem;width:1.5rem;padding:0;position:relative}.mb-header__menu-btn>span:nth-child(1){transition:transform .2s ease;display:inline-block;position:absolute;left:0;top:3px;width:100%;height:2px;background:#000}.mb-header__menu-btn>span:nth-child(2){transition:transform .2s ease;display:inline-block;background:#000;position:absolute;left:0;top:12px;width:100%;height:2px}.mb-header__menu-btn>span:nth-child(3){transition:transform .2s ease;display:inline-block;background:#000;position:absolute;left:0;top:21px;width:100%;height:2px}.mb-header__menu-btn:hover .mb-header__menu-btn-line:nth-child(1){transform:translate(-2px,-6px)rotate(2deg)}.mb-header__menu-btn:hover .mb-header__menu-btn-line:nth-child(2){transform:translate(-2px,-2px)rotate(-2deg)}.mb-header__menu-btn:hover .mb-header__menu-btn-line:nth-child(3){transform:translate(-2px,6px)rotate(2deg)}@media(min-width:1056px){.mb-header__menu-btn{display:none}}.header-frame{width:100%;transform:translateX(-6px);padding:1rem;background:var(--color-header-bg);border:3px solid var(--color-header-border);box-shadow:11px 11px var(--color-header-border);position:relative;margin-right:auto;margin-left:auto;transform-style:preserve-3d;overflow:visible}@media(min-width:1056px){.header-frame{width:80%}}.header-frame:after{content:"";position:absolute;background:var(--color-header-border);width:15px;height:15px;left:1px;bottom:-11px;transform:translateZ(-1px)rotate(45deg);z-index:-1}.header-frame:before{content:"";position:absolute;background:var(--color-header-border);width:15px;height:15px;right:-11px;top:1px;transform:translateZ(-1px)rotate(45deg);z-index:-1}@keyframes stroke{0%{fill:transparent;stroke:#000;stroke-dasharray:0% 50%;stroke-width:1}70%{fill:transparent;stroke:#000;stroke-dasharray:90% 50%;stroke-width:1}100%{fill:#000;stroke:#000}}.list-header{overflow-x:hidden;position:relative;display:flex;background:var(--color-extra);padding:2rem;margin:0 auto;border:1px solid var(--color-border);box-shadow:5px 5px var(--color-boxshadow);transition-property:box-shadow,transform,background;transition-duration:.2s,.3s,.3s;transition-timing-function:ease}@media(min-width:672px){.list-header{width:80%}}.list-header:hover{background-color:var(--color-extra-2)}.list-header:hover .list-header__title-2:nth-of-type(1){transition-delay:50ms;opacity:1;transform:translate(100%)}.list-header:hover .list-header__title-2:nth-of-type(2){transition-delay:100ms;opacity:1;transform:translate(200%)}.list-header:hover .list-header__title-2:nth-of-type(3){transition-delay:150ms;opacity:1;transform:translate(300%)}.list-header:hover .list-header__title-2:nth-of-type(4){transition-delay:200ms;opacity:1;transform:translate(400%)}.list-header__title{font-size:2.5rem;font-weight:700;margin-right:1rem}.list-header__title-2{transition-property:opacity,transform;transition-duration:.3s,.3s;transition-timing-function:ease;opacity:0;position:absolute;font-size:2.5rem;font-weight:700;-webkit-text-stroke:2px var(--color-text);-webkit-text-fill-color:transparent}#content{width:100%;padding:2%;max-width:1584px;margin:0 auto;background:var(--color-bg)}@media(min-width:1056px){#content{padding:4%}}.pagination{margin-top:3rem;display:flex;justify-content:space-between;align-items:center}.pagination__item{width:48px;height:48px}.pagination__item:not(:last-of-type){margin-right:1rem}.pagination__pagenums{flex:1 1 auto;display:flex;justify-content:center;align-items:center}.pagination__link{border:1px solid var(--color-border);background:var(--color-card-bg);display:flex;justify-content:center;align-items:center;width:100%;height:100%;box-shadow:5px 5px var(--color-boxshadow);transition-property:box-shadow,transform;transition-duration:.2s,.3s;transition-timing-function:ease}.pagination__link:hover{transform:translate(4px,4px);box-shadow:1px 1px var(--color-boxshadow)}.post-item{color:var(--color-text);padding:.5rem;position:relative;margin-bottom:var(--margin-between-cards);margin-right:auto;margin-left:auto;width:calc(100%);max-height:250px;background:var(--color-card-bg);transition:transform .2s ease;border:1px solid var(--color-border);box-shadow:5px 5px var(--color-boxshadow);transition-property:box-shadow,transform;transition-duration:.2s,.3s;transition-timing-function:ease}.post-item:hover{transform:translate(4px,4px);box-shadow:1px 1px var(--color-boxshadow)}.post-item__meta{padding-top:1.5rem}.post-item__meta.no-tag{padding-top:0}.post-item__description{line-height:1.5;margin-top:.5rem;color:var(--color-text-2)}.post-item__date{color:var(--color-text-2);font-family:monospace}.post-item--left{flex:1 1 47%;margin-right:1rem}.post-item--right{flex:1 1 47%}.post-item__image{display:block;padding-top:20%;border:1px solid var(--color-border);overflow:hidden;position:relative}.post-item__image>img{position:absolute;left:0;top:0;right:0;bottom:0;width:100%;height:100%;object-fit:cover}.post-item__title{line-height:1.2;font-size:1.5rem;font-weight:600;color:#000}.post-item__tag{position:absolute;padding:3px 5px;background:var(--color-text);color:var(--color-text-light);top:0;left:0;border:1px solid var(--color-border-dark);max-height:30px;display:block}.post-item__tag:hover{background:var(--color-text-light);color:var(--color-text);cursor:pointer}.post-item:not(:last-of-type){margin-bottom:1rem}.post-item-flex{display:flex;overflow:hidden}.post-list{display:flex;flex-flow:column nowrap;margin:0 auto;width:100%}@media(min-width:1056px){.post-list{width:80%}}.list__title{font-size:2.1rem;font-weight:700}.featured-title{font-size:1.5rem;font-family:monospace;margin:0 auto}@media(min-width:1056px){.featured-title{width:80%}}.featured-posts{display:grid;width:100%;height:auto;max-height:100vh;margin:0 auto 2.5rem;box-shadow:4px 4px var(--color-boxshadow-dark);transition-property:box-shadow,transform;transition-duration:.2s,.3s;transition-timing-function:ease;background:var(--color-card-bg);grid-template-rows:2fr repeat(2,1fr);grid-template-areas:"first" "second" "third"}@media(min-width:672px){.featured-posts{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;grid-template-areas:"first second" "first third"}}@media(min-width:1056px){.featured-posts{width:80%}}.featured-post{display:flex;flex-flow:column nowrap;justify-content:center;border:1px solid var(--color-border);padding:1rem;position:relative;transition-property:box-shadow,transform;transition-duration:.2s,.3s;transition-timing-function:ease;background:var(--color-hover)}@media(min-width:672px){.featured-post{background:0 0;padding:1.5rem;z-index:1;position:relative}}@media(min-width:1056px){.featured-post{padding:2rem}}.featured-post time{font-family:monospace}.featured-post:hover{background:var(--color-hover);transform:translate(4px,4px);box-shadow:0 0 3px 0 var(--color-boxshadow)}.featured-post__wrapper{background:0 0;z-index:1;position:relative;display:block;color:var(color-text-light)}@media(min-width:672px){.featured-post__wrapper{color:var(color-text)}}.featured-post__wrapper time{color:var(--color-text-light)}@media(min-width:672px){.featured-post__wrapper time{color:var(--color-text)}}.featured-post__title{color:var(--color-text-light)}@media(min-width:672px){.featured-post__title{color:var(--color-text)}}.featured-post__image{opacity:1;position:absolute;top:0;bottom:0;left:0;right:0;z-index:0;width:100%;height:100%;object-fit:cover;transition:opacity .3s ease}@media(min-width:672px){.featured-post__image{opacity:0}}.featured-post__image-filter{display:block;background:rgba(0,0,0,.7);position:absolute;z-index:0;width:100%;height:100%;top:0;bottom:0;left:0;right:0}@media(min-width:672px){.featured-post__image-filter{display:none}}.featured-post__description{color:var(--color-text-light);margin:.5rem 0}@media(min-width:672px){.featured-post__description{color:var(--color-text-2)}}.featured-post__tags{display:flex;flex-flow:row wrap;position:relative;z-index:1;margin-top:1rem;margin-left:-.5rem}.featured-post__tags>li{padding:.5rem;border:1px solid var(--color-border-light);margin:.5rem}@media(min-width:672px){.featured-post__tags>li{border:1px solid var(--color-border)}}.featured-post__tags>li>a{color:var(--color-text-light)}@media(min-width:672px){.featured-post__tags>li>a{color:var(--color-text)}}.featured-post__tags>li:hover{background:rgba(0,0,0,.8);box-shadow:0 0 8px 1px rgba(0,0,0,.4);transition:transform .4s ease;transform:translate(2px,2px)}.featured-post:nth-child(1){grid-area:first}.featured-post:nth-child(1) .featured-post__title{font-weight:700;font-size:1.5rem;margin:0 0 1rem}.featured-post:nth-child(1) .featured-post__description{font-size:1rem}.featured-post:nth-child(2){grid-area:second}.featured-post:nth-child(2) .featured-post__title{font-weight:700;font-size:1rem;margin:.5rem 0}.featured-post:nth-child(2) .featured-post__description{font-size:.8rem}.featured-post:nth-child(3){grid-area:third}.featured-post:nth-child(3) .featured-post__title{font-weight:700;font-size:1rem;margin:.5rem 0}.featured-post:nth-child(3) .featured-post__description{font-size:.8rem}.featured-post:hover .featured-post__image{opacity:1}.featured-post:hover .featured-post__image-filter{display:block}.featured-post:hover .featured-post__wrapper{color:var(--color-text-light);z-index:1;position:relative}.featured-post:hover .featured-post__title{color:var(--color-text-light);z-index:1;position:relative}.featured-post:hover .featured-post__wrapper time{color:var(--color-text-light);z-index:1;position:relative}.featured-post:hover .featured-post__description{color:var(--color-text-light)}.featured-post:hover .featured-post__tags>li>a{color:var(--color-text-light)}.featured-post:hover .featured-post__tags>li{border:1px solid var(--color-border-light)}.post{width:100%;max-width:1056px;margin:0 auto}@media(min-width:1056px){.post{width:80%}}.post-content h1{font-size:3rem;font-weight:700;margin:1rem 0}.post-content h2{font-size:2.5rem;font-weight:700;margin:.825rem 0}.post-content h3{font-size:2rem;font-weight:semibold;margin:.825rem 0}.post-content h4{font-size:1.5rem;font-weight:semibold;margin:.825rem 0}.post-content h5{font-size:1rem;margin:.825rem 0}.post-content h6{font-size:.75rem;margin:.825rem 0}.post-content h1,.post-content h2,.post-content h3,.post-content h4,.post-content h5,.post-content h6,.post-content p,.post-content code,.post-content blockquote,.post-content a{line-height:1.4}@media(min-width:1056px){.post-content h1,.post-content h2,.post-content h3,.post-content h4,.post-content h5,.post-content h6,.post-content p,.post-content code,.post-content blockquote,.post-content a{line-height:1.5}}.post-content p{margin:1rem 0;color:var(--color-text-2)}.post-content blockquote{margin-left:1rem;padding-left:1rem;border-left:4px solid var(--color-border);font-family:roboto mono,pt mono,ibm plex mono,monospace}.post-content code{padding:1px 3px;border-radius:2px;background-color:var(--color-code-bg);color:var(--color-text-light)}.post-content pre code{color:inherit;background-color:inherit;padding:0;border-radius:inherit}.post-content .highlight pre{padding:1rem;overflow:auto}.post-content .highlight code{color:inherit;background-color:inherit;padding:0;border-radius:inherit}.post-content ul{list-style-type:disc;padding-left:1rem;color:var(--color-text-2)}.post-content ol{list-style-type:decimal;padding-left:1rem;color:var(--color-text-2)}.post-content a,.post-content a:any-link{color:var(--color-link);border-bottom:1px solid var(--color-border)}.post-content a:hover,.post-content a:hover:any-link{border-bottom:3px solid var(--color-border);background-color:var(--color-link-bg)}.post-content table{margin:.5rem 0;color:var(--color-text-2)}.post-content table th{padding:.5rem;background:var(--color-extra)}.post-content table td{padding:.5rem;border-bottom:1px solid var(--color-border);border-collapse:collapse}.post-content table tbody tr:nth-child(even){background:var(--color-table-bg)}.post-content table tbody tr:hover{background:var(--color-hover);color:var(--color-text-light)}.post-content cite{font-family:roboto mono,pt mono,ibm plex mono,monospace}.post-content sub{vertical-align:sub}.post-content sup{vertical-align:super}.post-content kbd{background:var(--color-code-bg);padding:1px 3px;border-radius:2px;color:var(--color-text-light)}.post-content mark{background-color:var(--color-extra);padding:1px 3px;border-radius:2px;border:1px solid var(--color-border)}.post-content strong{font-weight:700}.post-content div[class~=__h_instagram]{margin:1rem auto}.post-content div[class~=__h_instagram].card>.card-header{background-color:var(--color-card-bg);border:1px solid var(--color-border);padding:1rem;text-align:center}.post-content div[class~=__h_instagram].card>a{display:flex;align-items:center;justify-content:center;border:none}.post-content div[class~=__h_instagram].card>a:hover{border:none}.post-content div[class~=__h_instagram].card>.card-body{background-color:var(--color-card-bg);border:1px solid var(--color-border);padding:1rem;text-align:center}.post-content div[class~=__h_instagram].card>a>.img-fluid{border:1px solid var(--color-border);width:100%;height:auto;object-fit:cover}.post-content blockquote.twitter-tweet{border-left:4px solid var(--color-twitter)}footer{max-width:1584px;margin:auto auto 0;width:100%;padding:10px 1%}.footer{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:center;border:1px solid var(--color-border);padding:1rem 2rem;background:var(--color-footer-bg);width:100%;margin:0 auto}@media(min-width:672px){.footer{width:80%}}.footer__socials{display:flex;align-items:center}.post-footer{padding-right:calc(48px + 2rem)}@media(min-width:672px){.post-footer{padding-right:1%}}.floating-button{padding:0;background-color:var(--color-header-bg);position:fixed;bottom:1rem;right:1rem;width:48px;height:48px;border:1px solid var(--color-border);box-shadow:5px 5px var(--color-boxshadow);transition-property:box-shadow,transform;transition-duration:.2s,.3s;transition-timing-function:ease;text-align:center}.floating-button__link{display:flex;justify-content:center;align-items:center;height:100%}.floating-button:hover{transform:translate(4px,4px);box-shadow:1px 1px var(--color-boxshadow)}.not-found{display:flex}.not-found__left{flex:1 1 100px;margin-right:1rem}.not-found__htext{font-size:2.5rem;font-weight:700;margin-bottom:1rem}.not-found__title{font-size:1.5rem;font-weight:700}.not-found__right{flex:2 1 auto}.not-found__post{padding-left:1rem;border-left:3px solid transparent}.not-found__post:hover{border-left:3px solid var(--color-border)}.not-found__post:not(:last-of-type){margin-bottom:1.5rem}.not-found__home-button{display:inline-block;padding:1rem;border:1px solid var(--color-border)}.not-found__home-button:hover{border:1px solid var(--color-border-dark);background-color:var(--color-card-bg)} \ No newline at end of file
diff --git a/exampleSite/resources/_gen/assets/scss/scss/style.scss_48b060fe05b0a273d182ef83c0605941.json b/exampleSite/resources/_gen/assets/scss/scss/style.scss_48b060fe05b0a273d182ef83c0605941.json
new file mode 100644
index 0000000..65cbd71
--- /dev/null
+++ b/exampleSite/resources/_gen/assets/scss/scss/style.scss_48b060fe05b0a273d182ef83c0605941.json
@@ -0,0 +1 @@
+{"Target":"scss/style.min.a1a21126c601ff12145829d459dc23393a1c70be51d916a14bc3660fa58cc11e.css","MediaType":"text/css","Data":{"Integrity":"sha256-oaIRJsYB/xIUWCnUWdwjOToccL5R2RahS8NmD6WMwR4="}} \ No newline at end of file
diff --git a/exampleSite/web/_index.md b/exampleSite/web/_index.md
new file mode 100644
index 0000000..87a55a1
--- /dev/null
+++ b/exampleSite/web/_index.md
@@ -0,0 +1,5 @@
++++
+title = "web section"
+description = "section about web"
+tags = ['a','b','c']
++++
diff --git a/layouts/404.html b/layouts/404.html
index e69de29..b942689 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -0,0 +1,24 @@
+{{define "main"}}
+ <div class="not-found">
+ <div class="not-found__left">
+ <h2 class="not-found__htext">404</h2>
+ <a href="/" class="not-found__home-button">home</a>
+ </div>
+ <div class="not-found__right">
+ <h2 class="not-found__htext pl-sm">Latest Posts</h2>
+ <ul class="not-found__posts">
+ {{range first 3 .Site.RegularPages}}
+ <li class="not-found__post">
+ <a href={{.Permalink}}>
+ <div class="not-found__title mb-xs">{{.Title}}</div>
+ <div class="mb-sm">
+ <time datetime={{.Date}}>{{.Date.Format "2006-01-02"}}</time>
+ </div>
+ <div>{{.Description}}</div>
+ </a>
+ </li>
+ {{end}}
+ </ul>
+ </div>
+ </div>
+{{end}}
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 95597a8..801085b 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -6,6 +6,6 @@
<div id="content">
{{- block "main" . }}{{- end }}
</div>
- {{- partial "footer.html" . -}}
+ {{- block "footer" . }}{{- end}}
</body>
</html>
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index a5056e8..def3ee4 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,3 +1,14 @@
-<div>
- {{.Title}}
-</div>
+{{define "header"}}
+ {{partial "list-header" .}}
+{{end}}
+{{define "main"}}
+<ul class="post-list">
+ {{ range .Pages }}
+ {{.Render "li"}}
+ {{end}}
+</ul>
+{{partial "button" .}}
+{{end}}
+{{define "footer"}}
+ {{partial "post-footer" .}}
+{{end}}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index bf741ba..feb6d18 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -5,4 +5,8 @@
<article class="post">
<div class="post-content">{{.Content}}</div>
</article>
+{{ partial "button" . }}
+{{end}}
+{{define "footer"}}
+ {{partial "post-footer" .}}
{{end}}
diff --git a/layouts/index.html b/layouts/index.html
index 3917405..d0fff19 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -38,3 +38,6 @@
{{end}}
{{end}}
+{{define "footer"}}
+ {{partial "footer" .}}
+{{end}}
diff --git a/layouts/partials/button.html b/layouts/partials/button.html
new file mode 100644
index 0000000..c32b221
--- /dev/null
+++ b/layouts/partials/button.html
@@ -0,0 +1,5 @@
+<button class="floating-button">
+ <a class="floating-button__link" href="/">
+ <span>home</span>
+ </a>
+</button>
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index bf0236f..7109a53 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -7,4 +7,4 @@
</div>
</footer>
{{$script := resources.Get "js/script.js"}}
-<script src="{{$script.Permalink}}"></script>
+<script src="{{$script.RelPermalink}}"></script>
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 494824d..2351ccf 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,6 +1,31 @@
<head>
- <title>{{ .Title }}</title>
+ <meta charset="UTF-8">
+ <title>{{ .Site.Title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
+
+ <meta property="og:title" content="{{ if not .IsHome }}{{with .Title }}{{ . }}{{ end }}{{else}}{{ .Site.Title }}{{end}}" />
+ <meta property="og:description" content="{{if .IsHome}}{{ .Site.Params.description }}{{else}}{{.Description}}{{end}}" />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="{{.Page.Permalink}}" />
+ <meta itemprop="name" content="{{ if not .IsHome }}{{with .Title }}{{ . }}{{ end }}{{else}}{{ .Site.Title }}{{end}}">
+ <meta itemprop="description" content="{{if .IsHome}}{{ .Site.Params.description }}{{else}}{{.Description}}{{end}}">
+ <meta name="twitter:card" content="summary"/>
+ <meta name="twitter:title" content="{{ if not .IsHome }}{{with .Title }}{{ . }}{{ end }}{{else}}{{ .Site.Title }}{{end}}"/>
+ <meta name="twitter:description" content="{{if .IsHome}}{{ .Site.Params.description }}{{else}}{{.Description}}{{end}}"/>
+
+ {{ if (fileExists "static/apple-touch-icon.png") -}}
+ <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
+ {{ end -}}
+ {{ if (fileExists "static/favicon-32.png") -}}
+ <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
+ {{ end -}}
+ {{ if (fileExists "static/favicon-16.png") -}}
+ <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
+ {{ end -}}
+ {{ if (fileExists "static/site.webmanifest") -}}
+ <link rel="manifest" href="/site.webmanifest">
+ {{ end -}}
+
{{ $style := resources.Get "scss/style.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
- <link rel="stylesheet" href="{{$style.Permalink}}" >
+ <link rel="stylesheet" href="{{$style.RelPermalink}}" >
</head>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 8939e2b..abf9f44 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,63 +1,46 @@
<header>
- <div class="header header-frame">
- <div>
- <div class="header__title">{{.Site.Title}}</div>
- {{if .Site.Params.Description}}
- <div class="header__description">{{.Site.Params.Description}}</div>
- {{end}}
+ <div class="header header-frame">
+ <div>
+ <div class="header__title">{{.Site.Title}}</div>
+ {{if .Site.Params.Description}}
+ <div class="header__description">{{.Site.Params.Description}}</div>
+ {{end}}
+ </div>
+ <nav class="header-nav">
+ <ul class="header-nav-list header-nav-list--menu">
+ {{ $currentPage := . }}
+ {{ range .Site.Menus.main }}
+ {{ if .HasChildren }}
+ <li class="header-nav-list__item {{ if $currentPage.HasMenuCurrent "main" . }}active{{ end }}">
+ <a class="header-nav-list__link" href="#">
+ {{ .Pre }}
+ <span>{{ .Name }}</span>
+ </a>
+ </li>
+ <ul class="header-nav-list">
+ {{ range .Children }}
+ <li class="header-nav-list__item {{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
+ <a class="header-nav-list__link" href="{{ .URL }}">{{ .Name }}</a>
+ </li>
+ {{ end }}
+ </ul>
+ {{ else }}
+ <li class="header-nav-list__item">
+ <a class="header-nav-list__link" href="{{ .URL }}">
+ {{ .Pre }}
+ <span>{{ .Name }}</span>
+ </a>
+ </li>
+ {{ end }}
+ {{ end }}
+ </ul>
+ <button class="header-nav-list__nav-btn">navigation</button>
+ </nav>
+ <button class="mb-header__menu-btn">
+ <span class="mb-header__menu-btn-line"></span>
+ <span class="mb-header__menu-btn-line"></span>
+ <span class="mb-header__menu-btn-line"></span>
+ </button>
</div>
- <nav class="header-nav desktop">
- <ul class="header-nav-list">
- {{ range .Site.Taxonomies.tags }}
- <li class="header-nav-list__item">
- <a class="header-nav-list__link" href="{{ .Page.Permalink }}"
- >{{ .Page.Title }}</a
- >
- </li>
- {{end}}
- </ul>
- </nav>
- <button class="mb-header__menu-btn">
- <span class="mb-header__menu-btn-line"></span>
- <span class="mb-header__menu-btn-line"></span>
- <span class="mb-header__menu-btn-line"></span>
- </button>
- </div>
- <nav class="mb-header-nav">
- <div class="flex-between px--md py--sm">
- <svg
- width="240"
- height="72"
- viewBox="0 0 240 72"
- class="mb-header-nav__title"
- >
- <text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle">
- Navigation
- </text>
- </svg>
- <button class="mb-header-nav__close-btn flex-center">
- <svg
- class="mb-header-nav__svg-icon"
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 24 24"
- width="32"
- height="32"
- >
- <path
- d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
- />
- <path d="M0 0h24v24H0z" fill="none" />
- </svg>
- </button>
- </div>
- <ul class="mb-header-nav-list mobile">
- {{ range .Site.Taxonomies.tags }}
- <li class="mb-header-nav-list__item">
- <a class="mb-header-nav-list__link" href="{{ .Page.Permalink}}"
- >{{.Page.Title}}</a
- >
- </li>
- {{end}}
- </ul>
- </nav>
+ {{partial "mobile-header-nav" .}}
</header>
diff --git a/layouts/partials/list-header.html b/layouts/partials/list-header.html
new file mode 100644
index 0000000..2d42eaf
--- /dev/null
+++ b/layouts/partials/list-header.html
@@ -0,0 +1,9 @@
+<header>
+ <div class="list-header">
+ <h1 class="list-header__title">{{.Title}}</h1>
+ <div class="list-header__title-2">{{.Title}}</div>
+ <div class="list-header__title-2">{{.Title}}</div>
+ <div class="list-header__title-2">{{.Title}}</div>
+ <div class="list-header__title-2">{{.Title}}</div>
+ </div>
+</header>
diff --git a/layouts/partials/mobile-header-nav.html b/layouts/partials/mobile-header-nav.html
new file mode 100644
index 0000000..5926612
--- /dev/null
+++ b/layouts/partials/mobile-header-nav.html
@@ -0,0 +1,89 @@
+<nav class="mb-header-nav">
+ <button class="mb-header-nav__close-btn flex-center">
+ <svg
+ class="mb-header-nav__svg-icon"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 24 24"
+ width="32"
+ height="32"
+ >
+ <path
+ d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
+ />
+ <path d="M0 0h24v24H0z" fill="none" />
+ </svg>
+ </button>
+ <div class="mb-header-nav__wrapper">
+ <div class="mb-header-nav__container">
+ <svg
+ width="240"
+ height="72"
+ viewBox="0 0 240 72"
+ class="mb-header-nav__title"
+ >
+ <text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle">
+ Tags
+ </text>
+ </svg>
+ <ul class="mb-header-nav-list">
+ {{if .IsHome}}
+ {{ range .Site.Taxonomies.tags }}
+ <li class="mb-header-nav-list__item">
+ <a class="mb-header-nav-list__link" href="{{ .Page.Permalink}}"
+ >{{.Page.Title}}</a
+ >
+ </li>
+ {{end}}
+ {{else}}
+ {{range .Params.tags}}
+ {{with $.Site.GetPage (printf "/%s/%s" "tags" ( . | urlize ))}}
+ <li class="mb-header-nav-list__item">
+ <a class="mb-header-nav-list__link" href="{{ .Permalink}}"
+ >{{.Title}}</a
+ >
+ </li>
+ {{end}}
+ {{end}}
+ {{end}}
+ </ul>
+ </div>
+ <div class="mb-header-nav__container">
+ <svg
+ width="240"
+ height="72"
+ viewBox="0 0 240 72"
+ class="mb-header-nav__title"
+ >
+ <text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle">
+ Menu
+ </text>
+ </svg>
+ <ul class="mb-header-nav-list">
+ {{ $currentPage := . }}
+ {{ range .Site.Menus.main }}
+ {{ if .HasChildren }}
+ <li class="mb-header-nav-list__item {{ if $currentPage.HasMenuCurrent "main" . }}active{{ end }}">
+ <a class="mb-header-nav-list__link" href="#">
+ {{ .Pre }}
+ <span>{{ .Name }}</span>
+ </a>
+ </li>
+ <ul class="mb-header-nav-list">
+ {{ range .Children }}
+ <li class="mb-header-nav-list__item {{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
+ <a class="mb-header-nav-list__link" href="{{ .URL }}">{{ .Name }}</a>
+ </li>
+ {{ end }}
+ </ul>
+ {{ else }}
+ <li class="mb-header-nav-list__item">
+ <a class="mb-header-nav-list__link" href="{{ .URL }}">
+ {{ .Name }}
+ </a>
+ </li>
+ {{ end }}
+ {{ end }}
+ </ul>
+ </div>
+ </div>
+</nav>
diff --git a/layouts/partials/post-footer.html b/layouts/partials/post-footer.html
new file mode 100644
index 0000000..05cd89e
--- /dev/null
+++ b/layouts/partials/post-footer.html
@@ -0,0 +1,10 @@
+<footer class="post-footer">
+ <div class="footer">
+ {{with .Site.Copyright }}
+ <div>{{ . | safeHTML }}</div>
+ {{end}}
+ <div class="footer__socials">{{partial "social.html" .}}</div>
+ </div>
+</footer>
+{{$script := resources.Get "js/script.js"}}
+<script src="{{$script.Permalink}}"></script>
diff --git a/layouts/partials/post-header.html b/layouts/partials/post-header.html
index dc9283a..8a27967 100644
--- a/layouts/partials/post-header.html
+++ b/layouts/partials/post-header.html
@@ -1,68 +1,47 @@
<header>
- <div class="header header-frame">
- <div>
- <div class="header__title">{{.Title}}</div>
- {{with .Description}}
- <div class="header__description">{{.}}</div>
- {{end}}
+ <div class="header header-frame">
+ <div>
+ <div class="header__title">{{.Title}}</div>
+ {{with .Description}}
+ <div class="header__description">{{.}}</div>
+ {{end}}
+ </div>
+ <nav class="header-nav">
+ <ul class="header-nav-list header-nav-list--menu">
+ {{ $currentPage := . }}
+ {{ range .Site.Menus.main }}
+ {{ if .HasChildren }}
+ <li class="header-nav-list__item {{ if $currentPage.HasMenuCurrent "main" . }}active{{ end }}">
+ <a class="header-nav-list__link" href="#">
+ {{ .Pre }}
+ <span>{{ .Name }}</span>
+ </a>
+ </li>
+ <ul class="header-nav-list">
+ {{ range .Children }}
+ <li class="header-nav-list__item {{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
+ <a class="header-nav-list__link" href="{{ .URL }}">{{ .Name }}</a>
+ </li>
+ {{ end }}
+ </ul>
+ {{ else }}
+ <li class="header-nav-list__item">
+ <a class="header-nav-list__link" href="{{ .URL }}">
+ {{ .Pre }}
+ <span>{{ .Name }}</span>
+ </a>
+ </li>
+ {{ end }}
+ {{ end }}
+ </ul>
+ <button class="header-nav-list__nav-btn">navigation</button>
+ </nav>
+ <button class="mb-header__menu-btn">
+ <span class="mb-header__menu-btn-line"></span>
+ <span class="mb-header__menu-btn-line"></span>
+ <span class="mb-header__menu-btn-line"></span>
+ </button>
</div>
- {{with .Params.tags}}
- <nav class="header-nav desktop">
- <ul class="header-nav-list">
- {{ range . }}
- <li class="header-nav-list__item">
- <a class="header-nav-list__link" href="{{ "tags" | absURL }}{{. | urlize}}"
- >{{ . }}</a
- >
- </li>
- {{end}}
- </ul>
- </nav>
- {{end}}
- <button class="mb-header__menu-btn">
- <span class="mb-header__menu-btn-line"></span>
- <span class="mb-header__menu-btn-line"></span>
- <span class="mb-header__menu-btn-line"></span>
- </button>
- </div>
- <nav class="mb-header-nav">
- <div class="flex-between px--md py--sm">
- <svg
- width="240"
- height="72"
- viewBox="0 0 240 72"
- class="mb-header-nav__title"
- >
- <text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle">
- Navigation
- </text>
- </svg>
- <button class="mb-header-nav__close-btn flex-center">
- <svg
- class="mb-header-nav__svg-icon"
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 24 24"
- width="32"
- height="32"
- >
- <path
- d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
- />
- <path d="M0 0h24v24H0z" fill="none" />
- </svg>
- </button>
- </div>
- {{with .Params.tags}}
- <ul class="mb-header-nav-list mobile">
- {{ range . }}
- <li class="mb-header-nav-list__item">
- <a class="mb-header-nav-list__link" href="{{ "tags" | absURL}}{{. | urlize}}"
- >{{.}}</a
- >
- </li>
- {{end}}
- </ul>
- {{end}}
- </nav>
+ {{partial "mobile-header-nav" .}}
</header>
diff --git a/theme.toml b/theme.toml
index 16bcb43..3302695 100644
--- a/theme.toml
+++ b/theme.toml
@@ -1,21 +1,12 @@
-# theme.toml template for a Hugo theme
-# See https://github.com/gohugoio/hugoThemes#themetoml for an example
-
name = "Origin"
license = "MIT"
licenselink = ""
-description = ""
+description = "simple theme for hugo"
homepage = "http://example.com/"
-tags = []
+tags = ["blog", "responsive", "light", "simple"]
features = []
min_version = "0.41"
[author]
- name = ""
- homepage = ""
-
-# If porting an existing theme
-[original]
- name = ""
+ name = "Andrey Parfenov"
homepage = ""
- repo = ""