Skip to content

Commit 7609050

Browse files
committed
2024 public repos
1 parent 95098da commit 7609050

File tree

11 files changed

+75
-30
lines changed

11 files changed

+75
-30
lines changed

.markdownlint-cli2.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"MD055": false,
1111
"MD056": false
1212
},
13-
"ignores": ["node_modules", "content/de/blog/test1.md", "CHANGELOG.md", "README.md", "content/en/projects", "content/en/blog/get-licenses-from-used-nuget-packages-for-your-.net-core-solution.md"]
13+
"ignores": ["node_modules", "content/de/blog/test1.md", "CHANGELOG.md", "README.md", "content/en/projects", "content/en/blog/get-licenses-from-used-nuget-packages-for-your-.net-core-solution.md", "content/en/blog/my-public-2024-created-github-repositories.md"]
1414
}

adminEditor/data/categories.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
{
88
"name": "Software Development",
9-
"count": 4
9+
"count": 5
1010
}
1111
]
1212
}

adminEditor/data/tags.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@
3535
{
3636
"name": "streamlit",
3737
"count": 1
38+
},
39+
{
40+
"name": "Python",
41+
"count": 1
42+
},
43+
{
44+
"name": "GitHub",
45+
"count": 1
3846
}
3947
]
4048
}

adminEditor/main.go

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -375,13 +375,19 @@ func handleCreatePost(w http.ResponseWriter, r *http.Request) {
375375
}
376376

377377
if request.Thumbnail.LocalFile == "" && request.Thumbnail.URL == "" {
378-
destFile := filepath.Join(config.Server.AssetFolder, request.Slug+".jpg")
379-
err := createImageWithImagePig(request.Title, destFile)
380-
if err != nil {
381-
http.Error(w, "Error creating thumbnail: "+err.Error(), http.StatusInternalServerError)
382-
return
378+
newFileName := request.Slug + ".jpg"
379+
destFile := filepath.Join(config.Server.AssetFolder, newFileName)
380+
// Check if file exists
381+
if _, err := os.Stat(destFile); err == nil {
382+
fmt.Printf("File exists already: %s\n", destFile)
383+
} else {
384+
err := createImageWithImagePig(request.Title, destFile)
385+
if err != nil {
386+
http.Error(w, "Error creating thumbnail: "+err.Error(), http.StatusInternalServerError)
387+
return
388+
}
383389
}
384-
request.Thumbnail.LocalFile = destFile
390+
request.Thumbnail.URL = "/img/blog/" + newFileName
385391
}
386392

387393
if request.Thumbnail.LocalFile != "" && request.Thumbnail.URL == "" {
@@ -408,6 +414,7 @@ func handleCreatePost(w http.ResponseWriter, r *http.Request) {
408414
log.Printf("Processed media file: %s -> %s\n", request.Thumbnail.LocalFile, newFileName)
409415

410416
request.Thumbnail.URL = "/img/blog/" + newFileName
417+
411418
}
412419

413420
// Determine the target folder based on language
@@ -418,7 +425,9 @@ func handleCreatePost(w http.ResponseWriter, r *http.Request) {
418425
case "en":
419426
targetFolder = config.Server.EnglishFolder
420427
default:
421-
http.Error(w, "Invalid language", http.StatusBadRequest)
428+
w.Header().Set("Content-Type", "application/json")
429+
w.WriteHeader(http.StatusBadRequest)
430+
json.NewEncoder(w).Encode(map[string]string{"error": "Invalid language"})
422431
return
423432
}
424433

209 KB
Loading

content/de/blog/2024-05-15-ausprobieren---jahr-2024.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Dinge die ich im Jahr **2024** ausprobieren (wieder neu beginnen) möchte:
1818
- Hugo / GoLong einarbeiten semi {{< fas fa-check-to-slot >}}
1919
- Hugo Admin Editor {{< fas fa-check-to-slot >}} Einiges ausgetestet mit Golang, vanilla js und Co. Ganz zufrieden bin ich nicht; einige Bereiche sind gelungen, andere gefallen mir weniger. Mal sehen was daraus wird. Auf jeden Fall einiges gelernt.
2020
- Coding / Aufgaben durch AI Tools verringern, austesten {{< fas fa-check-to-slot >}}
21-
- Smartphone Display austauschen. Update 12/2024: Nachdem ich das Smartphone nur zum Musikhören und zum Telefonieren via Headset verwende und es dafür noch gut ist, habe ich mich bisher nicht durchringen können das Display zu tauschen.
21+
- Smartphone Display austauschen. Update 12/2024: Nachdem ich das Smartphone nur zum Musikhören und zum Telefonieren via Headset verwende und es dafür noch gut ist, habe ich mich bisher nicht durchringen können das Display zu tauschen.
2222
- yahtzee Block per WebApp zusammenrechnen und Würfelwahrscheinlichkeiten ausrechnen. Aktuell spielen wir fast jeden Abend eine Runde nach dem Abendessen :smile:
2323
- Lenovo Notebook Speicher aufrüsten, ohne clips abzubrechen {{< fas fa-check-to-slot>}}
2424

content/en/HugoFrontendEditor/frontend-editor-hugo-go-doc1.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ The backend with the HTTP API is defined for now all in the main.go file in the
5858

5959
- **resizeImage**: Resizes an image using the provided dimensions and resampling method.
6060

61+
- **createImageWithImagePig**: Create a new image based on the slug title with imagepig api option FLUX.1-schnell
62+
6163
### d.o.it Hugo / Hinode Theme Admin Editor
6264

6365
{{< refLink ref="try-out-create-a-frontend-editor-for-hugo--hinode-theme-with-go.md" lang="en" text="Start - Admin Editor" showButton="true" color="info" >}}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
excludeTOC: true
3+
title: 'My public 2024 created GitHub repositories'
4+
slug: my-public-2024-created-github-repositories
5+
description: 'Overview GitHub repositories over a filtered year created with python'
6+
date: 2025-01-01T10:46:00Z
7+
tags: [Python,GitHub]
8+
categories: [Software Development]
9+
thumbnail:
10+
url: '/img/blog/my-public-2024-created-github-repositories.jpg'
11+
author: 'd.o.it - image created based on the title'
12+
origin: 'd.o.it Admin Editor: imagepig api - FLUX.1-schnell'
13+
---
14+
15+
{{< table >}}
16+
| Name | Description | URL |
17+
|------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------|
18+
| hinode-mod-slideshow-gallery | Hugo Hinode Module - Slideshow Gallery | [Link](https://github.com/d-oit/hinode-mod-slideshow-gallery) |
19+
| hinode-mod-image-lightbox-gallery | Hugo Hinode Lightbox Gallery | [Link](https://github.com/d-oit/hinode-mod-image-lightbox-gallery) |
20+
| blip_mistral_image_description_output | This project is a Streamlit application that generates image descriptions using the BLIP model and Mistral Vision API. It allows users to input a folder of images, generate descriptions, translate them into different languages, and approve the descriptions. | [Link](https://github.com/d-oit/blip_mistral_image_description_output) |
21+
| basketball-streams-to-calendar-ai-prompt | React WebApp: Basketball live streams prompt Google Calendar events creator with Google API | [Link](https://github.com/d-oit/basketball-streams-to-calendar-ai-prompt) |
22+
{.table-striped}
23+
{{< /table >}}
24+
25+
{{< button icon="fab github" order="first" href="https://github.com/d-oit/github-repo-summary/" >}}GitHub Source Code - Script{{< /button >}}

content/en/projects/hinode-hugo-slideshow-gallery-module.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@ thumbnail:
1111
url: img/projects/hugo-hinode-slideshow-gallery/Fullscreen.jpg
1212
author: d.o.
1313
layout: docs
14+
excludeToc: true
1415
lang: en-US
1516
slug: project-hugo-hinode-module-slideshow-gallery
16-
includeToc: true
1717
categories:
1818
- Web
1919
modules: ["slideshow-gallery"]
2020
resources:
21+
- src: "img/projects/hugo-hinode-slideshow-gallery/frontMatter.jpg"
22+
title: "Definition of the slideshow gallery"
23+
params:
24+
description: "Definition of the slideshow gallery with the image filename, title and description."
2125
- src: "img/projects/hugo-hinode-slideshow-gallery/DivPage.jpg"
2226
title: "Slideshow div."
2327
params:
@@ -26,12 +30,7 @@ resources:
2630
title: "Fullscreen Slideshow"
2731
params:
2832
description: "Slideshow Gallery in fullscreen mode with thumbnails on the bottom."
29-
- src: "img/projects/hugo-hinode-slideshow-gallery/frontMatter.jpg"
30-
title: "Definition of the slideshow gallery"
31-
params:
32-
description: "Definition of the slideshow gallery with the image filename, title and description."
33-
draft: false
34-
33+
3534
---
3635

3736
## Hinode module: A slideshow gallery shortcode for Hugo compatible with Hinode
@@ -48,6 +47,6 @@ draft: false
4847

4948
{{< file full="false" path="./content/en/projects/hinode-hugo-slideshow-gallery-module.md" lang="yaml" id="definition-frontmatter-file1" show="false" options="linenos=table,hl_lines=19-32,linenostart=19" >}}
5049

51-
## Github readme
52-
53-
{{< ghcode "https://raw.githubusercontent.com/d-oit/hinode-mod-slideshow-gallery/refs/heads/main/README.md" >}}
50+
{{< button color="primary" cue=false order="last" icon="fab github" tooltip="Source Code on github" href="https://github.com/d-oit/hinode-mod-slideshow-gallery/blob/main/README.md" >}}
51+
GitHub readme
52+
{{< /button >}}

hugo_stats.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,6 @@
472472
"2024-11-22-add-previous-next-button",
473473
"Copyright",
474474
"TableOfContents",
475-
"about",
476475
"automating-playwright-tests-from-a-sitemap-with-mistral-ai",
477476
"backToTop",
478477
"backend",
@@ -503,12 +502,10 @@
503502
"clearFilterButton",
504503
"code-verwendung",
505504
"conclusion",
506-
"configtoml",
507505
"configuration",
508506
"configuration-front-matter-output",
509507
"contact",
510508
"content",
511-
"contributing",
512509
"cookies",
513510
"creation-of-the-editor",
514511
"currentThemeIcon",
@@ -517,8 +514,6 @@
517514
"date-without-time",
518515
"datenschutz",
519516
"discussions--issue",
520-
"distslideshow-galleryjs",
521-
"distslideshow-galleryscss",
522517
"doit-hugo--hinode-theme-admin-editor",
523518
"doit-hugo-frontend-editor",
524519
"doit-projects",
@@ -532,7 +527,6 @@
532527
"erweiterungen",
533528
"example-front-matter-output",
534529
"example-test-showcustom404specjs",
535-
"examples",
536530
"excessive-space-usage-by-xiaomi-gallery-app-on-android-phones",
537531
"explanation-of-showcustom404specjs",
538532
"fa-calendar",
@@ -567,6 +561,7 @@
567561
"fas-tree",
568562
"fas-tv",
569563
"fas-up-right-from-square",
564+
"fazit--gedanken-um-jahr-2024",
570565
"filterGroup",
571566
"first-impression",
572567
"fn:1",
@@ -595,7 +590,6 @@
595590
"google-calendar",
596591
"grafik",
597592
"hinode-hugo-lightbox-gallery-integration",
598-
"hinode-module---slideshow-gallery",
599593
"hinode-module-a-slideshow-gallery-shortcode-for-hugo-compatible-with-hinode",
600594
"history",
601595
"hosting",
@@ -618,7 +612,6 @@
618612
"list-of-modified-files",
619613
"listView",
620614
"liveToastSaveThemMode",
621-
"load-the-module-in-the-markdown-file-in-front-matter",
622615
"lokale-installation",
623616
"navbar-0-collapse",
624617
"net-create-excel-or-text-license-file-for-used-nuget-packages",
@@ -646,8 +639,6 @@
646639
"searchBoxInlinePage",
647640
"setting-up-playwrightconfigjs",
648641
"slideshow-gallery-definitions",
649-
"slideshow-gallery-markdown-shortcode",
650-
"slideshow-gallery-shortcode-parameters",
651642
"slideshow-sample",
652643
"solution",
653644
"solution-1-get-package",

0 commit comments

Comments
 (0)