Compare commits

..

2 commits

7 changed files with 183 additions and 161 deletions

3
.prettierrc Normal file
View file

@ -0,0 +1,3 @@
{
"plugins": ["prettier-plugin-go-template"]
}

View file

@ -2,7 +2,7 @@ theme = "blowfish"
baseURL = "https://web.myco.systems/"
defaultContentLanguage = "en"
enableRobotsTXT = true
enableRobotsTXT = false
paginate = 100
summaryLength = 30
@ -24,7 +24,7 @@ buildFuture = false
priority = 0.5
[outputs]
home = ["HTML", "RSS", "JSON"]
home = ["HTML"]
[related]
threshold = 0

View file

@ -17,8 +17,4 @@ title = "MycoSystems Co-Op"
image = "styles/blue/android-chrome-512x512.png"
headline = "Hi, welcome to MycoSystems Web!"
bio = "Hi, welcome to MycoSystems Web!"
links = [
{ github = "https://git.myco.systems/explore" },
]
#links = [{ github = "https://git.myco.systems/explore" }]

View file

@ -1,6 +1,3 @@
# -- Markup --
# These settings are required for the theme to function.
[goldmark]
[goldmark.renderer]
unsafe = true

View file

@ -13,11 +13,11 @@
pageRef = "stacks"
weight = 30
#[[main]]
# identifier = "github"
# pre = "github"
# url = "https://git.myco.systems/explore"
# weight = 400
[[footer]]
identifier = "github"
pre = "github"
url = "https://git.myco.systems/explore"
weight = 400
[[footer]]
name = "Services"

View file

@ -1,18 +1,10 @@
# -- Theme Options --
# These options control how the theme functions and allow you to
# customise the display of your website.
#
# Refer to the theme docs for more details about each of these parameters.
# https://blowfish.page/docs/configuration/#theme-parameters
colorScheme = "forest"
defaultAppearance = "dark" # valid options: light or dark
defaultAppearance = "dark"
autoSwitchAppearance = false
enableCodeCopy = true
mainSections = ["services"]
# robots = ""
disableImageOptimization = false
@ -24,7 +16,7 @@ smartTOC = true
smartTOCHideUnfocusedChildren = false
[header]
layout = "fixed" # valid options: basic, fixed, fixed-fill, fixed-fill-blur
layout = "fixed"
[footer]
showMenu = true
@ -34,15 +26,15 @@ smartTOCHideUnfocusedChildren = false
showScrollToTop = true
[homepage]
layout = "background" # valid options: page, profile, hero, card, background, custom
# homepageImage = "/img/iceland.jpg" # used in: hero, and card
layout = "background"
homepageImage = "styles/backgrounds/single-brick.png"
showRecent = true
showRecentItems = 6
showMoreLink = false
showMoreLinkDest = "services"
cardView = true
cardViewScreenWidth = false
layoutBackgroundBlur = true # only used when layout equals background
layoutBackgroundBlur = true
[article]
showDate = false
@ -51,8 +43,8 @@ smartTOCHideUnfocusedChildren = false
showDateUpdated = false
showAuthor = false
showHero = true
heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
layoutBackgroundBlur = true # only used when heroStyle equals background
heroStyle = "background"
layoutBackgroundBlur = true
showBreadcrumbs = true
showDraftLabel = true
showEdit = false
@ -69,12 +61,16 @@ smartTOCHideUnfocusedChildren = false
showAuthorsBadges = true
showWordCount = false
showSummary = true
sharingLinks = [ "linkedin", "twitter", "reddit", "whatsapp", "telegram", "pinterest", "facebook", "email"]
sharingLinks = [
"linkedin",
"twitter",
"email",
]
[list]
showHero = true
heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
layoutBackgroundBlur = true # only used when heroStyle equals background
heroStyle = "background"
layoutBackgroundBlur = true
layoutBackgroundHeaderSpace = false
showBreadcrumbs = false
showSummary = false
@ -93,7 +89,7 @@ smartTOCHideUnfocusedChildren = false
[taxonomy]
showTermCount = true
showHero = true
heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
heroStyle = "background"
showBreadcrumbs = false
showViews = true
showLikes = true
@ -102,7 +98,7 @@ smartTOCHideUnfocusedChildren = false
[term]
showHero = true
heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
heroStyle = "background"
showBreadcrumbs = false
showViews = true
showLikes = true

View file

@ -0,0 +1,30 @@
{{ $recentArticles := 5 }}
{{ $showMoreLinkDest := "/posts" }}
{{ if .Site.Params.homepage.showRecent | default false }}
{{ if index .Site.Params.homepage "showRecentItems" }}
{{ $recentArticles = .Site.Params.homepage.showRecentItems }}
{{ end }}
<h2 class="mt-8 text-2xl font-extrabold mb-10">Service Articles</h2>
{{ if and .Site.Params.homepage.cardView (not .Site.Params.homepage.cardViewScreenWidth) | default false }}
{{ partial "recent-articles/cardview.html" . }}
{{ else if and .Site.Params.homepage.cardView .Site.Params.homepage.cardViewScreenWidth | default false }}
{{ partial "recent-articles/cardview-fullwidth.html" . }}
{{ else }}
{{ partial "recent-articles/list.html" . }}
{{ end }}
{{ if .Site.Params.homepage.showMoreLink | default false }}
{{ if index .Site.Params.homepage "showRecentItems" }}
{{ $showMoreLinkDest = .Site.Params.homepage.showMoreLinkDest }}
{{ end }}
<div class="mt-10 flex justify-center">
<a href="{{ $showMoreLinkDest }}">
<button
class="bg-transparent hover:text-primary-500 prose dark:prose-invert font-semibold hover:text-white py-2 px-4 border border-primary-500 hover:border-transparent rounded">
{{ i18n "recent.show_more" | markdownify | emojify }}
</button>
</a>
</div>
{{ end }}
{{ end }}