From 51d17bbce6f0ff67a3e81f746b574dd1c900df9a Mon Sep 17 00:00:00 2001 From: Adam Ormsby Date: Thu, 23 Jan 2020 16:15:18 +0700 Subject: [PATCH 01/11] add position param to imgproc just like image and figure --- layouts/shortcodes/imgproc.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/imgproc.html b/layouts/shortcodes/imgproc.html index d4ac2de..662a37c 100644 --- a/layouts/shortcodes/imgproc.html +++ b/layouts/shortcodes/imgproc.html @@ -14,7 +14,7 @@ {{ $image := .Scratch.Get "image" }} -
+
{{ with .Inner }}
From b7a187917bb326f10206b8730924e8b07821b6a8 Mon Sep 17 00:00:00 2001 From: Adam Ormsby Date: Wed, 29 Jan 2020 12:45:05 +0700 Subject: [PATCH 02/11] add local position var --- layouts/shortcodes/imgproc.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/imgproc.html b/layouts/shortcodes/imgproc.html index 662a37c..6681b0a 100644 --- a/layouts/shortcodes/imgproc.html +++ b/layouts/shortcodes/imgproc.html @@ -1,6 +1,7 @@ {{ $original := .Page.Resources.GetMatch (printf "*%s*" (.Get 0)) }} {{ $command := .Get 1 }} {{ $options := .Get 2 }} +{{ $position := .Get 3}} {{ if eq $command "Fit"}} {{ .Scratch.Set "image" ($original.Fit $options) }} @@ -14,7 +15,7 @@ {{ $image := .Scratch.Get "image" }} -
+
{{ with .Inner }}
From 9598012a77c4782de1abe8e23e219092ac92b857 Mon Sep 17 00:00:00 2001 From: Adam Ormsby Date: Fri, 31 Jan 2020 15:22:29 +0700 Subject: [PATCH 03/11] update README --- README.md | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 7808341..7943d13 100644 --- a/README.md +++ b/README.md @@ -10,19 +10,21 @@ This theme is pretty basic and covers all of the essentials. All you have to do --- -- [Features](#features) -- [Built-in shortcodes](#built-in-shortcodes) -- [Code highlighting](#code-highlighting) -- [How to start](#how-to-start) -- [How to configure](#how-to-configure) -- [How to add a cover image to your posts](#how-to-add-a-cover-image-to-your-posts) -- [Add-ons](#add-ons) -- [How to run your site](#how-to-run-your-site) -- [How to edit the theme](#how-to-edit-the-theme) -- [How to contribute](#how-to-contribute) -- [Hello Friend theme user?](#hello-friend-theme-user) -- [Sponsoring](#sponsoring) -- [Licence](#licence) +- [Hello Friend](#hello-friend) + - [DEMO - https://hugo-hello-friend.now.sh/](#demo---httpshugo-hello-friendnowsh) + - [Features](#features) + - [Built-in shortcodes](#built-in-shortcodes) + - [Code highlighting](#code-highlighting) + - [How to start](#how-to-start) + - [How to configure](#how-to-configure) + - [How to add a cover image to your posts](#how-to-add-a-cover-image-to-your-posts) + - [Add-ons](#add-ons) + - [How to run your site](#how-to-run-your-site) + - [How to edit the theme](#how-to-edit-the-theme) + - [How to contribute](#how-to-contribute) + - [`Hello Friend` theme user?](#hello-friend-theme-user) + - [Sponsoring](#sponsoring) + - [License](#license) ## Features @@ -37,7 +39,9 @@ This theme is pretty basic and covers all of the essentials. All you have to do - eg: `{{< image src="/img/hello.png" alt="Hello Friend" position="center" style="border-radius: 8px;" >}}` - **`figure`** (same as `image`, plus few optional props: **`caption`**, **`captionPosition`** (left | **center** is default | right), **`captionStyle`** - eg: `{{< figure src="/img/hello.png" alt="Hello Friend" position="center" style="border-radius: 8px;" caption="Hello Friend!" captionPosition="right" captionStyle="color: red;" >}}` -- **`imgproc`** Hugo shortcode for image processing. More info at [https://gohugo.io/content-management/image-processing/](https://gohugo.io/content-management/image-processing/) +- **`imgproc`** Hugo shortcode for image processing, plus additional **`position`** param [ left | center | right ] (optional). + - eg: `{{< imgproc "img/hello.png" Resize "250x" center />}}` + - More detailed info on processing commands at [https://gohugo.io/content-management/image-processing/](https://gohugo.io/content-management/image-processing/) #### Code highlighting From f9e72c9d4cb98b27ebcaae3d78fdbd52ecbfcd04 Mon Sep 17 00:00:00 2001 From: Adam Ormsby Date: Thu, 12 Mar 2020 23:16:33 +0700 Subject: [PATCH 04/11] add basic table of contents --- layouts/_default/single.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b58ef9a..53cab35 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -40,6 +40,10 @@ {{ end }}
+ {{ if .Params.Toc }} +

Table of Contents

+ + {{ end }} {{ .Content }}
{{ if eq .Type $.Site.Params.contentTypeName }} From dab37f7e537df47f20e0c986e2e602298ba27aca Mon Sep 17 00:00:00 2001 From: Adam Ormsby Date: Thu, 12 Mar 2020 23:28:53 +0700 Subject: [PATCH 05/11] udpate readme --- README.md | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index b3eefdc..0742298 100644 --- a/README.md +++ b/README.md @@ -10,21 +10,23 @@ This theme is pretty basic and covers all of the essentials. All you have to do --- -- [Features](#features) -- [Built-in shortcodes](#built-in-shortcodes) -- [Code highlighting](#code-highlighting) -- [How to start](#how-to-start) -- [How to configure](#how-to-configure) -- [How to add a cover image to your posts](#how-to-add-a-cover-image-to-your-posts) -- [How to display the Last Modified Date in your posts](#how-to-display-the-last-modified-date-in-your-posts) -- [How to hide "Read more" button](#how-to-hide-read-more-button) -- [Add-ons](#add-ons) -- [How to run your site](#how-to-run-your-site) -- [How to edit the theme](#how-to-edit-the-theme) -- [How to contribute](#how-to-contribute) -- [Hello Friend theme user?](#hello-friend-theme-user) -- [Sponsoring](#sponsoring) -- [Licence](#licence) +- [Hello Friend](#hello-friend) + - [DEMO - https://hugo-hello-friend.now.sh/](#demo---httpshugo-hello-friendnowsh) + - [Features](#features) + - [Built-in shortcodes](#built-in-shortcodes) + - [Code highlighting](#code-highlighting) + - [How to start](#how-to-start) + - [How to configure](#how-to-configure) + - [How to add a cover image to your posts](#how-to-add-a-cover-image-to-your-posts) + - [How to display the Last Modified Date in your posts](#how-to-display-the-last-modified-date-in-your-posts) + - [How to hide "Read more" button](#how-to-hide-%22read-more%22-button) + - [Add-ons](#add-ons) + - [How to run your site](#how-to-run-your-site) + - [How to edit the theme](#how-to-edit-the-theme) + - [How to contribute](#how-to-contribute) + - [`Hello Friend` theme user?](#hello-friend-theme-user) + - [Sponsoring](#sponsoring) + - [License](#license) ## Features @@ -92,6 +94,10 @@ paginate = 5 # Show reading time in minutes for posts showReadingTime = false + # Show table of contents at the top of your posts (defaults to false) + # Alternatively, add this param to post front matter for specific posts + toc = true + [languages] [languages.en] title = "Hello Friend" From c964eb8ea76fe384f4204b616ee9f81ab9db6967 Mon Sep 17 00:00:00 2001 From: Adam Ormsby Date: Sat, 2 May 2020 17:14:01 -0500 Subject: [PATCH 06/11] add 404 page with tag list --- layouts/_default/404.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 layouts/_default/404.html diff --git a/layouts/_default/404.html b/layouts/_default/404.html new file mode 100644 index 0000000..f63c85c --- /dev/null +++ b/layouts/_default/404.html @@ -0,0 +1,19 @@ +{{ define "main" }} +
+

{{ .Title | markdownify }}

+
+

{{ "Hmm... Sorry, this page seems to be missing." | markdownify }} + {{ if .Site.Taxonomies.tags }} + {{ "Maybe these tags will help you find what you're looking for. :smile:" | markdownify | emojify }}

+

Tags

+
+ +
+ {{ end }} +
+
+{{ end }} \ No newline at end of file From 2be3c241d5b0dc1981af3c429326ae4abe0b209f Mon Sep 17 00:00:00 2001 From: Guilherme Esteves Date: Sat, 16 May 2020 21:41:26 -0300 Subject: [PATCH 07/11] make "more" entire li clickable --- source/css/menu.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/css/menu.css b/source/css/menu.css index a0b81a0..bc9be99 100644 --- a/source/css/menu.css +++ b/source/css/menu.css @@ -112,7 +112,6 @@ li { .menu__inner & { margin-left: 0; - padding: 10px; white-space: nowrap; &:hover { @@ -126,6 +125,12 @@ } } } + + li a { + width: 100%; + display:inline-block; + padding: 10px; + } } } From 82db432dbc3df45e254ec876498a7c046d6fd169 Mon Sep 17 00:00:00 2001 From: Guilherme Esteves Date: Wed, 20 May 2020 18:59:18 -0300 Subject: [PATCH 08/11] update source/css/menu.css MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Radek Kozieł --- source/css/menu.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/css/menu.css b/source/css/menu.css index bc9be99..15e4824 100644 --- a/source/css/menu.css +++ b/source/css/menu.css @@ -128,7 +128,7 @@ li a { width: 100%; - display:inline-block; + display: inline-block; padding: 10px; } } From 6ce7aed1315363f5a60520849bb7a5f57474e3bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Kozie=C5=82?= Date: Tue, 26 May 2020 20:14:00 +0200 Subject: [PATCH 09/11] Add Kartini Teknologi team to the user list --- USERS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/USERS.md b/USERS.md index 43ae30b..3694521 100644 --- a/USERS.md +++ b/USERS.md @@ -25,3 +25,4 @@ TEMPLATE: - https://mritd.com/ - **漠然** (Software Engineer and DevOps) - https://ilya-lesikov.com - **Ilya Lesikov** (DevOps, SRE) - https://www.adamormsby.com - **Adam Ormsby** (Generalist Programmer - Web, Mobile, Games) +- https://kartiniteknologi.id/ - **Kartini Teknologi team** (Tech podcast) From c0460675385eec2f4e93d4b6623a26d17b3f75b3 Mon Sep 17 00:00:00 2001 From: Adam Ormsby Date: Tue, 26 May 2020 14:02:11 -0500 Subject: [PATCH 10/11] move 404 to layouts/ --- layouts/{_default => }/404.html | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename layouts/{_default => }/404.html (100%) diff --git a/layouts/_default/404.html b/layouts/404.html similarity index 100% rename from layouts/_default/404.html rename to layouts/404.html From b1305f42faa90c405b1d39e6e46447606b28bf1e Mon Sep 17 00:00:00 2001 From: Adam Ormsby Date: Tue, 26 May 2020 18:48:26 -0500 Subject: [PATCH 11/11] add site param check --- layouts/_default/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 53cab35..f9370f9 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -40,7 +40,7 @@ {{ end }}
- {{ if .Params.Toc }} + {{ if or .Params.Toc $.Site.Params.Toc }}

Table of Contents

{{ end }}