update prettierrc, clean config files, manual main.html for service articles
This commit is contained in:
parent
60d01a20e1
commit
27a4ec8f55
5 changed files with 36 additions and 9 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 @@ filename = 'sitemap.xml'
|
||||||
priority = 0.5
|
priority = 0.5
|
||||||
|
|
||||||
[outputs]
|
[outputs]
|
||||||
home = ["HTML", "RSS", "JSON"]
|
home = ["HTML"]
|
||||||
|
|
||||||
[related]
|
[related]
|
||||||
threshold = 0
|
threshold = 0
|
||||||
|
|
|
@ -17,4 +17,4 @@ name = "MycoSystems"
|
||||||
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 = [{ github = "https://git.myco.systems/explore" }]
|
#links = [{ github = "https://git.myco.systems/explore" }]
|
|
@ -5,7 +5,6 @@ autoSwitchAppearance = false
|
||||||
enableCodeCopy = true
|
enableCodeCopy = true
|
||||||
|
|
||||||
mainSections = ["services"]
|
mainSections = ["services"]
|
||||||
# robots = ""
|
|
||||||
|
|
||||||
disableImageOptimization = false
|
disableImageOptimization = false
|
||||||
|
|
||||||
|
@ -65,11 +64,6 @@ showSummary = true
|
||||||
sharingLinks = [
|
sharingLinks = [
|
||||||
"linkedin",
|
"linkedin",
|
||||||
"twitter",
|
"twitter",
|
||||||
"reddit",
|
|
||||||
"whatsapp",
|
|
||||||
"telegram",
|
|
||||||
"pinterest",
|
|
||||||
"facebook",
|
|
||||||
"email",
|
"email",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
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