From b980df8bf5a29ba8567beba56b97474dd9dbb3c3 Mon Sep 17 00:00:00 2001 From: Brandon Date: Sat, 26 Oct 2024 20:10:22 -0400 Subject: clean unused components, fix hugo.toml to support columns shortcode --- README.md | 21 +++++++++++++++++++++ _default/baseof.html | 44 -------------------------------------------- _default/single.html | 6 ------ content-old/_index.md | 9 --------- hugo.toml | 21 ++++++--------------- static/style.css | 33 --------------------------------- 6 files changed, 27 insertions(+), 107 deletions(-) delete mode 100755 _default/baseof.html delete mode 100644 _default/single.html delete mode 100644 content-old/_index.md diff --git a/README.md b/README.md index 7cec74e..1308aa7 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,28 @@ # Theme Name +Portes ## Features +Barely any, by design. This theme is meant to be as simple as possible. Most sites I've made with it wind up being under 500KiB. +However, it does have a couple of very basic shortcodes: + +### column(s): +- Create a column block with `{{% columns %}}` +- Everything inside of the first `{{% column %}}` will be on the left side, +and everything within the second will be on the right. +- I may decide to add support for three or more columns, but only if I need it. +If you decide to patch it in yourself, feel free to shoot me an email and I'll consider adding it upstream. + +### icon: +- Used to add a clickable icon link +- `{{< icon src="/[your-icon]" alt="[alt-text]" link="https://example.org/[your-account]" >}} ` ## Installation +` +cd [your site]/themes + +git clone https://git.btkoch.xyz/portes.git/ +` ## Configuration +The top bar will populate with any pages in the menu "main". + diff --git a/_default/baseof.html b/_default/baseof.html deleted file mode 100755 index 3a2c806..0000000 --- a/_default/baseof.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - {{ $title := site.Title }} - {{ if not .IsHome }} - {{ $title = printf "%s | %s" .Title site.Title }} - {{ end }} - - {{ $title }} - - - - -
- -
- {{ partial "menu.html" . }} -
-
-
- - -
-
- {{ block "main" . }}{{ end }} -
-
- - - -
-
- - - - diff --git a/_default/single.html b/_default/single.html deleted file mode 100644 index c7110a4..0000000 --- a/_default/single.html +++ /dev/null @@ -1,6 +0,0 @@ -{{ define "main" }} - -

{{ .Title }}

-{{ .Content }} - -{{ end }} diff --git a/content-old/_index.md b/content-old/_index.md deleted file mode 100644 index 652623b..0000000 --- a/content-old/_index.md +++ /dev/null @@ -1,9 +0,0 @@ -+++ -title = 'Home' -date = 2023-01-01T08:00:00-07:00 -draft = false -+++ - -Laborum voluptate pariatur ex culpa magna nostrud est incididunt fugiat -pariatur do dolor ipsum enim. Consequat tempor do dolor eu. Non id id anim anim -excepteur excepteur pariatur nostrud qui irure ullamco. diff --git a/hugo.toml b/hugo.toml index c4b80f5..4eca957 100644 --- a/hugo.toml +++ b/hugo.toml @@ -2,22 +2,13 @@ baseURL = 'https://example.org/' languageCode = 'en-us' title = 'My New Hugo Site' -# [[menus.main]] -# name = 'Home' -# pageRef = '/' -# weight = 10 -# -# [[menus.main]] -# name = 'Services Offered' -# pageRef = '/services' -# weight = 20 -# -# [[menus.main]] -# name = 'Contact' -# pageRef = '/contact' -# weight = 30 - [module] [module.hugoVersion] extended = false min = "0.116.0" + + +[markup] + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true diff --git a/static/style.css b/static/style.css index fa1fd6a..613844d 100644 --- a/static/style.css +++ b/static/style.css @@ -77,17 +77,6 @@ th, td { box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); } -/* -.column { - flex: 1; -} - -.row { - display: flex; - column-gap: 20px; -} -*/ - .contact { font-size: 140%; color: #D9D9D9; @@ -116,9 +105,7 @@ th, td { .topnav li a { color: #174372; -/* display: block; */ text-align: center; -/* padding: 14px 16px; */ text-decoration: none; transform: none; } @@ -127,23 +114,3 @@ th, td { color: #174372; } -/* For columns shortcode: */ -.md-columns { - display: flex; - flex-wrap: wrap; - margin-left: -1rem; - margin-right: -1rem; - - div { - flex: 1 1; - margin: 1rem 0; - min-width: 100px; - max-width: 100%; - padding: 0 1rem; - } - - .markdown-inner { - margin-top: 0; - margin-bottom: 0; - } -} -- cgit v1.2.3