Compare commits
2 commits
2250789ae1
...
27a4ec8f55
Author | SHA1 | Date | |
---|---|---|---|
27a4ec8f55 | |||
60d01a20e1 |
7 changed files with 183 additions and 161 deletions
3
.prettierrc
Normal file
3
.prettierrc
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"plugins": ["prettier-plugin-go-template"]
|
||||||
|
}
|
|
@ -2,7 +2,7 @@ theme = "blowfish"
|
||||||
baseURL = "https://web.myco.systems/"
|
baseURL = "https://web.myco.systems/"
|
||||||
defaultContentLanguage = "en"
|
defaultContentLanguage = "en"
|
||||||
|
|
||||||
enableRobotsTXT = true
|
enableRobotsTXT = false
|
||||||
paginate = 100
|
paginate = 100
|
||||||
summaryLength = 30
|
summaryLength = 30
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ buildFuture = false
|
||||||
priority = 0.5
|
priority = 0.5
|
||||||
|
|
||||||
[outputs]
|
[outputs]
|
||||||
home = ["HTML", "RSS", "JSON"]
|
home = ["HTML"]
|
||||||
|
|
||||||
[related]
|
[related]
|
||||||
threshold = 0
|
threshold = 0
|
||||||
|
|
|
@ -17,8 +17,4 @@ title = "MycoSystems Co-Op"
|
||||||
image = "styles/blue/android-chrome-512x512.png"
|
image = "styles/blue/android-chrome-512x512.png"
|
||||||
headline = "Hi, welcome to MycoSystems Web!"
|
headline = "Hi, welcome to MycoSystems Web!"
|
||||||
bio = "Hi, welcome to MycoSystems Web!"
|
bio = "Hi, welcome to MycoSystems Web!"
|
||||||
links = [
|
#links = [{ github = "https://git.myco.systems/explore" }]
|
||||||
{ github = "https://git.myco.systems/explore" },
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
# -- Markup --
|
|
||||||
# These settings are required for the theme to function.
|
|
||||||
|
|
||||||
[goldmark]
|
[goldmark]
|
||||||
[goldmark.renderer]
|
[goldmark.renderer]
|
||||||
unsafe = true
|
unsafe = true
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
pageRef = "stacks"
|
pageRef = "stacks"
|
||||||
weight = 30
|
weight = 30
|
||||||
|
|
||||||
#[[main]]
|
[[footer]]
|
||||||
# identifier = "github"
|
identifier = "github"
|
||||||
# pre = "github"
|
pre = "github"
|
||||||
# url = "https://git.myco.systems/explore"
|
url = "https://git.myco.systems/explore"
|
||||||
# weight = 400
|
weight = 400
|
||||||
|
|
||||||
[[footer]]
|
[[footer]]
|
||||||
name = "Services"
|
name = "Services"
|
||||||
|
|
|
@ -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"
|
colorScheme = "forest"
|
||||||
defaultAppearance = "dark" # valid options: light or dark
|
defaultAppearance = "dark"
|
||||||
autoSwitchAppearance = false
|
autoSwitchAppearance = false
|
||||||
|
|
||||||
enableCodeCopy = true
|
enableCodeCopy = true
|
||||||
|
|
||||||
mainSections = ["services"]
|
mainSections = ["services"]
|
||||||
# robots = ""
|
|
||||||
|
|
||||||
disableImageOptimization = false
|
disableImageOptimization = false
|
||||||
|
|
||||||
|
@ -24,7 +16,7 @@ smartTOC = true
|
||||||
smartTOCHideUnfocusedChildren = false
|
smartTOCHideUnfocusedChildren = false
|
||||||
|
|
||||||
[header]
|
[header]
|
||||||
layout = "fixed" # valid options: basic, fixed, fixed-fill, fixed-fill-blur
|
layout = "fixed"
|
||||||
|
|
||||||
[footer]
|
[footer]
|
||||||
showMenu = true
|
showMenu = true
|
||||||
|
@ -34,15 +26,15 @@ smartTOCHideUnfocusedChildren = false
|
||||||
showScrollToTop = true
|
showScrollToTop = true
|
||||||
|
|
||||||
[homepage]
|
[homepage]
|
||||||
layout = "background" # valid options: page, profile, hero, card, background, custom
|
layout = "background"
|
||||||
# homepageImage = "/img/iceland.jpg" # used in: hero, and card
|
homepageImage = "styles/backgrounds/single-brick.png"
|
||||||
showRecent = true
|
showRecent = true
|
||||||
showRecentItems = 6
|
showRecentItems = 6
|
||||||
showMoreLink = false
|
showMoreLink = false
|
||||||
showMoreLinkDest = "services"
|
showMoreLinkDest = "services"
|
||||||
cardView = true
|
cardView = true
|
||||||
cardViewScreenWidth = false
|
cardViewScreenWidth = false
|
||||||
layoutBackgroundBlur = true # only used when layout equals background
|
layoutBackgroundBlur = true
|
||||||
|
|
||||||
[article]
|
[article]
|
||||||
showDate = false
|
showDate = false
|
||||||
|
@ -51,8 +43,8 @@ smartTOCHideUnfocusedChildren = false
|
||||||
showDateUpdated = false
|
showDateUpdated = false
|
||||||
showAuthor = false
|
showAuthor = false
|
||||||
showHero = true
|
showHero = true
|
||||||
heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
|
heroStyle = "background"
|
||||||
layoutBackgroundBlur = true # only used when heroStyle equals background
|
layoutBackgroundBlur = true
|
||||||
showBreadcrumbs = true
|
showBreadcrumbs = true
|
||||||
showDraftLabel = true
|
showDraftLabel = true
|
||||||
showEdit = false
|
showEdit = false
|
||||||
|
@ -69,12 +61,16 @@ smartTOCHideUnfocusedChildren = false
|
||||||
showAuthorsBadges = true
|
showAuthorsBadges = true
|
||||||
showWordCount = false
|
showWordCount = false
|
||||||
showSummary = true
|
showSummary = true
|
||||||
sharingLinks = [ "linkedin", "twitter", "reddit", "whatsapp", "telegram", "pinterest", "facebook", "email"]
|
sharingLinks = [
|
||||||
|
"linkedin",
|
||||||
|
"twitter",
|
||||||
|
"email",
|
||||||
|
]
|
||||||
|
|
||||||
[list]
|
[list]
|
||||||
showHero = true
|
showHero = true
|
||||||
heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
|
heroStyle = "background"
|
||||||
layoutBackgroundBlur = true # only used when heroStyle equals background
|
layoutBackgroundBlur = true
|
||||||
layoutBackgroundHeaderSpace = false
|
layoutBackgroundHeaderSpace = false
|
||||||
showBreadcrumbs = false
|
showBreadcrumbs = false
|
||||||
showSummary = false
|
showSummary = false
|
||||||
|
@ -93,7 +89,7 @@ smartTOCHideUnfocusedChildren = false
|
||||||
[taxonomy]
|
[taxonomy]
|
||||||
showTermCount = true
|
showTermCount = true
|
||||||
showHero = true
|
showHero = true
|
||||||
heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
|
heroStyle = "background"
|
||||||
showBreadcrumbs = false
|
showBreadcrumbs = false
|
||||||
showViews = true
|
showViews = true
|
||||||
showLikes = true
|
showLikes = true
|
||||||
|
@ -102,7 +98,7 @@ smartTOCHideUnfocusedChildren = false
|
||||||
|
|
||||||
[term]
|
[term]
|
||||||
showHero = true
|
showHero = true
|
||||||
heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
|
heroStyle = "background"
|
||||||
showBreadcrumbs = false
|
showBreadcrumbs = false
|
||||||
showViews = true
|
showViews = true
|
||||||
showLikes = true
|
showLikes = true
|
||||||
|
|
30
layouts/partials/recent-articles/main.html
Normal file
30
layouts/partials/recent-articles/main.html
Normal 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 }}
|
Loading…
Add table
Reference in a new issue