adding the comic page and automating the images

pull/1/head
waifu 2 years ago
parent 22ea6ef3fc
commit 5e3def5b18
  1. 20
      config/_default/menus.en.toml
  2. 2
      config/_default/params.toml
  3. 8
      content/_index.md
  4. 0
      content/commitedlines/1/image.png
  5. 2
      content/commitedlines/1/index.md
  6. 10
      content/page/comics/index.md
  7. 0
      content/wafuverse/bootleg/image.png
  8. 0
      content/wafuverse/bootleg/index.md
  9. 92
      layouts/commitedlines/single.html
  10. 92
      layouts/wafuverse/single.html
  11. BIN
      resources/_gen/images/posts/2022/03/27/feature_hu1fa192d29b3e5502bbfc07b4ae7bea6e_47810_600x400_fill_box_smart1_3.png
  12. BIN
      resources/_gen/images/posts/2022/12/beer1/feature_beer_hu89cb13370c0eb7326486dd43c8d8d5f0_334206_600x400_fill_q75_box_smart1.jpg
  13. BIN
      resources/_gen/images/posts/old_site/maekawa/feature_Maekawa_hu14f48d704961b2ee7ff0351237677b4e_656681_600x400_fill_q75_box_smart1.jpg
  14. BIN
      resources/_gen/images/posts/old_site/new_comic/featurehome_huec9471e8e72268392ac2e1417bdf8b11_23135_600x400_fill_q75_box_smart1.jpg
  15. BIN
      resources/_gen/images/posts/old_site/plush/feature_image_hu8d0d38672b9dc6336de933d07e3794f3_3230850_600x400_fill_box_smart1_3.png
  16. BIN
      resources/_gen/images/posts/old_site/present_thoughts/feature_image_hue2a84a5e4fb57fefd2f8bb4f7a7a6c6b_793713_600x400_fill_box_smart1_3.png
  17. BIN
      resources/_gen/images/posts/old_site/site_migration/feature_image_hu2fb1753fea5861bde843fa6dc5169c12_803163_600x400_fill_box_smart1_3.png
  18. BIN
      resources/_gen/images/posts/old_site/time/feature_mastodon_hu35ac84dc6490151c8cb2b47321890a6f_95128_600x400_fill_box_smart1_3.png
  19. 2
      themes/blowfish

@ -15,16 +15,20 @@
pageRef = "posts"
weight = 10
#[[main]]
# name = "Categories"
# pageRef = "categories"
# weight = 20
[[main]]
name = "Categories"
pageRef = "categories"
weight = 20
#[[main]]
# name = "Tags"
# pageRef = "tags"
# weight = 30
[[main]]
name = "Commited Lines"
pageRef = "commitedlines"
weight = 30
[[main]]
name = "Friends"
pageRef = "friends"
weight = 30
# -- Footer Menu --
# The footer menu is displayed at the bottom of the page, just before

@ -12,7 +12,7 @@ autoSwitchAppearance = true
enableSearch = true
enableCodeCopy = true
mainSections = ["posts", "comics"]
mainSections = ["posts", "commitedlines","wafuverse"]
# robots = ""
[header]

@ -1,8 +0,0 @@
---
menu:
main:
name: Home
weight: -100
params:
icon: home
---

Before

Width:  |  Height:  |  Size: 149 KiB

After

Width:  |  Height:  |  Size: 149 KiB

@ -6,5 +6,3 @@ image: "image.png"
categories: ["Comics"]
tags: ["Commited Lines"]
---
![](image.png)

@ -0,0 +1,10 @@
---
title: Comics
comments: false
date: 2022-12-23
---
The comics I do.

Before

Width:  |  Height:  |  Size: 122 KiB

After

Width:  |  Height:  |  Size: 122 KiB

@ -0,0 +1,92 @@
{{ define "main" }}
{{ .Scratch.Set "scope" "single" }}
<article>
{{ if .Params.showHero | default (.Site.Params.article.showHero | default false) }}
{{ $heroStyle := print "partials/hero/" .Site.Params.article.heroStyle ".html" }}
{{ if templates.Exists $heroStyle }}
{{ partial $heroStyle . }}
{{ else }}
{{ partial "partials/hero/basic.html" . }}
{{ end }}
{{- end -}}
<header id="single_header" class="mt-5 max-w-prose">
{{ if .Params.showBreadcrumbs | default (.Site.Params.article.showBreadcrumbs | default false) }}
{{ partial "breadcrumbs.html" . }}
{{ end }}
<h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">
{{ .Title | emojify }}
</h1>
<div class="mt-1 mb-6 text-base text-neutral-500 dark:text-neutral-400 print:hidden">
{{ partial "article-meta.html" (dict "context" . "scope" "single") }}
</div>
</header>
<section class="flex flex-col max-w-full mt-0 prose dark:prose-invert lg:flex-row">
{{ if and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in
.TableOfContents "<ul") }}
<div class="order-first sm:max-w-prose lg:ml-auto px-0 lg:order-last lg:max-w-xs ltr:lg:pl-8 rtl:lg:pr-8">
<div class="toc ltr:pl-5 rtl:pr-5 print:hidden lg:sticky {{ if eq .Site.Params.header.layout "fixed" }} lg:top-[140px] {{ else }} lg:top-10 {{ end }}">
{{ partial "toc.html" . }}
</div>
</div>
{{ end }}
<div class="min-w-0 min-h-0 max-w-prose">
{{ partial "series.html" . }}
{{ .Content | emojify }}
</br></br>
{{ partial "series-closed.html" . }}
</div>
<script>
var oid = "views_{{ .File.Path }}"
var oid_likes = "likes_{{ .File.Path }}"
</script>
{{ $jsPage := resources.Get "js/page.js" }}
{{ $jsPage = $jsPage | resources.Minify | resources.Fingerprint "sha512" }}
<script type="text/javascript" src="{{ $jsPage.RelPermalink }}" integrity="{{ $jsPage.Data.Integrity }}"></script>
</section>
<img src="./image.png" alt="{{ .Title }}">
<footer class="pt-8 max-w-prose print:hidden">
{{ partial "author.html" . }}
{{ $authorsData := .Site.Data.authors }}
{{ $taxonomies := .Site.Taxonomies.authors }}
{{ $baseURL := .Site.BaseURL }}
{{ if not (strings.HasSuffix $baseURL "/") }}
{{ $baseURL = delimit (slice $baseURL "/") "" }}
{{ end }}
{{ range $author := .Page.Params.authors }}
{{ $authorData := index $authorsData $author }}
{{- if $authorData -}}
{{ $taxonomyLink := 0 }}
{{ range $taxonomyname, $taxonomy := $taxonomies }}
{{ if (eq $taxonomyname $author) }}
{{ $taxonomyLink = delimit (slice $baseURL "/authors/" $author) "" }}
{{ end }}
{{ end }}
{{ partial "author-extra.html" (dict "context" . "data" $authorData "link" $taxonomyLink) }}
{{- end -}}
{{ end }}
{{ partial "sharing-links.html" . }}
{{ partial "article-pagination.html" . }}
{{ if .Params.showComments | default (.Site.Params.article.showComments | default false) }}
{{ if templates.Exists "partials/comments.html" }}
<div class="pt-3">
<hr class="border-dotted border-neutral-300 dark:border-neutral-600" />
<div class="pt-3">
{{ partial "comments.html" . }}
</div>
</div>
{{ else }}
{{ warnf "[BLOWFISH] Comments are enabled for %s but no comments partial exists." .File.Path }}
{{ end }}
{{ end }}
</footer>
</article>
{{ end }}

@ -0,0 +1,92 @@
{{ define "main" }}
{{ .Scratch.Set "scope" "single" }}
<article>
{{ if .Params.showHero | default (.Site.Params.article.showHero | default false) }}
{{ $heroStyle := print "partials/hero/" .Site.Params.article.heroStyle ".html" }}
{{ if templates.Exists $heroStyle }}
{{ partial $heroStyle . }}
{{ else }}
{{ partial "partials/hero/basic.html" . }}
{{ end }}
{{- end -}}
<header id="single_header" class="mt-5 max-w-prose">
{{ if .Params.showBreadcrumbs | default (.Site.Params.article.showBreadcrumbs | default false) }}
{{ partial "breadcrumbs.html" . }}
{{ end }}
<h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">
{{ .Title | emojify }}
</h1>
<div class="mt-1 mb-6 text-base text-neutral-500 dark:text-neutral-400 print:hidden">
{{ partial "article-meta.html" (dict "context" . "scope" "single") }}
</div>
</header>
<section class="flex flex-col max-w-full mt-0 prose dark:prose-invert lg:flex-row">
{{ if and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in
.TableOfContents "<ul") }}
<div class="order-first sm:max-w-prose lg:ml-auto px-0 lg:order-last lg:max-w-xs ltr:lg:pl-8 rtl:lg:pr-8">
<div class="toc ltr:pl-5 rtl:pr-5 print:hidden lg:sticky {{ if eq .Site.Params.header.layout "fixed" }} lg:top-[140px] {{ else }} lg:top-10 {{ end }}">
{{ partial "toc.html" . }}
</div>
</div>
{{ end }}
<div class="min-w-0 min-h-0 max-w-prose">
{{ partial "series.html" . }}
{{ .Content | emojify }}
</br></br>
{{ partial "series-closed.html" . }}
</div>
<script>
var oid = "views_{{ .File.Path }}"
var oid_likes = "likes_{{ .File.Path }}"
</script>
{{ $jsPage := resources.Get "js/page.js" }}
{{ $jsPage = $jsPage | resources.Minify | resources.Fingerprint "sha512" }}
<script type="text/javascript" src="{{ $jsPage.RelPermalink }}" integrity="{{ $jsPage.Data.Integrity }}"></script>
</section>
<img src="./image.png" alt="{{ .Title }}">
<footer class="pt-8 max-w-prose print:hidden">
{{ partial "author.html" . }}
{{ $authorsData := .Site.Data.authors }}
{{ $taxonomies := .Site.Taxonomies.authors }}
{{ $baseURL := .Site.BaseURL }}
{{ if not (strings.HasSuffix $baseURL "/") }}
{{ $baseURL = delimit (slice $baseURL "/") "" }}
{{ end }}
{{ range $author := .Page.Params.authors }}
{{ $authorData := index $authorsData $author }}
{{- if $authorData -}}
{{ $taxonomyLink := 0 }}
{{ range $taxonomyname, $taxonomy := $taxonomies }}
{{ if (eq $taxonomyname $author) }}
{{ $taxonomyLink = delimit (slice $baseURL "/authors/" $author) "" }}
{{ end }}
{{ end }}
{{ partial "author-extra.html" (dict "context" . "data" $authorData "link" $taxonomyLink) }}
{{- end -}}
{{ end }}
{{ partial "sharing-links.html" . }}
{{ partial "article-pagination.html" . }}
{{ if .Params.showComments | default (.Site.Params.article.showComments | default false) }}
{{ if templates.Exists "partials/comments.html" }}
<div class="pt-3">
<hr class="border-dotted border-neutral-300 dark:border-neutral-600" />
<div class="pt-3">
{{ partial "comments.html" . }}
</div>
</div>
{{ else }}
{{ warnf "[BLOWFISH] Comments are enabled for %s but no comments partial exists." .File.Path }}
{{ end }}
{{ end }}
</footer>
</article>
{{ end }}

@ -1 +1 @@
Subproject commit 6c0d09ae8cba2a7873f6aee44a9ad28a03382606
Subproject commit 83d6090e16a12fbfe3149c5be9c7dcc43f521a26
Loading…
Cancel
Save