Add series supports
This commit is contained in:
@@ -11,5 +11,10 @@ categories:
|
||||
images:
|
||||
keywords:
|
||||
series:
|
||||
- Tech News
|
||||
- Printing With ReportLab
|
||||
- Hugo tricks
|
||||
- Django tricks
|
||||
- Indiweb, webmentions and friends
|
||||
---
|
||||
|
||||
|
||||
@@ -39,3 +39,6 @@ outputs:
|
||||
services:
|
||||
rss:
|
||||
limit: 20
|
||||
|
||||
taxonomies:
|
||||
series: series
|
||||
|
||||
@@ -10,6 +10,8 @@ title: Microsoft buy Atom, Electron and Open Source
|
||||
meta:
|
||||
- github
|
||||
- microsoft
|
||||
series:
|
||||
- Tech News
|
||||
---
|
||||
|
||||
Microsoft now own Github. From this we need to make some talk about the question which all the open source community is doing: "_Whas are going to change into the OpenSource comunity or into the public code?_"
|
||||
|
||||
@@ -11,6 +11,8 @@ categories:
|
||||
- dev
|
||||
- rant
|
||||
description: "For be a good programmer you need to be a blogger and write regulary"
|
||||
series:
|
||||
- "A dev need a blog"
|
||||
---
|
||||
|
||||
I find the way to become a good programmer:
|
||||
|
||||
@@ -12,11 +12,12 @@ categories:
|
||||
- dev
|
||||
- fingerfood
|
||||
description: "Adding Lazy load, WebP and AVIF to your Hugo"
|
||||
|
||||
meta:
|
||||
- webp
|
||||
- avif
|
||||
- lazy load
|
||||
series:
|
||||
- Hugo tricks
|
||||
---
|
||||
|
||||
New work and new knowledge. For having a better site/blog performance you can use _loadding="static"_ in the resources you need last and, if there are img, you can use avif and webp for faster render page time.
|
||||
|
||||
@@ -15,7 +15,8 @@ categories:
|
||||
- fingerfood
|
||||
slug: "Letterhead-with-ReportLab"
|
||||
description: "Sometime you need to have a letterhead document generated by your application and here we explain how to make it with Reportlab"
|
||||
|
||||
series:
|
||||
- Printing With ReportLab
|
||||
---
|
||||
|
||||
Sometime you need to make some pdf looking more professional.
|
||||
|
||||
@@ -13,6 +13,8 @@ description: "Three years later I talk about Microsoft buying Github"
|
||||
meta:
|
||||
- github
|
||||
- microsoft
|
||||
series:
|
||||
- Tech News
|
||||
---
|
||||
|
||||
This post is a follow up to one of my old post: [Microsoft buy Atom, Electron and Open Source](/post/2018/microsoft-buy-atom-electron-and-open-source).
|
||||
|
||||
@@ -11,12 +11,13 @@ categories:
|
||||
- fingerfood
|
||||
- dev
|
||||
description: "Generate WebP and AVIF with Hugo"
|
||||
|
||||
meta:
|
||||
- webp
|
||||
- avif
|
||||
- lazy load
|
||||
- microformat
|
||||
series:
|
||||
- Hugo tricks
|
||||
---
|
||||
|
||||
## In the last episode
|
||||
|
||||
@@ -13,8 +13,9 @@ categories:
|
||||
- dev
|
||||
- fingerfood
|
||||
description: "How to have infinite scrolling in Django FilterView"
|
||||
|
||||
meta:
|
||||
series:
|
||||
- Django tricks
|
||||
---
|
||||
|
||||
Sometime you want to have infinite scrolling in a Django ListView.
|
||||
|
||||
@@ -17,6 +17,10 @@ meta:
|
||||
- pdf
|
||||
- python
|
||||
Focus_Keyword: "django pdf reportlab"
|
||||
series:
|
||||
- Django tricks
|
||||
- Printing With ReportLab
|
||||
|
||||
---
|
||||
|
||||
Sometime you need to print a pdf from your site or your web app with some custom data.
|
||||
|
||||
@@ -14,8 +14,8 @@ categories:
|
||||
- post
|
||||
- fingerfood
|
||||
description: "How to make a django form for reading BarCode and QRCode"
|
||||
|
||||
meta:
|
||||
series:
|
||||
- Django tricks
|
||||
---
|
||||
For work I need to implement a strange usercase: I need to have a form with QRCode and BarCode input.
|
||||
|
||||
|
||||
@@ -14,6 +14,8 @@ categories:
|
||||
- dev
|
||||
- coding
|
||||
description: "Adding Indieweb and Webmention in my blog"
|
||||
series:
|
||||
- Indiweb, webmentions and friends
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -16,6 +16,9 @@ description: "How to use Django messages with Boostrap5"
|
||||
meta:
|
||||
- message
|
||||
- allert
|
||||
series:
|
||||
- Django tricks
|
||||
|
||||
---
|
||||
|
||||
Sometime you need to send an allert/message from your Django project to the user, like a popup or a gui message for an user interaction ("Sent the mail", "Done the task", ...) and you want to make it with style (Boostrap in this case).
|
||||
|
||||
@@ -18,6 +18,9 @@ mp-syndicate-to:
|
||||
- https://brid.gy/publish/mastodon
|
||||
aliases:
|
||||
- /post/2023/02/more-stuff-i-do-with-webmention-micropub-and-bridgy/
|
||||
series:
|
||||
- Hugo tricks
|
||||
- Indiweb, webmentions and friends
|
||||
---
|
||||
|
||||
After my first work on Micropub, Microformat and WebMention (you can find more [here]({{< ref "/post/2022/indieweb-webmention-and-h-entry-in-my-blog" >}} "How I implement Indieweb, Webmention and H Entry in My Blog")) I change some things here and there.
|
||||
|
||||
@@ -22,8 +22,7 @@ keywords:
|
||||
aliases:
|
||||
- "/post/2024/new-render-image-fot-hugo/"
|
||||
series:
|
||||
- https://fundor333.com/post/2021/hugo-with-lazy-loading-and-webp/
|
||||
- https://fundor333.com/post/2021/webp-and-avif-with-hugo-generator/
|
||||
- Hugo tricks
|
||||
---
|
||||
|
||||
## The story so far
|
||||
|
||||
@@ -19,6 +19,8 @@ keywords:
|
||||
- blog
|
||||
- site
|
||||
- social media
|
||||
series:
|
||||
- "A dev need a blog"
|
||||
---
|
||||
|
||||
I am a HUGE RSS reader so sometime I find something interesting and I want to read the full post.
|
||||
|
||||
@@ -11,9 +11,10 @@ categories:
|
||||
- dev
|
||||
images:
|
||||
keywords:
|
||||
series:
|
||||
feature_link: "https://www.midjourney.com/home/"
|
||||
feature_text: "by IA Midjourney"
|
||||
series:
|
||||
- Hugo tricks
|
||||
---
|
||||
|
||||
A lot of time ago I was an active user of DevianArt[^1] where I share my photos.
|
||||
|
||||
@@ -15,6 +15,8 @@ keywords:
|
||||
- blogging
|
||||
- hacking
|
||||
series:
|
||||
- Hugo tricks
|
||||
- Indiweb, webmentions and friends
|
||||
---
|
||||
|
||||
A lot of time ago I implement the Webmention in my site following a lot of blogpost.
|
||||
|
||||
@@ -13,7 +13,6 @@ keywords:
|
||||
- bash
|
||||
- terminal
|
||||
- zsh
|
||||
series:
|
||||
feature_link: "https://www.midjourney.com/home/"
|
||||
feature_text: "by IA Midjourney"
|
||||
---
|
||||
|
||||
@@ -13,9 +13,10 @@ keywords:
|
||||
- meta
|
||||
- photo
|
||||
- social network
|
||||
series:
|
||||
feature_link: "https://www.midjourney.com/home/"
|
||||
feature_text: "by IA Midjourney"
|
||||
series:
|
||||
- Tech News
|
||||
---
|
||||
|
||||
Instagram is a social network based on images and more recently on short format video (TikTok style) called stories.
|
||||
|
||||
@@ -17,6 +17,12 @@ You mentioned this post on your site? Send a <a href="https://indieweb.org/Webme
|
||||
<br>
|
||||
{{ $related := .Site.RegularPages.Related . | first 5 }}
|
||||
|
||||
{{- if .Params.series -}}
|
||||
<div class="post-series-bottom">
|
||||
{{ partial "series.html" . }}
|
||||
</div>
|
||||
{{- end -}}
|
||||
|
||||
{{ with $related }}
|
||||
<h3>See Also</h3>
|
||||
|
||||
|
||||
23
layouts/partials/series.html
Normal file
23
layouts/partials/series.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{{- with (.GetTerms "series") -}}
|
||||
{{- range . -}}
|
||||
{{- $series := .Pages.ByDate -}}
|
||||
<details class="entry-toc">
|
||||
<summary>
|
||||
<span class="entry-toc-header">
|
||||
This post is part of the <strong>{{ .Title }}</strong> series
|
||||
</span>
|
||||
</summary>
|
||||
<ol>
|
||||
{{- range $series -}}
|
||||
<li>
|
||||
{{- if eq .File.UniqueID $.File.UniqueID -}}
|
||||
<b>{{ .Title }}</b>
|
||||
{{- else -}}
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
{{- end -}}
|
||||
</li>
|
||||
{{- end -}}
|
||||
</ol>
|
||||
</details>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
@@ -21,4 +21,3 @@
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
<h1> ----- </h1>
|
||||
{{ $urlized := (replace (absURL .RelPermalink) "http://localhost:1313" "https://fundor333.com") | md5 }}
|
||||
|
||||
|
||||
|
||||
{{index .Site.Data.webmentions $urlized }}
|
||||
|
||||
{{ if index .Site.Data.webmentions $urlized }}
|
||||
|
||||
{{ $data:= index (index .Site.Data.webmentions $urlized ) "stats" }}
|
||||
|
||||
<h1>---</h1>
|
||||
|
||||
{{ $likes := index (index .Site.Data $urlized) "like-of" }}
|
||||
{{ $replys := index (index .Site.Data $urlized) "in-reply-to" }}
|
||||
{{ $reposts := index (index .Site.Data $urlized) "repost-of"}}
|
||||
<h4>Likes</h4>
|
||||
{{ range $i, $like := $likes }}
|
||||
<a href="{{$like.url}}"><img src="{{ $like.author.photo}}" alt="{{ $like.author.name }}" class="profile photo"></a>
|
||||
{{end}}
|
||||
|
||||
<h4>Reposts</h4>
|
||||
{{ range $i, $repost := $reposts }}
|
||||
<a href="{{$repost.url}}"><img src="{{ $repost.author.photo}}" alt="{{ $repost.author.name }}" class="profile photo"></a>
|
||||
{{end}}
|
||||
|
||||
<h4>Comments and Replies</h4>
|
||||
{{ range $i, $reply := $replys }}
|
||||
<a href="{{$reply.url}}"><img src="{{ $reply.author.photo}}" alt="{{ $reply.author.name }}" class="profile photo"></a>
|
||||
{{end}}
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user