1
0
Fork 0

add cad shootout page
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Hamcha 2023-09-14 11:55:12 +02:00
parent a6f7620784
commit 3a17de633b
Signed by: hamcha
GPG key ID: 1669C533B8CF6D89
9 changed files with 70 additions and 16 deletions

9
content/cad-shootout.md Normal file
View file

@ -0,0 +1,9 @@
---
title: Hobby CAD shootout
---
As 3D printing and others means of manufacturing become more accessible to the average Joe, more people are getting familiar with the tools needed to make designs to have manufactured. Today there are many CAD tools around, but which fits the average hobbyist like me the best?
Reading in publication order is suggested (there are callouts) but feel free to pick whatever, I provide plenty of links when I make references:
{{< cad-list >}}

View file

@ -2,6 +2,8 @@
title: "Hobby CAD shootout: FreeCAD"
date: 2023-09-13T22:00:00+02:00
toc: true
software: FreeCAD
license: Free and open source, LGPL license
tags:
- cad
tldr: |

View file

@ -2,6 +2,8 @@
title: "Hobby CAD shootout: Onshape"
date: 2023-09-11T19:00:00+02:00
toc: true
software: Onshape
license: Free for non-commercial, starts at $1500/year/user otherwise
tags:
- cad
tldr: |

View file

@ -2,10 +2,16 @@
<h1>All pages</h1>
<p>These documents are a personal dump of notes and may change at any time.</p>
<section class="post-list">
{{ range .Pages.ByPublishDate.Reverse }}
<article>
<a class="title" href="{{ .RelPermalink }}">{{ .Title }}</a> <span class="lastmod">(Last modified: <time datetime="{{ .Lastmod | time.Format "2006-01-02"}}">{{ .Lastmod | time.Format "2006-01-02"}}</time>)</span>
</article>
{{ end }}
{{ range .Pages.ByPublishDate.Reverse }}
<article>
<a class="title" href="{{ .RelPermalink }}">{{ .Title }}</a>
<span class="lastmod"
>(Last modified:
<time datetime='{{ .Lastmod | time.Format "2006-01-02"}}'
>{{ .Lastmod | time.Format "2006-01-02"}}</time
>)</span
>
</article>
{{ end }}
</section>
{{ end }}

View file

@ -0,0 +1,14 @@
<section class="cad-list">
{{ $pages := where site.RegularPages ".Params.tags" "intersect" (slice "cad") }}
{{- with $pages }}
{{ range .ByPublishDate }}
<article>
<a class="title" href="{{ .RelPermalink }}">{{ with .Params.Software }}{{.}}{{else}}{{.Title}}{{end}}</a>
<time datetime="{{ .Date | time.Format "2006-01-02"}}">(published {{ .Date | time.Format "2006-01-02"}})</time>
{{ with .Params.License }}
<section class="license">{{.}}</section>
{{end}}
</article>
{{ end }}
{{ end }}
</section>

View file

@ -1,13 +1,16 @@
{{ define "main" }}
<h1>Posts tagged "{{ .Title }}"</h1>
<section class="post-list">
{{ range .Pages.ByPublishDate.Reverse }}
<article>
<time datetime="{{ .Date | time.Format "2006-01-02"}}">{{ .Date | time.Format "2006-01-02"}}</time> <a class="title" href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ range .Pages.ByPublishDate.Reverse }}
<article>
<time datetime='{{ .Date | time.Format "2006-01-02"}}'
>{{ .Date | time.Format "2006-01-02"}}</time
>
<a class="title" href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ if .Params.tldr }}
<div class="summary">{{.Params.tldr|markdownify}}</div>
{{ end }}
</article>
{{ end }}
</article>
{{ end }}
</section>
{{ end }}

View file

@ -0,0 +1,16 @@
.cad-list {
article {
.title {
font-size: 17pt;
font-family: $iosevka;
font-weight: bold;
}
time {
color: rgb(160, 155, 166);
}
.license {
font-size: $text-small;
}
margin-bottom: 1.5rem;
}
}

View file

@ -4,3 +4,4 @@
@import "layout.scss";
@import "home.scss";
@import "post.scss";
@import "cad.scss";

View file

@ -1,8 +1,9 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
<section class="meta">
Published on {{.Date | time.Format "2006-01-02" }} {{ if (gt .Lastmod .Date)
}}| Last modified on {{.Lastmod | time.Format "2006-01-02" }} {{ end }}
{{ with .Date }}Published on {{. | time.Format "2006-01-02" }}{{ end }} {{ if
(gt .Lastmod .Date) }}| Last modified on {{.Lastmod | time.Format "2006-01-02"
}} {{ end }}
</section>
{{ if .Params.tldr }}
<div class="tldr">{{.Params.tldr|markdownify}}</div>