social image fix, rss custom image added
This commit is contained in:
parent
427050ba07
commit
f273778fd0
|
@ -11,11 +11,11 @@ categories:
|
|||
bigimg: audigy.jpg
|
||||
---
|
||||
|
||||
My initial [Windows 98SE retro PC build](/post/2020/10/building-an-athlon-win98-retro-pc) came with a free [Ensoniq AudioPCI](https://en.wikipedia.org/wiki/Sound_Blaster#Ensoniq_AudioPCI-based_cards) based card, a cheap 1998 OEAM alternative to the AWE64 or the Sound Blaster Live! line. The Sound Blaster PCI128 or _Vibra128_ is basically the same card, as it contains a Creative AudioPCI chip. The card is good enough if you're not picky, but it comes with a few major downsides:
|
||||
My initial [Windows 98SE retro PC build](/post/2020/10/building-an-athlon-win98-retro-pc) came with a free [Ensoniq AudioPCI](https://en.wikipedia.org/wiki/Sound_Blaster#Ensoniq_AudioPCI-based_cards) based card, a cheap 1998 OEM alternative to the _AWE64_ or the _Sound Blaster Live!__ line. The Sound Blaster PCI128 or _Vibra128_ is basically the same card, as it contains a Creative AudioPCI chip. The card is good enough if you're not picky, but it comes with a few major downsides:
|
||||
|
||||
1. No external header pins for those cool looking `5.2"` audio drive bays;
|
||||
2. No EAX support for games;
|
||||
3. Horribly - just _horrible_ Sound Blaster 16 (SB16) DOS emulation;
|
||||
3. Horrible, _horrible_ Sound Blaster 16 (SB16) DOS emulation (see below);
|
||||
4. No digital audio out;
|
||||
5. Analog audio out is not that great.
|
||||
|
||||
|
|
|
@ -0,0 +1,58 @@
|
|||
{{- $baseurl := .Site.BaseURL -}}
|
||||
{{- $pctx := . -}}
|
||||
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
||||
{{- $pages := slice -}}
|
||||
{{- if or $.IsHome $.IsSection -}}
|
||||
{{- $pages = $pctx.RegularPages -}}
|
||||
{{- else -}}
|
||||
{{- $pages = $pctx.Pages -}}
|
||||
{{- end -}}
|
||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
||||
{{- if ge $limit 1 -}}
|
||||
{{- $pages = $pages | first $limit -}}
|
||||
{{- end -}}
|
||||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
||||
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
||||
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
||||
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
|
||||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
|
||||
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||
{{ end }}
|
||||
{{ range $pages }}
|
||||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<comments>{{ .Permalink }}#commento</comments>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
||||
<guid>{{ .Permalink }}</guid>
|
||||
{{ if .Keywords }}
|
||||
{{ range .Keywords }}
|
||||
<category>{{ . }}</category>
|
||||
{{ end }}
|
||||
{{ else if .Params.tags }}
|
||||
{{ range .Params.tags }}
|
||||
<category>{{ . }}</category>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<description>
|
||||
{{ `<![CDATA[ ` | safeHTML }}
|
||||
{{ if .Params.bigimg }}
|
||||
<img align="left" hspace="5" src="{{ $baseurl }}bigimg/{{ .Params.bigimg }}"/>
|
||||
{{ end }}
|
||||
|
||||
{{ .Summary | html }}
|
||||
]]>
|
||||
</description>
|
||||
</item>
|
||||
{{ end }}
|
||||
</channel>
|
||||
</rss>
|
|
@ -5,24 +5,7 @@
|
|||
<div style="padding-top: 3rem">
|
||||
</div>
|
||||
{{ else }}
|
||||
{{- $imgsmall := $image.Resize "768x jpg q70" }}
|
||||
{{- $imgmedium := $image.Resize "960x jpg q85" }}
|
||||
|
||||
<style>
|
||||
.big-img {
|
||||
background-image: url({{ $imgsmall.RelPermalink }});
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.big-img {
|
||||
background-image: url({{ $imgmedium.RelPermalink }});
|
||||
}
|
||||
}
|
||||
@media (min-width: 960px) {
|
||||
.big-img {
|
||||
background-image: url({{ $image.RelPermalink }});
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<!-- jumbotron big-img see head-meta.html -->
|
||||
<div class="jumbotron big-img">
|
||||
<div class="container">
|
||||
|
||||
|
|
|
@ -22,7 +22,29 @@
|
|||
<meta property="og:url" content="{{ .Permalink }}" />
|
||||
<meta property="og:type" content="{{ if .Params.type }}{{ .Params.type }}{{ else }}website{{ end }}" />
|
||||
{{ if .Params.bigimg }}
|
||||
<meta property="og:image" content="{{.Site.BaseURL}}{{ .Params.bigimg }}" />
|
||||
{{- $image := resources.Get (printf "%s%s" "bigimg/" .Params.bigimg ) -}}
|
||||
{{ if eq $image nil }}
|
||||
{{ else }}
|
||||
{{- $imgsmall := $image.Resize "768x jpg q70" }}
|
||||
{{- $imgmedium := $image.Resize "960x jpg q85" }}
|
||||
|
||||
<meta property="og:image" content="{{.Site.BaseURL}}{{ $imgsmall.RelPermalink }}" />
|
||||
<style>
|
||||
.big-img {
|
||||
background-image: url({{ $imgsmall.RelPermalink }}) !important;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.big-img {
|
||||
background-image: url({{ $imgmedium.RelPermalink }}) !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: 960px) {
|
||||
.big-img {
|
||||
background-image: url({{ $image.RelPermalink }}) !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<!-- zie sidebar.html, zelfde logica gebruikt -->
|
||||
{{ $related := first 3 (where (where (where .Site.Pages.ByDate.Reverse ".Type" "==" "post") ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
|
||||
|
|
Loading…
Reference in New Issue