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
@ -10,48 +10,48 @@ buildDrafts = false
buildFuture = false
[imaging]
anchor = 'Center'
anchor = 'Center'
[taxonomies]
tag = "tags"
category = "categories"
author = "authors"
series = "series"
tag = "tags"
category = "categories"
author = "authors"
series = "series"
[sitemap]
changefreq = 'always'
filename = 'sitemap.xml'
priority = 0.5
changefreq = 'always'
filename = 'sitemap.xml'
priority = 0.5
[outputs]
home = ["HTML", "RSS", "JSON"]
home = ["HTML"]
[related]
threshold = 0
toLower = false
threshold = 0
toLower = false
[[related.indices]]
name = "tags"
weight = 100
[[related.indices]]
name = "tags"
weight = 100
[[related.indices]]
name = "categories"
weight = 100
[[related.indices]]
name = "categories"
weight = 100
[[related.indices]]
name = "series"
weight = 50
[[related.indices]]
name = "series"
weight = 50
[[related.indices]]
name = "authors"
weight = 20
[[related.indices]]
name = "authors"
weight = 20
[[related.indices]]
name = "date"
weight = 10
[[related.indices]]
name = "date"
weight = 10
[[related.indices]]
applyFilter = false
name = 'fragmentrefs'
type = 'fragments'
weight = 10
[[related.indices]]
applyFilter = false
name = 'fragmentrefs'
type = 'fragments'
weight = 10

View file

@ -4,21 +4,17 @@ weight = 1
title = "MycoSystems Co-Op"
[params]
displayName = "EN"
isoCode = "en"
rtl = false
dateFormat = "2 January 2006"
logo = "styles/blue/android-chrome-512x512.png"
description = "Hi, welcome to MycoSystems Web!"
copyright = "Articles are copyleft, no rights reserved. Thank you to the devs @ [Blowfish](https://blowfish.page)"
displayName = "EN"
isoCode = "en"
rtl = false
dateFormat = "2 January 2006"
logo = "styles/blue/android-chrome-512x512.png"
description = "Hi, welcome to MycoSystems Web!"
copyright = "Articles are copyleft, no rights reserved. Thank you to the devs @ [Blowfish](https://blowfish.page)"
[author]
name = "MycoSystems"
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" },
]
name = "MycoSystems"
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" }]

View file

@ -1,13 +1,10 @@
# -- Markup --
# These settings are required for the theme to function.
[goldmark]
[goldmark.renderer]
unsafe = true
unsafe = true
[highlight]
noClasses = false
noClasses = false
[tableOfContents]
startLevel = 2
endLevel = 4
startLevel = 2
endLevel = 4

View file

@ -1,35 +1,35 @@
[[main]]
name = "Services"
pageRef = "services"
weight = 10
name = "Services"
pageRef = "services"
weight = 10
[[main]]
name = "Showcase"
pageRef = "showcase"
weight = 20
name = "Showcase"
pageRef = "showcase"
weight = 20
[[main]]
name = "Stacks"
pageRef = "stacks"
weight = 30
#[[main]]
# identifier = "github"
# pre = "github"
# url = "https://git.myco.systems/explore"
# weight = 400
name = "Stacks"
pageRef = "stacks"
weight = 30
[[footer]]
name = "Services"
pageRef = "services"
weight = 10
identifier = "github"
pre = "github"
url = "https://git.myco.systems/explore"
weight = 400
[[footer]]
name = "Showcase"
pageRef = "showcase"
weight = 20
name = "Services"
pageRef = "services"
weight = 10
[[footer]]
name = "Stacks"
pageRef = "stacks"
weight = 30
name = "Showcase"
pageRef = "showcase"
weight = 20
[[footer]]
name = "Stacks"
pageRef = "stacks"
weight = 30

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,93 +16,97 @@ smartTOC = true
smartTOCHideUnfocusedChildren = false
[header]
layout = "fixed" # valid options: basic, fixed, fixed-fill, fixed-fill-blur
layout = "fixed"
[footer]
showMenu = true
showCopyright = true
showThemeAttribution = false
showAppearanceSwitcher = false
showScrollToTop = true
showMenu = true
showCopyright = true
showThemeAttribution = false
showAppearanceSwitcher = false
showScrollToTop = true
[homepage]
layout = "background" # valid options: page, profile, hero, card, background, custom
# homepageImage = "/img/iceland.jpg" # used in: hero, and card
showRecent = true
showRecentItems = 6
showMoreLink = false
showMoreLinkDest = "services"
cardView = true
cardViewScreenWidth = false
layoutBackgroundBlur = true # only used when layout equals background
layout = "background"
homepageImage = "styles/backgrounds/single-brick.png"
showRecent = true
showRecentItems = 6
showMoreLink = false
showMoreLinkDest = "services"
cardView = true
cardViewScreenWidth = false
layoutBackgroundBlur = true
[article]
showDate = false
showViews = false
showLikes = false
showDateUpdated = false
showAuthor = false
showHero = true
heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
layoutBackgroundBlur = true # only used when heroStyle equals background
showBreadcrumbs = true
showDraftLabel = true
showEdit = false
editAppendPath = false
seriesOpened = false
showHeadingAnchors = true
showPagination = true
invertPagination = false
showReadingTime = true
showTableOfContents = true
showRelatedContent = true
relatedContentLimit = 6
showTaxonomies = true
showAuthorsBadges = true
showWordCount = false
showSummary = true
sharingLinks = [ "linkedin", "twitter", "reddit", "whatsapp", "telegram", "pinterest", "facebook", "email"]
showDate = false
showViews = false
showLikes = false
showDateUpdated = false
showAuthor = false
showHero = true
heroStyle = "background"
layoutBackgroundBlur = true
showBreadcrumbs = true
showDraftLabel = true
showEdit = false
editAppendPath = false
seriesOpened = false
showHeadingAnchors = true
showPagination = true
invertPagination = false
showReadingTime = true
showTableOfContents = true
showRelatedContent = true
relatedContentLimit = 6
showTaxonomies = true
showAuthorsBadges = true
showWordCount = false
showSummary = true
sharingLinks = [
"linkedin",
"twitter",
"email",
]
[list]
showHero = true
heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
layoutBackgroundBlur = true # only used when heroStyle equals background
layoutBackgroundHeaderSpace = false
showBreadcrumbs = false
showSummary = false
showViews = true
showLikes = true
showTableOfContents = true
showCards = true
groupByYear = false
cardView = true
cardViewScreenWidth = false
constrainItemsWidth = true
showHero = true
heroStyle = "background"
layoutBackgroundBlur = true
layoutBackgroundHeaderSpace = false
showBreadcrumbs = false
showSummary = false
showViews = true
showLikes = true
showTableOfContents = true
showCards = true
groupByYear = false
cardView = true
cardViewScreenWidth = false
constrainItemsWidth = true
[sitemap]
excludedKinds = ["taxonomy","term"]
excludedKinds = ["taxonomy", "term"]
[taxonomy]
showTermCount = true
showHero = true
heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
showBreadcrumbs = false
showViews = true
showLikes = true
showTableOfContents = true
cardView = false
showTermCount = true
showHero = true
heroStyle = "background"
showBreadcrumbs = false
showViews = true
showLikes = true
showTableOfContents = true
cardView = false
[term]
showHero = true
heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
showBreadcrumbs = false
showViews = true
showLikes = true
showTableOfContents = true
groupByYear = false
cardView = true
cardViewScreenWidth = false
showHero = true
heroStyle = "background"
showBreadcrumbs = false
showViews = true
showLikes = true
showTableOfContents = true
groupByYear = false
cardView = true
cardViewScreenWidth = false
[firebase]
[fathomAnalytics]

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 }}