-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from willjasen/new-theme
New theme - DoIt
- Loading branch information
Showing
102 changed files
with
3,222 additions
and
1,961 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
article.single.summary { | ||
text-align: center; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"paths": { | ||
"*": [ | ||
"../themes/DoIt/assets/*" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 -}} | ||
<span class="post-publish"> | ||
{{- printf `<time datetime="%v">%v</time>` . . | dict "Date" | T "publishedOnDate" | safeHTML -}} | ||
</span> | ||
{{- end -}} | ||
|
||
{{- with (or (.Params.categories) (.Params.series)) -}} | ||
<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 " " -}} | ||
<span class="post-category"> | ||
{{- dict "Categories" . "Count" (len $categories) | T "includedInCategories" | safeHTML -}} | ||
</span> | ||
{{- end -}} | ||
|
||
{{- with (and (.Params.categories) (.Params.series)) -}} | ||
<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 " " -}} | ||
<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> |
Oops, something went wrong.