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

github.com/fiatjaf/classless-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiatjaf <fiatjaf@gmail.com>2018-04-10 07:38:20 +0300
committerfiatjaf <fiatjaf@gmail.com>2018-04-10 15:07:08 +0300
commitfb1ed2e5bbfe8d67271b3d11801f88c596b90991 (patch)
treedef3583f4bcdb9e063ea0aa790c13b076fa75caf
parent7a73c70ba414d3926e8787c37bdc46f8adc595e1 (diff)
metadata needed for publishing on the hugo theme gallery.
-rw-r--r--LICENSE.md9
-rw-r--r--README.md30
-rw-r--r--exampleSite/.gitignore1
-rw-r--r--exampleSite/config.toml10
-rw-r--r--exampleSite/content/_index.md11
-rw-r--r--exampleSite/content/about.md4
-rw-r--r--exampleSite/content/posts/_index.md4
-rw-r--r--exampleSite/content/posts/condimentum.md16
-rw-r--r--exampleSite/content/posts/excepteur.md18
-rw-r--r--exampleSite/content/posts/fugiat-nulla-pariatur.md6
-rw-r--r--exampleSite/content/posts/lorem-ipsum.md11
-rw-r--r--layouts/_default/baseof.html1
12 files changed, 121 insertions, 0 deletions
diff --git a/LICENSE.md b/LICENSE.md
new file mode 100644
index 0000000..422275f
--- /dev/null
+++ b/LICENSE.md
@@ -0,0 +1,9 @@
+The MIT License
+
+Copyright 2018 Giovanni T. Parra
+
+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 the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..55d04ed
--- /dev/null
+++ b/README.md
@@ -0,0 +1,30 @@
+Classless for Hugo
+==================
+
+This Hugo theme features the basic [Classless](https://classless.alhur.es/) templates for your posts and list of posts. One of the [themes supported on Classless](https://classless.alhur.es/themes) may be chosen from your site's `config.toml`, along with the hash of the commit which you want to reference. That is needed because the provider, https://rawgit.com/, needs that to serve cached, cdnized versions of the themes hosted on https://github.com/fiatjaf/classless/tree/master/themes/.
+
+Supported parameters on `config.toml`:
+
+```toml
+[params]
+theme = "the theme name, choose from https://classless.alhur.es/themes"
+commit_sha = "if in doubt, go to https://github.com/fiatjaf/classless and copy the 7 characters from the line that says: 'Latest commit xxxxxxx'"
+description = "a description of your site, will be used on `body > header` and on the <meta> description, when not overriden by pages (in normal posts, it is overriden by the post summary)."
+show_summaries = false // if you don't want automatic summaries in list pages
+```
+
+Partials that should be overwritten:
+
+ * `layouts/partials/aside.html`: the HTML content of the `body > partial` Classless element.
+ * `layouts/partials/footer.html`: the HTML content of the `body > partial` Classless element.
+
+All posts (under `content/posts/`) support the following extra parameters:
+
+```yaml
+cover: a URL to an image to be used on the `article > header` and on list pages
+hide_date: if you want to hide the date
+tags:
+ - an
+ - array
+ - of-tags
+```
diff --git a/exampleSite/.gitignore b/exampleSite/.gitignore
new file mode 100644
index 0000000..a48cf0d
--- /dev/null
+++ b/exampleSite/.gitignore
@@ -0,0 +1 @@
+public
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
new file mode 100644
index 0000000..a25df7f
--- /dev/null
+++ b/exampleSite/config.toml
@@ -0,0 +1,10 @@
+baseURL = "http://cantillon.alhur.es:1313/"
+languageCode = "en-us"
+title = "Classless Base"
+theme = "classless"
+
+[params]
+ theme = "zen"
+ commit_sha = "054d85a"
+ show_summaries = true
+ description = "Nisl condimentum id venenatis a condimentum vitae sapien pellentesque habitant. Eu feugiat pretium nibh ipsum. Adipiscing vitae proin sagittis nisl."
diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md
new file mode 100644
index 0000000..1659c06
--- /dev/null
+++ b/exampleSite/content/_index.md
@@ -0,0 +1,11 @@
+---
+title: "Home"
+menu: main
+hide_date: true
+---
+
+Hello.
+
+This is the Classless Hugo Theme. Despite the name, this is not a theme, but a bundle of themes you can use interchangeably. They all share the same underlying HTML structure, so you can just change the single CSS file tthat defines the theme (even on the go) and everything is good.
+
+For more information, visit https://classless.alhur.es/.
diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md
new file mode 100644
index 0000000..1c9d30d
--- /dev/null
+++ b/exampleSite/content/about.md
@@ -0,0 +1,4 @@
+---
+title: About
+hide_date: true
+---
diff --git a/exampleSite/content/posts/_index.md b/exampleSite/content/posts/_index.md
new file mode 100644
index 0000000..2adfc2b
--- /dev/null
+++ b/exampleSite/content/posts/_index.md
@@ -0,0 +1,4 @@
+---
+title: Posts
+menu: main
+---
diff --git a/exampleSite/content/posts/condimentum.md b/exampleSite/content/posts/condimentum.md
new file mode 100644
index 0000000..a7fd8fe
--- /dev/null
+++ b/exampleSite/content/posts/condimentum.md
@@ -0,0 +1,16 @@
+---
+title: "Condimentum"
+date: 2018-04-10T01:21:27Z
+cover: https://picsum.photos/800/1024
+tags:
+ - risus
+---
+
+Euismod nisi porta lorem mollis aliquam ut porttitor.
+
+ * ullamcorper a lacus vestibulum
+ * sed arcu non
+ * odio euismod lacinia
+ 1. fringilla ut morbi
+ 2. tincidunt augue interdum
+ * velit euismod in.
diff --git a/exampleSite/content/posts/excepteur.md b/exampleSite/content/posts/excepteur.md
new file mode 100644
index 0000000..b70a192
--- /dev/null
+++ b/exampleSite/content/posts/excepteur.md
@@ -0,0 +1,18 @@
+---
+title: "Excepteur"
+date: 2018-04-09T21:37:12Z
+cover: https://picsum.photos/800/600
+tags:
+ - risus
+ - in-massa
+---
+
+## Adipiscing vitae
+
+Nisl condimentum id venenatis a condimentum vitae sapien pellentesque habitant. Eu feugiat pretium nibh ipsum. Adipiscing vitae proin sagittis nisl. Vitae justo eget magna fermentum iaculis eu. Urna nec tincidunt praesent semper feugiat nibh sed. Est ultricies integer quis auctor. Pellentesque habitant morbi tristique senectus et netus. At urna condimentum mattis pellentesque id nibh tortor id aliquet. Arcu risus quis varius quam quisque id diam vel quam. Pulvinar neque laoreet suspendisse interdum. In massa tempor nec feugiat.
+
+## Turpis cursus in hac
+
+![](https://picsum.photos/250/200/?image=947)
+
+Tempor orci eu lobortis elementum. Scelerisque mauris pellentesque pulvinar pellentesque habitant. Adipiscing vitae proin sagittis nisl rhoncus. Fermentum odio eu feugiat pretium nibh ipsum. Turpis cursus in hac habitasse platea dictumst quisque. Amet dictum sit amet justo donec enim diam vulputate ut. Blandit aliquam etiam erat velit. Felis bibendum ut tristique et egestas. Ultricies mi quis hendrerit dolor magna eget est. Sed adipiscing diam donec adipiscing. Volutpat odio facilisis mauris sit amet massa vitae. In ante metus dictum at tempor commodo. Fermentum posuere urna nec tincidunt. Tellus molestie nunc non blandit massa enim nec. Proin libero nunc consequat interdum.
diff --git a/exampleSite/content/posts/fugiat-nulla-pariatur.md b/exampleSite/content/posts/fugiat-nulla-pariatur.md
new file mode 100644
index 0000000..f3d0c3a
--- /dev/null
+++ b/exampleSite/content/posts/fugiat-nulla-pariatur.md
@@ -0,0 +1,6 @@
+---
+title: "Fugiat Nulla Pariatur"
+date: 2018-04-09T21:22:42Z
+---
+
+Ac felis donec et odio pellentesque diam volutpat commodo. Urna id volutpat lacus laoreet non curabitur gravida. Erat imperdiet sed euismod nisi porta lorem. Sed augue lacus viverra vitae congue eu consequat ac. Ullamcorper a lacus vestibulum sed arcu non odio euismod lacinia. Fringilla ut morbi tincidunt augue interdum velit euismod in.
diff --git a/exampleSite/content/posts/lorem-ipsum.md b/exampleSite/content/posts/lorem-ipsum.md
new file mode 100644
index 0000000..94192f9
--- /dev/null
+++ b/exampleSite/content/posts/lorem-ipsum.md
@@ -0,0 +1,11 @@
+---
+title: "Lorem Ipsum"
+date: 2018-04-09T21:20:32Z
+cover: https://picsum.photos/1224/868/
+tags:
+ - in-massa
+---
+
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Feugiat scelerisque varius morbi enim nunc faucibus a. Sed elementum tempus egestas sed. Leo urna molestie at elementum eu facilisis sed.
+
+Risus nec feugiat in fermentum posuere urna nec. Sed cras ornare arcu dui. Vitae semper quis lectus nulla at volutpat diam ut venenatis. In ante metus dictum at. Euismod nisi porta lorem mollis aliquam ut porttitor. Quam pellentesque nec nam aliquam sem et tortor consequat. Amet dictum sit amet justo.
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index ebd2efe..8f3ee7e 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -5,6 +5,7 @@
<meta name="description" content="{{ block "description" . }}{{.Site.Params.description}}{{ end }}">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=yes">
<title>{{ block "title" . }}{{.Site.Title}}{{ end }}</title>
+ {{.Hugo.Generator}}
<link rel="stylesheet" href="https://cdn.rawgit.com/fiatjaf/classless/{{$.Param "commit_sha"}}/themes/{{$.Param "theme"}}/theme.css">
</head>
<body>