Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New theme - DoIt #26

Merged
merged 4 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "themes/LoveIt"]
path = themes/LoveIt
url = https://github.com/dillonzq/LoveIt.git
[submodule "themes/DoIt"]
path = themes/DoIt
url = https://github.com/HEIGE-PCloud/DoIt.git
3 changes: 3 additions & 0 deletions assets/css/_override.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
article.single.summary {
text-align: center;
}
10 changes: 10 additions & 0 deletions assets/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"*": [
"../themes/DoIt/assets/*"
]
}
}
}
21 changes: 12 additions & 9 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
baseURL = "/"
languageCode = "en-us"
title = "willjasen"
theme = "LoveIt"
theme = "DoIt"
relativeURLS=true
googleAnalytics = "G-H5JWMTWEHQ"
enableRobotsTXT = true

[author]
name = "willjasen"
email = ""
link = "/posts/welcome"
languageCode = "en-us"
summaryLength = 0

[menu]
[[menu.main]]
Expand Down Expand Up @@ -41,6 +37,12 @@ enableRobotsTXT = true
title = "willjasen"
description = "transhumanist and high functioning loser; instantiated simulation, statically stuck in superposition, calculated computationally complex, technomancer at will"
images = ["/android-chrome-512x512.png"]

[params.author]
name = "willjasen"
email = ""
link = "/posts/welcome"

[params.header]
[params.header.title]
name = "the webz"
Expand All @@ -67,7 +69,8 @@ enableRobotsTXT = true
thumbnailUrl = "/profile_pic.jpg"

[params.analytics]
enable = true
enable = true

[params.analytics.google]
id = "G-H5JWMTWEHQ"
anonymizeIP = true
Expand Down Expand Up @@ -130,4 +133,4 @@ enableRobotsTXT = true
Mix = false

[outputs]
home = ["HTML", "JSON"]
home = ["HTML", "JSON", "RSS"]
7 changes: 4 additions & 3 deletions content/about.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
title: "About"
date: 2020-11-22T21:36:27-05:00
draft: false
title: "About"
date: 2020-11-22T21:36:27-05:00
lastmod: 2025-01-22T00:29:00-05:00
draft: false
---

This is me!
Expand Down
7 changes: 4 additions & 3 deletions content/posts/some-static.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
title: "some static"
date: 2025-01-21T21:15:35-05:00
draft: false
title: "some static"
date: 2025-01-21T21:15:35-05:00
lastmod: 2025-01-22T00:29:00-05:00
draft: false
---

*This story was originally published on Reddit to /r/AntiAntiJokes in 2020*
Expand Down
79 changes: 79 additions & 0 deletions layouts/_default/summary.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{{- $params := .Params | merge .Site.Params.page -}}

<article class="single summary">
{{- /* Featured image */ -}}
{{- $image := $params.featuredImagePreview | default $params.featuredImage -}}
{{- with $image -}}
<div class="featured-image-preview">
<a href="{{ $.RelPermalink }}" aria-label={{ $.Title }}>
{{ $optim := slice
(dict "Process" "fill 800x240 Center webp q75" "descriptor" "800w")
(dict "Process" "fill 1200x360 Center webp q75" "descriptor" "1200w")
(dict "Process" "fill 1600x480 Center webp q75" "descriptor" "1600w")
}}
{{- dict "Src" . "Title" $.Title "Resources" $.Resources "Loading" "eager" "Width" "800" "Height" "240" "Sizes" "(max-width: 680px) 100vw, (max-width: 1000px) 80vw, (max-width: 1440px) 56vw, 800px" "OptimConfig" $optim "Alt" (printf "Featured image for %v" $.Title) | partial "plugin/image.html" -}}
</a>
</div>
{{- end -}}

{{- /* Title */ -}}
<h1 class="single-title">
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h1>

{{- /* Meta */ -}}
<div class="post-meta">

{{- with .Site.Params.dateFormat | default "2006-01-02" | .PublishDate.Format -}}
&nbsp;<span class="post-publish">
{{- printf `<time datetime="%v">%v</time>` . . | dict "Date" | T "publishedOnDate" | safeHTML -}}
</span>
{{- end -}}

{{- with (or (.Params.categories) (.Params.series)) -}}
&nbsp;<span class="post-category">
{{- T "includedIn" | safeHTML -}}
</span>
{{- end -}}

{{- $categories := slice -}}
{{- range .Params.categories -}}
{{- $category := partialCached "function/path.html" . . | printf "/categories/%v" | $.Site.GetPage -}}
{{- $icon := partial "plugin/fontawesome.html" (dict "Style" "regular" "Icon" "folder") -}}
{{- $categories = $categories | append (printf `<a href="%v">%v%v</a>` $category.RelPermalink $icon $category.Title) -}}
{{- end -}}
{{- with delimit $categories "&nbsp;" -}}
&nbsp;<span class="post-category">
{{- dict "Categories" . "Count" (len $categories) | T "includedInCategories" | safeHTML -}}
</span>
{{- end -}}

{{- with (and (.Params.categories) (.Params.series)) -}}
&nbsp;<span class="post-category">
{{- T "includedInAnd" | safeHTML -}}
</span>
{{- end -}}

{{- $series := slice -}}
{{- range .Params.series -}}
{{- $singleSeries := partialCached "function/path.html" . . | printf "/series/%v" | $.Site.GetPage -}}
{{- $icon := partial "plugin/fontawesome.html" (dict "Style" "regular" "Icon" "list-alt") -}}
{{- $series = $series | append (printf `<a href="%v">%v%v</a>` $singleSeries.RelPermalink $icon $singleSeries.Title) -}}
{{- end -}}
{{- with delimit $series "&nbsp;" -}}
&nbsp;<span class="post-series">
{{- dict "Series" . | T "includedInSeries" | safeHTML -}}
</span>
{{- end -}}
</div>

{{- /* Summary content */ -}}
<div class="content">
{{- with .Summary -}}
{{- dict "Content" . "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}}
{{- else -}}
{{- .Description | safeHTML -}}
{{- end -}}
</div>

</article>
Loading