Updating the configs
This commit is contained in:
51
themes/fugu/config/_default/config.yaml
Normal file
51
themes/fugu/config/_default/config.yaml
Normal file
@@ -0,0 +1,51 @@
|
||||
DefaultContentLanguage: en
|
||||
languageCode: en
|
||||
|
||||
#theme: ["github.com/fundor333/macia-webmention", "github.com/fundor333/macia-image"]
|
||||
|
||||
disableRSS: false
|
||||
enableRobotsTXT: true
|
||||
Paginate: 8
|
||||
rssLimit: 10
|
||||
enableGitInfo: true
|
||||
related:
|
||||
includeNewer: true
|
||||
threshold: 70
|
||||
toLower: false
|
||||
indices:
|
||||
- name: categories
|
||||
weight: 40
|
||||
- name: title
|
||||
weight: 30
|
||||
- name: description
|
||||
weight: 30
|
||||
- name: tags
|
||||
weight: 10
|
||||
- name: meta
|
||||
weight: 10
|
||||
- name: date
|
||||
weight: 10
|
||||
|
||||
outputFormats:
|
||||
SearchIndex:
|
||||
baseName: search
|
||||
mediaType: application/json
|
||||
outputs:
|
||||
section:
|
||||
- HTML
|
||||
- RSS
|
||||
home:
|
||||
- HTML
|
||||
- RSS
|
||||
- SearchIndex
|
||||
page:
|
||||
- html
|
||||
|
||||
sitemap:
|
||||
changefreq: monthly
|
||||
filename: sitemap.xml
|
||||
priority: 0.5
|
||||
taxonomies:
|
||||
category: categories
|
||||
tag: tags
|
||||
micropub: micropub
|
||||
0
themes/fugu/config/_default/maciaimage.yaml
Normal file
0
themes/fugu/config/_default/maciaimage.yaml
Normal file
9
themes/fugu/config/_default/markup.yaml
Normal file
9
themes/fugu/config/_default/markup.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
highlight:
|
||||
hl_Lines: ""
|
||||
lineNoStart: 1
|
||||
lineNos: false
|
||||
tabWidth: 4
|
||||
tableOfContents:
|
||||
endLevel: 5
|
||||
ordered: false
|
||||
startLevel: 2
|
||||
16
themes/fugu/config/_default/menu.yaml
Normal file
16
themes/fugu/config/_default/menu.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
main:
|
||||
- name: home
|
||||
url: /
|
||||
weight: -10
|
||||
- name: "blog"
|
||||
weight: 10
|
||||
url: "/post/"
|
||||
- name: cv
|
||||
url: /cv/
|
||||
weight: 20
|
||||
- name: "now"
|
||||
weight: 60
|
||||
url: "/now"
|
||||
- name: "feeds"
|
||||
weight: 70
|
||||
url: "/feeds"
|
||||
4
themes/fugu/config/_default/params.yaml
Normal file
4
themes/fugu/config/_default/params.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
ShowFullTextinRSS: false
|
||||
|
||||
maciaimage:
|
||||
imgclass: "img-fluid d-block mx-auto"
|
||||
12
themes/fugu/config/_default/privacy.yaml
Normal file
12
themes/fugu/config/_default/privacy.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
disqus:
|
||||
disable: true
|
||||
googleAnalytics:
|
||||
disable: true
|
||||
instagram:
|
||||
disable: true
|
||||
twitter:
|
||||
disableInlineCSS: true
|
||||
vimeo:
|
||||
disable: true
|
||||
youtube:
|
||||
disable: true
|
||||
@@ -1,61 +0,0 @@
|
||||
|
||||
{{/* Original code from: https://laurakalbag.com/processing-responsive-images-with-hugo/ */}}
|
||||
{{/* Just modified a bit to work with render_image hook and output webp images */}}
|
||||
{{/* get file that matches the filename as specified as src="" */}}
|
||||
{{ $src := .Page.Resources.GetMatch (printf "%s" (.Destination | safeURL)) }}
|
||||
{{ $alt := .PlainText | safeHTML }}
|
||||
|
||||
{{/* So for posts that aren't setup in the page bundles, it doesn't fail */}}
|
||||
{{ if $src }}
|
||||
|
||||
{{ $format := cond (eq $src.MediaType.SubType "gif") "" "webp" -}}
|
||||
|
||||
{{ $tinyw := default (printf "500x %s" $format) }}
|
||||
{{ $smallw := default (printf "800x %s" $format) }}
|
||||
{{ $mediumw := default (printf "1200x %s" $format) }}
|
||||
{{ $largew := default (printf "1500x %s" $format) }}
|
||||
|
||||
{{/* resize the src image to the given sizes */}}
|
||||
{{/* We create a a temp scratch because it`s not available in this context */}}
|
||||
{{ $data := newScratch }}
|
||||
{{ $data.Set "tiny" ($src.Resize $tinyw) }}
|
||||
{{ $data.Set "small" ($src.Resize $smallw) }}
|
||||
{{ $data.Set "medium" ($src.Resize $mediumw) }}
|
||||
{{ $data.Set "large" ($src.Resize $largew) }}
|
||||
|
||||
{{/* add the processed images to the scratch */}}
|
||||
|
||||
{{ $tiny := $data.Get "tiny" }}
|
||||
{{ $small := $data.Get "small" }}
|
||||
{{ $medium := $data.Get "medium" }}
|
||||
{{ $large := $data.Get "large" }}
|
||||
|
||||
{{/* only use images smaller than or equal to the src (original)
|
||||
image size, as Hugo will upscale small images */}}
|
||||
|
||||
|
||||
<a href="{{ $src.RelPermalink }}">
|
||||
<picture>
|
||||
|
||||
<source media="(max-width: 376px)"
|
||||
srcset="{{with $tiny.RelPermalink }}{{.}}{{ end }}">
|
||||
|
||||
<source media="(max-width: 992px)"
|
||||
srcset="{{with $small.RelPermalink }}{{.}}{{ end }}">
|
||||
|
||||
<source media="(max-width: 1400px)"
|
||||
srcset="{{with $medium.RelPermalink }}{{.}}{{ end }}">
|
||||
|
||||
<source media="(min-width: 1600px)"
|
||||
srcset="{{with $large.RelPermalink }}{{.}}{{ end }}">
|
||||
|
||||
<img alt="{{ $alt }}" title="{{ $alt }}" src="{{ $src }}"
|
||||
height="{{ $src.Height}}" width="{{ $src.Width }}" class="img-fluid d-block mx-auto">
|
||||
|
||||
</picture>
|
||||
</a>
|
||||
|
||||
{{/* Since I do image-response class, the only thing that really
|
||||
matters is the height and width matches the image aspect ratio */}}
|
||||
|
||||
{{ end }}
|
||||
@@ -12,4 +12,4 @@ min_version = "0.120.4"
|
||||
|
||||
[author]
|
||||
name = "Fundor333"
|
||||
homepage = "fundor333.com"
|
||||
homepage = "http://fundor333.com/"
|
||||
|
||||
Reference in New Issue
Block a user