mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
Support indieweb avatars
This commit is contained in:
parent
e1484ecb78
commit
b66a782aa1
4 changed files with 19 additions and 2 deletions
13
config.toml
13
config.toml
|
@ -111,3 +111,16 @@ excludeDestinations = [
|
|||
"https://useplaintext.email/",
|
||||
"https://seirdy.one",
|
||||
]
|
||||
|
||||
[imaging.exif]
|
||||
# Regexp matching the fields you want to Exclude from the (massive) set of Exif info
|
||||
# available. As we cache this info to disk, this is for performance and
|
||||
# disk space reasons more than anything.
|
||||
# If you want it all, put ".*" in this config setting.
|
||||
# Note that if neither this or ExcludeFields is set, Hugo will return a small
|
||||
# default set: GPS|Exif|Exposure[M|P|B]|Contrast|Resolution|Sharp|JPEG|Metering|Sensing|Saturation|ColorSpace|Flash|WhiteBalance
|
||||
includeFields = ""
|
||||
|
||||
# Regexp matching the Exif fields you want to exclude. This may be easier to use
|
||||
# than IncludeFields above, depending on what you want.
|
||||
excludeFields = ""
|
||||
|
|
|
@ -184,7 +184,7 @@ Whether or not the source code is available for software does not change how ins
|
|||
- Doing so improves vulnerability patchability and future architectural improvement by lowering the barrier to contribution. The fixes that follow can be _shared and used by other projects_ across the field, some of which can in turn be used by the vendor. This isn't a zero-sum game; a rising tide lifts all boats.
|
||||
- It's generally good practice to assume an attacker has full knowledge of a system instead of relying on security through obscurity. Releasing code provides strong assurance that this assumption is being made. It's a way for vendors to put their money where their mouth is.
|
||||
|
||||
Both Patience and {{<indieweb-person first-name="Drew" last-name="Devault" url="https://drewdevault.com/">}} argue that given the above points, a project whose goal is maximum security would release code. Strictly speaking, I agree. Good intentions don't imply good results, but they can _supplement_ good results to provide some trust in a project's future.
|
||||
Both Patience and {{<indieweb-person first-name="Drew" last-name="Devault" url="https://drewdevault.com/" avatar="https://drewdevault.com/avatar.png">}} argue that given the above points, a project whose goal is maximum security would release code. Strictly speaking, I agree. Good intentions don't imply good results, but they can _supplement_ good results to provide some trust in a project's future.
|
||||
|
||||
Conclusion
|
||||
----------
|
||||
|
|
|
@ -199,7 +199,7 @@ Some of this content came from the [Search Engine Map](https://www.searchenginem
|
|||
|
||||
{{<indieweb-person first-name="Matt" last-name="Wells" url="https://gigablast.com/bio.html" org="Gigablast" org-url="https://gigablast.com/">}} also gave me some helpful information on GBY which I included in the "Rationale" section. He's written more about big tech in the [Gigablast blog](https://gigablast.com/blog.html).
|
||||
|
||||
{{<indieweb-person first-name="Nicholas" last-name="Ferrell" url="https://emucafe.club/channel/naferrell" org="The New Leaf Journal" org-url="https://thenewleafjournal.com/">}} wrote a [great post](https://thenewleafjournal.com/a-2021-list-of-alternative-search-engines-and-search-resources/) on alternative search engines. He also gave me some [useful details](https://lists.sr.ht/~seirdy/seirdy.one-comments/%3C20210618031450.rb2twu4ypek6vvl3%40rkumarlappie.attlocal.net%3E) about Seznam, Naver, Baidu, and Goo.
|
||||
{{<indieweb-person first-name="Nicholas" last-name="Ferrell" url="https://emucafe.club/channel/naferrell" org="The New Leaf Journal" org-url="https://thenewleafjournal.com/" avatar="https://thenewleafjournal.com/wp-content/uploads/gravatar/new-leaf-journal-mr-envelope-bd.png">}} wrote a [great post](https://thenewleafjournal.com/a-2021-list-of-alternative-search-engines-and-search-resources/) on alternative search engines. He also gave me some [useful details](https://lists.sr.ht/~seirdy/seirdy.one-comments/%3C20210618031450.rb2twu4ypek6vvl3%40rkumarlappie.attlocal.net%3E) about Seznam, Naver, Baidu, and Goo.
|
||||
|
||||
|
||||
[^1]: Yes, "indexes" is an acceptable plural form of the word "index". The word "indices" sounds weird to me outside a math class.
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
<span itemscope itemtype="https://schema.org/Person" class="h-card vcard">
|
||||
<a itemprop="url" href="{{- .Get "url" -}}" class="u-url url">
|
||||
{{- if (.Get "avatar") -}}
|
||||
{{- $avatar_img := (resources.GetRemote (.Get "avatar")).Resize "32x32" -}}
|
||||
<img itemprop="image" class="u-photo photo" src="{{ $avatar_img.RelPermalink }}" alt="" width="16" height="16">
|
||||
{{- end }}
|
||||
<span itemprop="name" class="p-name fn n">
|
||||
{{- if (.Get "first-name") -}}<span itemprop="givenName" class="p-given-name given-name">{{- .Get "first-name" -}}</span>{{- end }}
|
||||
{{ if (.Get "last-name") -}}<span itemprop="familyName" class="p-family-name family-name">{{- .Get "last-name" -}}</span>{{- end -}}
|
||||
|
|
Loading…
Reference in a new issue