diff options
author | Pravin Paratey <pravin@paratey.com> | 2020-01-17 14:20:28 +0300 |
---|---|---|
committer | Pravin Paratey <pravin@paratey.com> | 2020-01-17 14:20:28 +0300 |
commit | 3c961add0c0b4bf60c51ad5732faf36fe0edd386 (patch) | |
tree | 08e101e9f475c612494930b914b0cd2f031cbae4 | |
parent | 138fbc1135443cc46e325b42441f30d765f3d03e (diff) |
Cleaning stuff
-rw-r--r-- | exampleSite/config.toml | 10 | ||||
-rw-r--r-- | images/screenshot.png | bin | 0 -> 859622 bytes | |||
-rw-r--r-- | images/tn.png | bin | 0 -> 734262 bytes | |||
-rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
-rw-r--r-- | layouts/partials/head.html | 8 | ||||
-rw-r--r-- | layouts/partials/menu.html | 4 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 4 | ||||
-rw-r--r-- | static/img/blurb-arrow.png | bin | 1389 -> 0 bytes | |||
-rw-r--r-- | theme.toml | 3 |
9 files changed, 18 insertions, 13 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 58178b2..16bf2cd 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,4 +1,4 @@ -baseURL = "https://cto.me.uk/" +baseURL = "https://example.com/" languageCode = "en-gb" title = "Hugo Theme - Prav" theme = "prav" @@ -6,15 +6,20 @@ theme = "prav" pygmentsCodeFences = "true" pygmentsStyle = "perldoc" +# If you want to track using GA or use disqus for comments, uncomment the +# below and add the right value #googleanalytics = "" #disqusShortname = "" -# Below settings are used throughout the theme. Please update +# The settings below are used throughout the theme. +# Please change them! [params] title = "Hugo Theme - Prav" tagline = "Lorem ipsum dolor sit amet, consectetur adipiscing elit." author = "Pravin Paratey" +# If you do not want a social icon, just comment it out +# Please update the following [social] email = "mailto:pravin@paratey.com" facebook = "https://www.facebook.com/pravin.paratey" @@ -25,6 +30,7 @@ pygmentsStyle = "perldoc" # Set unsafe mode to allow markdownify to work with goldmark +# This is important. Please do not delete. It is used to re-render markdown [markup] [markup.goldmark] [markup.goldmark.renderer] diff --git a/images/screenshot.png b/images/screenshot.png Binary files differnew file mode 100644 index 0000000..f54dbd1 --- /dev/null +++ b/images/screenshot.png diff --git a/images/tn.png b/images/tn.png Binary files differnew file mode 100644 index 0000000..2f2e837 --- /dev/null +++ b/images/tn.png diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 47f5253..e095609 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -9,7 +9,7 @@ <div class="pure-g"> {{- block "main" . }}{{- end }} - {{ if (or (eq .Page.Kind "page") (eq .URL "/")) }} + {{ if (or (eq .Page.Kind "page") (eq .RelPermalink "/")) }} {{- block "sidebar" . }} {{- partial "sidebar.html" . -}} {{- end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 562290e..7e999f5 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -2,10 +2,10 @@ <meta charset="utf-8"> <meta name="theme-color" content="#000" /> <title> - {{ if eq .RelPermalink "/" }} - {{ .Site.Params.Title }} · {{ .Site.Params.Tagline }} + {{ if .IsHome }} + {{ .Site.Title }} {{ .Site.Params.Title }} · {{ .Site.Params.Tagline }} {{ else }} - {{ .Title }} · {{ .Site.Params.Title }} + {{ .Title }} · {{ .Site.Title }} {{ .Site.Params.Title }} {{ end }} </title> @@ -30,4 +30,4 @@ <link rel="manifest" href="/manifest.json"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="generator" content="{{ hugo.Generator }}"> -</head>
\ No newline at end of file +</head> diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 4f9e94f..efb1048 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -1,5 +1,7 @@ <div id="navbar" class="pure-menu pure-menu-open pure-menu-horizontal pure-menu-scrollable"> - <a href="/" class="pure-menu-heading">{{ .Site.Params.title }}</a> + <a href="/" class="pure-menu-heading"> + {{ .Site.Title }} {{ .Site.Params.Title }} + </a> <ul class="pure-menu-list"> <li class="pure-menu-item"> <a href="/posts" class="pure-menu-link"> diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 3d64271..09db687 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -11,7 +11,7 @@ <h3>Latest Articles</h3> <div class="pure-menu pure-menu-open"> <ul class="pure-menu-list"> - {{ range first 10 (where .Site.RegularPages "Section" "posts") }} + {{ range first 10 (where .Site.RegularPages "Type" "in" site.Params.mainSections) }} <li class="pure-menu-item"> <a href="{{ .Permalink }}" class="pure-menu-link">{{ .Title }}<br> <small>{{ .Description }}</small> @@ -31,4 +31,4 @@ {{end}} </div> </div> <!-- pad --> -</div> <!-- sidebar -->
\ No newline at end of file +</div> <!-- sidebar --> diff --git a/static/img/blurb-arrow.png b/static/img/blurb-arrow.png Binary files differdeleted file mode 100644 index 690af50..0000000 --- a/static/img/blurb-arrow.png +++ /dev/null @@ -1,6 +1,3 @@ -# theme.toml template for a Hugo theme -# See https://github.com/gohugoio/hugoThemes#themetoml for an example - name = "Prav" license = "MIT" licenselink = "https://github.com/pravin/hugo-theme-prav/blob/master/LICENSE" |