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

github.com/softwareyoga/ronu-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeepak Karanth <deepak.karanth@gmail.com>2020-03-06 14:54:28 +0300
committerDeepak Karanth <deepak.karanth@gmail.com>2020-03-06 14:54:28 +0300
commitfc78ffad55a56595a8e9677f7e6a96a448b90d4e (patch)
treefbe9a19ae183ad38550adba988a75f5a4ec71fa1
parent0329d46204d5e2bcac6f9106e3b7c6aca00d3e5b (diff)
seperation of theme and site content and removal of hardcoded type post
-rw-r--r--README.md17
-rw-r--r--assets/css/normalize.css (renamed from static/css/normalize.css)0
-rw-r--r--layouts/404.html2
-rw-r--r--layouts/_default/single.html9
-rw-r--r--layouts/partials/head.html8
5 files changed, 23 insertions, 13 deletions
diff --git a/README.md b/README.md
index b7262b9..8c76635 100644
--- a/README.md
+++ b/README.md
@@ -59,6 +59,17 @@ Second, specify `ronu` as your default theme in the `config.toml` file. Just add
at the top of the file.
+## Base configuration
+
+First include the following configuration in the config file:
+
+```toml
+# Site settings
+baseURL = "https://www.example.com/"
+languageCode = "en-us"
+title = "MySiteTitle"
+theme = "ronu"
+```
## Options
@@ -128,8 +139,8 @@ googleAnalytics = "Your tracking code"
## Author
**Deepak Karanth**
-- https://github.com/softwareyoga
-- https://www.softwareyoga.com
+* https://github.com/softwareyoga
+* https://www.softwareyoga.com
## Contributing
@@ -143,4 +154,4 @@ Primary goals are:
## License
-Open sourced under the [MIT license](LICENSE.md).
+Open sourced under the [MIT license](LICENSE.md). \ No newline at end of file
diff --git a/static/css/normalize.css b/assets/css/normalize.css
index b0c1902..b0c1902 100644
--- a/static/css/normalize.css
+++ b/assets/css/normalize.css
diff --git a/layouts/404.html b/layouts/404.html
index 0a77030..d36c372 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -6,4 +6,4 @@
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
-{{ end }}
+{{ end }} \ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 54c416b..47e86d3 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,8 +1,5 @@
{{ define "main" }}
- {{ if and (.IsPage) (eq .Type "post") }}
- <h1>{{ .Title }}</h1>
- <time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format "January 2, 2006" }}</time>
- {{ end }}
-
- {{ .Content }}
+ <h1>{{ .Title }}</h1>
+ <time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format "January 2, 2006" }}</time>
+ {{ .Content }}
{{ end }} \ No newline at end of file
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 689af5d..00f0b01 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -24,11 +24,13 @@
{{ end -}}
<!-- Styles -->
- <link rel="stylesheet" href='{{ "css/normalize.css" | absURL }}'>
-
+ {{- $normalize_css := resources.Get "css/normalize.css" }}
+
{{- $inServerMode := .Site.IsServer }}
{{- $cssTarget := "css/style.css" }}
{{- $cssOptions := cond ($inServerMode) (dict "targetPath" $cssTarget "enableSourceMap" true) (dict "targetPath" $cssTarget "outputStyle" "compressed") }}
{{- $style := resources.Get "scss/style-in-use.scss" | toCSS $cssOptions }}
- <link rel="stylesheet" href="{{ $style.Permalink }}">
+
+ {{- $css := slice $normalize_css $style | resources.Concat "css/bundle.css" | resources.Minify }}
+ <link rel="stylesheet" href="{{ $css.Permalink }}">
</head> \ No newline at end of file