update prettierrc, clean config files, manual main.html for service articles

This commit is contained in:
brooke 2024-04-13 20:36:12 -04:00
parent 60d01a20e1
commit 27a4ec8f55
5 changed files with 36 additions and 9 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 @@ filename = 'sitemap.xml'
priority = 0.5
[outputs]
home = ["HTML", "RSS", "JSON"]
home = ["HTML"]
[related]
threshold = 0

View file

@ -5,7 +5,6 @@ autoSwitchAppearance = false
enableCodeCopy = true
mainSections = ["services"]
# robots = ""
disableImageOptimization = false
@ -65,11 +64,6 @@ showSummary = true
sharingLinks = [
"linkedin",
"twitter",
"reddit",
"whatsapp",
"telegram",
"pinterest",
"facebook",
"email",
]

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