diff options
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | exampleSite/config.toml | 2 | ||||
-rw-r--r-- | layouts/partials/content.html | 3 | ||||
-rw-r--r-- | layouts/partials/footer.html | 1 | ||||
-rw-r--r-- | layouts/partials/header.html | 9 | ||||
-rw-r--r-- | layouts/partials/sub_footer.html | 5 | ||||
-rw-r--r-- | static/css/custom.css | 1 | ||||
-rw-r--r-- | static/css/main.css | 4 | ||||
-rw-r--r-- | static/js/custom.js | 1 |
9 files changed, 24 insertions, 6 deletions
@@ -236,10 +236,10 @@ Example: The theme's design was inspired by many blogs and themes: -1. Bruno de Carvalho's [blog](https://biasedbit.com). +1. Bruno de Carvalho's [blog](http://biasedbit.com). 2. [Hugo Cocoa](https://themes.gohugo.io/cocoa/). 3. [Hugo Vec](https://themes.gohugo.io/hugo-theme-vec/). -4. [Hugo Agency](https://themes.gohugo.io/hugo-agency/). +4. [Hugo Agency](https://themes.gohugo.io/agency/). ## License diff --git a/exampleSite/config.toml b/exampleSite/config.toml index cd36631..d3f52f8 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -74,6 +74,8 @@ copyright = "© 2016. Erlich Bachman. [Some Rights Reserved](http://creativecomm poweredby = true highlightjs = true socialmarkup = true +toc = true +displayrssicon = true ## Main Menu [[menu.main]] diff --git a/layouts/partials/content.html b/layouts/partials/content.html index 79889c8..26e35cb 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -22,6 +22,9 @@ </section> <section id="content-pane" class="row"> <div class="col-md-12 text-justify content"> + {{ if and ( ne .Params.toc false) (gt .WordCount 300 ) }} + {{ .TableOfContents }} + {{ end }} {{ .Content }} </div> </section> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index f2c81b9..5b9829c 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -19,5 +19,6 @@ hljs.initHighlightingOnLoad(); <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> <script src="js/main.js"></script> +<script src="js/custom.js"></script> </body> </html> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index c4b7bde..fa7fa5c 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -12,9 +12,11 @@ <base href="{{ .Site.BaseURL }}"> -<title>{{ .Site.Title }}</title> +<title> +{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }} {{ if eq $url "" }} {{ .Site.Title }} {{ else }} {{ .Site.Title }} - {{ .Title }} {{ end }} +</title> -{{ .Hugo.Generator }} +{{ hugo.Generator }} {{ range .AlternativeOutputFormats -}} <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}"> @@ -26,8 +28,9 @@ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:300,400|Roboto+Slab:400,700|Roboto:300,300i,400,400i,500,500i,700,700i"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> -<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css"> +<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous"> <link rel="stylesheet" href="{{ "css/main.css" | absURL }}"> +<link rel="stylesheet" href="{{ "css/custom.css" | absURL }}"> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> diff --git a/layouts/partials/sub_footer.html b/layouts/partials/sub_footer.html index 1d3974e..c3ed18a 100644 --- a/layouts/partials/sub_footer.html +++ b/layouts/partials/sub_footer.html @@ -3,7 +3,10 @@ {{ with .Site.Params.extra }} <h6 class="text-center copyright">{{ .copyright | markdownify }}</h6> {{ if ne .poweredby false }} - <h6 class="text-center powered">Powered by <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/shenoybr/hugo-goa">Goa</a>.</h6> + <h6 class="text-center powered">Powered by <a href="https://gohugo.io/">Hugo v{{ hugo.Version }}</a> & <a href="https://github.com/shenoybr/hugo-goa">Goa</a>.</h6> {{ end }} + {{ if ne .displayrssicon false }} + <h6><a href="{{ .RSSLink }}" aria-label="RSS Feed"><i class="fas fa-rss" aria-hidden="true"></i></a></h6> + {{ end }} {{ end }} </footer> diff --git a/static/css/custom.css b/static/css/custom.css new file mode 100644 index 0000000..4f174c1 --- /dev/null +++ b/static/css/custom.css @@ -0,0 +1 @@ +/* Add custom CSS here. */ diff --git a/static/css/main.css b/static/css/main.css index 70d9cb4..19a3c77 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -40,6 +40,10 @@ html min-height: 100%; margin: 0; } +li +{ + text-align: left; +} .author { color: #444; diff --git a/static/js/custom.js b/static/js/custom.js new file mode 100644 index 0000000..c0e86c3 --- /dev/null +++ b/static/js/custom.js @@ -0,0 +1 @@ +// Insert custom javascript here. |