♻️ Refactor projects section to use data file
This commit is contained in:
parent
9e96d2a6ed
commit
6c56f6dc5f
4 changed files with 70 additions and 81 deletions
44
content/web/data/projects.yaml
Normal file
44
content/web/data/projects.yaml
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
- ezcache:
|
||||||
|
name: "ezcache"
|
||||||
|
url: "https://pkg.go.dev/codeberg.org/danjones000/ezcache"
|
||||||
|
desc: "Dead simple in-memory caching library for Go, designed to improve application performance by reducing database load and API calls."
|
||||||
|
|
||||||
|
- nomino:
|
||||||
|
name: "nomino"
|
||||||
|
url: "https://pkg.go.dev/codeberg.org/danjones000/nomino"
|
||||||
|
desc: "Go library for random filename generation, useful for creating unique identifiers and preventing naming conflicts."
|
||||||
|
|
||||||
|
- gin-error-middleware:
|
||||||
|
name: "gin error middleware"
|
||||||
|
url: "https://pkg.go.dev/codeberg.org/danjones000/gin-error-handler"
|
||||||
|
desc: "A middleware for Go Gin framework and wrapper functions to make handling errors easier and more idiomatic, improving API robustness."
|
||||||
|
|
||||||
|
- responsable:
|
||||||
|
name: "Responsable Errors"
|
||||||
|
url: "https://pkg.go.dev/codeberg.org/danjones000/responsable-errors"
|
||||||
|
desc: "A small Go library that provides errors that can be more useful in the context of a web app. The heart of gin error middleware, it enables structured and user-friendly error responses."
|
||||||
|
|
||||||
|
- droplogger:
|
||||||
|
name: "droplogger"
|
||||||
|
url: "https://gitlab.com/danjones000/droplogger"
|
||||||
|
desc: "Python logging application especially suited for life-logging with IFTTT and Dropbox, providing automated personal data collection."
|
||||||
|
|
||||||
|
- my-log:
|
||||||
|
name: "my-log"
|
||||||
|
url: "https://codeberg.org/danjones000/my-log/"
|
||||||
|
desc: "A work-in-progress complete rewrite of droplogger in Go, aiming for improved performance and maintainability."
|
||||||
|
|
||||||
|
- strip-beats:
|
||||||
|
name: "strip-beats"
|
||||||
|
url: "https://codeberg.org/danjones000/strip-beats"
|
||||||
|
desc: "Go CLI app for transforming a folder of music videos and music files, with semi-automatic tagging and a user-friendly TUI, streamlining media organization. *This is a work in progress. Not yet fully functional.*"
|
||||||
|
|
||||||
|
- object-spy:
|
||||||
|
name: "Object Spy"
|
||||||
|
url: "https://packagist.org/packages/danjones000/object-spy"
|
||||||
|
desc: "PHP debugging library that makes it easy to inspect private properties and methods without using reflection, simplifying complex debugging tasks."
|
||||||
|
|
||||||
|
- go-status:
|
||||||
|
name: "http go status"
|
||||||
|
url: "https://codeberg.org/danjones000/http-go-status"
|
||||||
|
desc: "Super simple web server that just returns the HTTP status you ask for, useful for testing and debugging HTTP client behavior."
|
||||||
|
|
@ -2,84 +2,3 @@
|
||||||
id: projects
|
id: projects
|
||||||
---
|
---
|
||||||
## Open Source Projects
|
## Open Source Projects
|
||||||
|
|
||||||
<section class="projects">
|
|
||||||
|
|
||||||
<section class="project ezcache">
|
|
||||||
|
|
||||||
### ezcache
|
|
||||||
|
|
||||||
<a href="https://pkg.go.dev/codeberg.org/danjones000/ezcache" class="noprint">🔗</a>
|
|
||||||
Dead simple in-memory caching library for Go, designed to improve application performance by reducing database load and API calls.
|
|
||||||
|
|
||||||
</section><!-- /.project.ezcache -->
|
|
||||||
|
|
||||||
<section class="project nomino">
|
|
||||||
|
|
||||||
### nomino
|
|
||||||
|
|
||||||
<a href="https://pkg.go.dev/codeberg.org/danjones000/nomino" class="noprint">🔗</a>
|
|
||||||
Go library for random filename generation, useful for creating unique identifiers and preventing naming conflicts.
|
|
||||||
|
|
||||||
</section><!-- /.project.nomino -->
|
|
||||||
|
|
||||||
<section class="project middleware">
|
|
||||||
|
|
||||||
### gin error middleware
|
|
||||||
|
|
||||||
<a href="https://pkg.go.dev/codeberg.org/danjones000/gin-error-handler" class="noprint">🔗</a>
|
|
||||||
A middleware for Go Gin framework and wrapper functions to make handling errors easier and more idiomatic, improving API robustness.
|
|
||||||
|
|
||||||
</section><!-- /.project.middleware -->
|
|
||||||
|
|
||||||
<section class="project responsable">
|
|
||||||
|
|
||||||
### Responsable Errors
|
|
||||||
|
|
||||||
<a href="https://pkg.go.dev/codeberg.org/danjones000/responsable-errors" class="noprint">🔗</a>
|
|
||||||
A small Go library that provides errors that can be more useful in the context of a web app. The heart of gin error middleware, it enables structured and user-friendly error responses.
|
|
||||||
|
|
||||||
</section><!-- /.project.responsable -->
|
|
||||||
|
|
||||||
<section class="project log">
|
|
||||||
|
|
||||||
### droplogger
|
|
||||||
|
|
||||||
<a href="https://gitlab.com/danjones000/droplogger" class="noprint">🔗</a>
|
|
||||||
Python logging application especially suited for life-logging with IFTTT and Dropbox, providing automated personal data collection.
|
|
||||||
|
|
||||||
#### my-log
|
|
||||||
|
|
||||||
<a href="https://codeberg.org/danjones000/my-log/" class="noprint">🔗</a>
|
|
||||||
A work-in-progress complete rewrite of droplogger in Go, aiming for improved performance and maintainability.
|
|
||||||
|
|
||||||
</section><!-- /.project.log -->
|
|
||||||
|
|
||||||
<section class="project strip-beats">
|
|
||||||
|
|
||||||
### strip-beats
|
|
||||||
|
|
||||||
<a href="https://codeberg.org/danjones000/strip-beats" class="noprint">🔗</a>
|
|
||||||
Go CLI app for transforming a folder of music videos and music files, with semi-automatic tagging and a user-friendly TUI, streamlining media organization. *This is a work in progress. Not yet fully functional.*
|
|
||||||
|
|
||||||
</section><!-- /.project.strip-beats -->
|
|
||||||
|
|
||||||
<section class="project object-spy">
|
|
||||||
|
|
||||||
### Object Spy
|
|
||||||
|
|
||||||
<a href="https://packagist.org/packages/danjones000/object-spy" class="noprint">🔗</a>
|
|
||||||
PHP debugging library that makes it easy to inspect private properties and methods without using reflection, simplifying complex debugging tasks.
|
|
||||||
|
|
||||||
</section><!-- /.project.object-spy -->
|
|
||||||
|
|
||||||
<section class="project go-status">
|
|
||||||
|
|
||||||
### http go status
|
|
||||||
|
|
||||||
<a href="https://codeberg.org/danjones000/http-go-status" class="noprint">🔗</a>
|
|
||||||
Super simple web server that just returns the HTTP status you ask for, useful for testing and debugging HTTP client behavior.
|
|
||||||
|
|
||||||
</section><!-- /.project.go-status -->
|
|
||||||
|
|
||||||
</section><!-- /.projects -->
|
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,14 @@
|
||||||
{{ range .Resources.Match "sections/*.md" }}
|
{{ range .Resources.Match "sections/*.md" }}
|
||||||
<aside id="{{ .Params.id }}" class="{{ .Params.class }}">
|
<aside id="{{ .Params.id }}" class="{{ .Params.class }}">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
{{- if eq .Params.id "projects" }}
|
||||||
|
{{ $dataPath := "data/projects.yaml" }}
|
||||||
|
{{ with $.Resources.Get $dataPath }}
|
||||||
|
{{ partial "projects.html" . }}
|
||||||
|
{{ else }}
|
||||||
|
{{ errorf "Unable to get %s" $dataPath }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
</aside>
|
</aside>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
||||||
18
layouts/_partials/projects.html
Normal file
18
layouts/_partials/projects.html
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
<section class="projects">
|
||||||
|
|
||||||
|
{{ with . | transform.Unmarshal -}}
|
||||||
|
{{- range $project := . -}}
|
||||||
|
{{- range $slug, $proj := $project -}}
|
||||||
|
<section class="project {{ $slug }}">
|
||||||
|
|
||||||
|
<h3>{{ $proj.name }}</h3>
|
||||||
|
|
||||||
|
<p><a href="{{ $proj.url }}" class="noprint">🔗</a>
|
||||||
|
{{ $proj.desc }}</p>
|
||||||
|
|
||||||
|
</section><!-- /.project.{{ $slug }} -->
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
</section>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue