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

github.com/edavidaja/docter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoredavidaja <enyinnaya.aja@gmail.com>2019-06-04 16:18:09 +0300
committeredavidaja <enyinnaya.aja@gmail.com>2019-06-04 16:18:09 +0300
commit2e8aeb90a9828d299226a4666963af63aa411730 (patch)
tree3c8c672ff2088a46554c6b0c026f967d9cd64bac
parent1eb2614d22153577f411aae99e52c8fc28efa2b3 (diff)
adopted standard names for posts and pages
-rw-r--r--README.md0
-rw-r--r--archetypes/page.md (renamed from archetypes/blogpost.md)0
-rw-r--r--archetypes/post.md (renamed from archetypes/docpage.md)0
-rw-r--r--layouts/_default/list.html0
-rw-r--r--layouts/index.css525
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/page/single.html (renamed from layouts/docpage/single.html)0
-rw-r--r--layouts/partials/sidebar.html4
-rw-r--r--layouts/post/single.html (renamed from layouts/blogpost/single.html)0
-rw-r--r--theme.toml4
10 files changed, 5 insertions, 530 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/README.md
diff --git a/archetypes/blogpost.md b/archetypes/page.md
index d1da513..d1da513 100644
--- a/archetypes/blogpost.md
+++ b/archetypes/page.md
diff --git a/archetypes/docpage.md b/archetypes/post.md
index d1da513..d1da513 100644
--- a/archetypes/docpage.md
+++ b/archetypes/post.md
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/_default/list.html
diff --git a/layouts/index.css b/layouts/index.css
deleted file mode 100644
index d24ddef..0000000
--- a/layouts/index.css
+++ /dev/null
@@ -1,525 +0,0 @@
-/*
-Main.css
-==================================
-Begin with generic 'mobile first' styles
-*/
-
-/*
-Normalize the box model
-==================================
-*/
-
-*,
-*:before,
-*:after {
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- }
-
-/*
-global styles
-==================================
-*/
-
-html, body {
- height: 100%;
-}
-
-/*
-Typography
-==================================
-*/
-
-body {
- font-family: "Avenir Next", Arial, sans-serif;
- font-weight: 400;
- font-style: normal;
- line-height: 1.466666667;
-}
-
-h1,
-h3,
-h4,
-h5,
-strong {
- font-family: "Avenir Next Demi", "Avenir Next", Arial, sans-serif;
- font-weight: 600;
-}
-
-.site-title {
- font-size: 1.625em;
- font-family: "Avenir Next", Arial, sans-serif;
- font-weight: normal;
- color: #919395;
- margin: 0;
- line-height: 1.2941176470588236;
- display: inline-block;
-}
-
-h2 {
- font-weight: 400;
- font-style: normal;
- font-size: 1.375em;
- margin: 1.4em 0 0 0;
-}
-
-h4 {
- font-size: 1em;
- text-transform: uppercase;
-}
-
-.page-title {
- margin-top: .727272727em; /* 16/22 */
-}
-
-/*
-Lists
---------------------------------
-*/
-
-.main-content ul {
- padding-left: 1.1em;
-}
-
-.main-content li {
- margin-bottom: 1em;
-}
-
-li h3,
-li h4 {
- margin: 0;
-}
-
-li p {
- margin-top: 0;
-}
-
-/*
-Links
-==================================
-*/
-
-a {
- -webkit-transition: .2s;
- -moz-transition: .2s;
- transition: .2s;
-}
-
-a,
-a:link,
-a:visited {
- color: #0072ce;
- border-bottom: 1px dotted #0072ce;
- text-decoration: none;
-}
-
-a:hover {
- border-bottom: 1px solid #7eb8dd;
- color: #7eb8dd;
- text-decoration: none;
-}
-
-a:active {
- border-bottom: 1px solid #002d72;
- color: #002d72;
- text-decoration: none;
-}
-
-a:focus {
- border-bottom: 1px solid #0072ce;
- color: #0072ce;
- outline: thin dotted;
- text-decoration: none;
-}
-
-a.title-link {
- color: #75787B;
- border-bottom: none;
-}
-
-a.title-link:hover,
-a.title-link:active,
-a.title-link:focus {
- color: #7eb8dd;
- border-bottom: none;
-}
-
-a.skip-link {
- color: #0072ce;
- border-bottom: none;
- padding: .25em;
-}
-
-a.skip-link:hover,
-a.skip-link:active,
-a.skip-link:focus {
- background-color: #0072ce;
- color: #fff;
- border-bottom: none;
-}
-
-
-/*
-Navigation
-==================================
-*/
-
-.sidebar-nav a {
- display: block;
- padding: 10px;
- -webkit-transition: unset;
- transition: unset;
-}
-.sidebar-nav a,
-.sidebar-nav a:link,
-.sidebar-nav a:visited {
- border-bottom: none;
- color: #75787b;
-}
-.sidebar-nav li:hover,
-.sidebar-nav a:focus,
-.sidebar-nav li:active,
-.sidebar-nav .sidebar-nav-active {
- color: #75787b;
- border-left: 4px solid#0039AC;
- background-color: transparent;
- border-bottom: 1px solid #babbbd;
-}
-.sidebar-nav li:hover,
-.sidebar-nav li:active,
-.sidebar-nav .sidebar-nav-active {
- padding-left: 0;
-}
-.sidebar-nav a:focus {
- padding-left: 6px;
-}
-.sidebar-nav li:hover a:focus,
-.sidebar-nav li:active a:focus {
- border-left: none;
- padding-left: 10px;
-}
-.sidebar-nav ul {
- margin: 0;
- padding: 0;
- /*border-top: 1px solid @gray-50;*/
-}
-.sidebar-nav li {
- list-style: none;
- border-bottom: 1px solid #babbbd;
- font-size: 1.125em;
- padding-left: 4px;
-}
-.sidebar-nav li:last-child {
- border-bottom: none;
-}
-
-
-/*
-Layout
-==================================
-*/
-
-.logo {
- display: block;
-}
-
-.content {
- padding-top: 2em;
- padding-bottom: 2em;
-}
-
-/* offset the fixed position header for jump links */
-section:before {
- display: block;
- content: "";
- height: 60px;
- margin: -60px 0 0;
-}
-
-.wrap {
- max-width: 1200px;
- margin: 0 auto;
- padding-left: 20px;
- padding-right: 20px;
-}
-
-header {
- width: 100%;
- border-bottom: 4px solid#0039AC;
- background-color: #fff;
- padding: 2em 0;
-}
-
-
-/*
-Footer
-==================================
-*/
-
-/* for sticky footer */
-.container {
- display: table;
- height: 100%;
- width: 100%;
-}
-
-footer {
- display: table-row; /* for sticky footer */
- height: 1px; /* for sticky footer */
- border-top: 2px solid #babbbd;
- background: #f1f2f2;
- width: 100%;
- font-size: 0.875em;
-}
-
-footer .wrap {
- padding-top: 2em;
- padding-bottom: 2em;
-}
-
-
-/*
-Helpers
-==================================
-*/
-
-/* Hide from both screenreaders and browsers: h5bp.com/u */
-.hidden {
- display: none !important;
- visibility: hidden;
-}
-
-/* Hide only visually, but have it available for screenreaders: h5bp.com/v */
-.visuallyhidden {
- border: 0;
- clip: rect(0 0 0 0);
- height: 1px;
- margin: -1px;
- overflow: hidden;
- padding: 0;
- position: absolute;
- width: 1px;
-}
-
-/* Extends the .visuallyhidden class to allow the element to be focusable
- * when navigated to via the keyboard: h5bp.com/p */
-.visuallyhidden.focusable:active,
-.visuallyhidden.focusable:focus {
- clip: auto;
- height: auto;
- margin: 0;
- overflow: visible;
- position: static;
- width: auto;
-}
-
-/* Hide visually and from screenreaders, but maintain layout */
-.invisible {
- visibility: hidden;
-}
-
-
-/*
-Style
-==================================
-*/
-
-.intro {
- color: #75787B;
-}
-
-li h4 {
- margin: 0;
-}
-
-.license {
- font-family: "Avenir Next Demi", Arial, sans-serif;
- font-weight: normal;
- font-style: normal;
-}
-
-pre {
- max-width: 100%;
- font-size: 0.875em;
- overflow-y: scroll;
- background-color: #f1f2f2;
- padding: 10px;
-}
-
-/*
-Post list
-----------------------------------
-*/
-
-ul.posts {
- padding: 0;
-}
-
-.posts li {
- list-style: none;
-}
-
-.post-date {
- color: #75787B;
-}
-
-/*
-Repo list
-----------------------------------
-*/
-
-ul.repo-list {
- margin: .5em 0 1em 0;
- padding: 0;
-}
-
-.repo-list li {
- list-style: none;
-}
-
-.repo-list p {
- margin: 0;
- font-size: 0.875em;
-}
-
-.repo-list h4 {
- text-transform: none;
-}
-
-/*
-Helper Classes
-==================================
-*/
-
-/*
-Clearfix list
-----------------------------------
-*/
-
-.group:before,
-.group:after {
- content: " ";
- display: table;
-}
-
-.group:after {
- clear: both;
-}
-
-.group {
- *zoom: 1;
-}
-
-/*
-Desktop Styles
-==================================
-*/
-
-@media screen and (min-width: 45em) and (min-height: 32.5em) {
-
- /*
- Typography
- ==============================
- */
-
- /*
- Layout
- ==============================
- */
-
- .logo {
- max-width: 30%;
- padding-right: 20px;
- float: right;
- }
-
- aside {
- width: 30%;
- float: left;
- }
-
- .main-content {
- width: 67%;
- float: right;
- margin-bottom: 120px;
- }
-
- /*
- Navigation
- ==============================
- */
-
-
- /*
- Style
- ==============================
- */
-
- /*
- Repo list
- ------------------------------
- */
-
- .repo-list li {
- list-style: none;
- display: block;
- float: left;
- height: 4.0625em;
- max-height: 4.0625em;
- background-color: #E7E7E6;
- border-left: 1px solid #BABBBD;
- width: 30%;
- }
-
- .repo-list a:link,
- .repo-list a:visited {
- display: block;
- max-height: 4.0625em;
- background-color: #E7E7E6;
- border-bottom: none;
- padding: .625em 1em 1em 1em;
- }
-
- .repo-list a:hover {
- color: #4D5F87;
- background-color: #CDE3F1;
- }
-
- .repo-list li:first-child {
- text-align: center;
- border-left: none;
- line-height: 60px;
- padding: .625em 1em;
- width: 10%;
- }
-
-}
-
-@media screen and (max-width: 54.375em) and (min-height: 32.5em) {
-
- /* keep the repo list containers the same height, but account for the need for more height */
-
- .repo-list li {
- height: 6em;
- max-height: 6em;
- }
-
- .repo-list a:link,
- .repo-list a:visited {
- max-height: 6em;
- }
-}
-
-/*
-Mobile Styles
-==================================
-*/
-
-@media screen and (max-width: 40.5em) {
-
- .main-content {
- margin-top: 1.5em;
- }
-
-}
diff --git a/layouts/index.html b/layouts/index.html
index 5fc05d2..a63f145 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -5,7 +5,7 @@
<div id="home">
<h2>Posts</h2>
<ul class="posts">
- {{ $section := where $.Site.RegularPages "Section" "blogpost"}}
+ {{ $section := where $.Site.RegularPages "Section" "post"}}
{{ range $section }}
<li>
<a href="{{ .Page.Permalink }}">{{ .Title }}</a>
diff --git a/layouts/docpage/single.html b/layouts/page/single.html
index e52048b..e52048b 100644
--- a/layouts/docpage/single.html
+++ b/layouts/page/single.html
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index c88e7cc..ab1dabd 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -3,9 +3,9 @@
<a class="skip-link visuallyhidden focusable" href="#main">Skip to Main Content</a>
<nav class="sidebar-nav" role="navigation">
<ul>
- {{ $section := where $.Site.RegularPages "Section" "docpage"}}
+ {{ $section := where $.Site.RegularPages "Section" "page"}}
{{ range $section }}
- <li><a href="{{ .Page.Permalink }}">{{ .Params.slug | humanize }}</a></li>
+ <li><a href="{{ .Page.Permalink }}">{{ .Title | title }}</a></li>
{{ end }}
</ul>
</nav>
diff --git a/layouts/blogpost/single.html b/layouts/post/single.html
index a07dc2a..a07dc2a 100644
--- a/layouts/blogpost/single.html
+++ b/layouts/post/single.html
diff --git a/theme.toml b/theme.toml
index eedcafe..ce277da 100644
--- a/theme.toml
+++ b/theme.toml
@@ -6,8 +6,8 @@ license = "MIT"
licenselink = "https://github.com/edavidaja/hugo-docter/blob/master/LICENSE"
description = "cfpb docter for hugo"
homepage = "http://example.com/"
-tags = ["documentation"]
-features = []
+tags = ["documentation", "blog"]
+features = ["blog"]
min_version = "0.41"
[author]