mirror of
https://github.com/foo-dogsquared/hugo-theme-more-contentful.git
synced 2025-04-27 00:19:14 +00:00
Compare commits
3 Commits
143341838d
...
608b0cde28
Author | SHA1 | Date | |
---|---|---|---|
608b0cde28 | |||
f21c8d02fb | |||
4e1b08c84e |
@ -1,9 +1,11 @@
|
||||
baseURL = "https://foo-dogsquared.github.io/hugo-theme-more-contentful"
|
||||
title = "More Contentful"
|
||||
enableGitInfo = false
|
||||
paginate = 20
|
||||
rssLimit = 2
|
||||
|
||||
[pagination]
|
||||
pagerSize = 20
|
||||
|
||||
[security]
|
||||
enableInlineShortcodes = true
|
||||
[security.exec]
|
||||
|
6
flake.lock
generated
6
flake.lock
generated
@ -20,11 +20,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1731890469,
|
||||
"narHash": "sha256-D1FNZ70NmQEwNxpSSdTXCSklBH1z2isPR84J6DQrJGs=",
|
||||
"lastModified": 1744536153,
|
||||
"narHash": "sha256-awS2zRgF4uTwrOKwwiJcByDzDOdo3Q1rPZbiHQg/N38=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "5083ec887760adfe12af64830a66807423a859a7",
|
||||
"rev": "18dd725c29603f582cf1900e0d25f9f1063dbf11",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -12,7 +12,7 @@ Otherwise, we take the pages of a section. */ -}}
|
||||
{{- range (.Paginate $pages).Pages }}
|
||||
<article class="post">
|
||||
<h1><a href="{{ .RelPermalink }}" aria-label="{{ .Title }}">{{ .Title }}</a></h1>
|
||||
{{ partial "partials/components/post-meta.html" . }}
|
||||
{{ partial "components/post-meta.html" . }}
|
||||
</article>
|
||||
{{- end }}
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
<article>
|
||||
<header>
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ partial "partials/components/post-meta.html" . }}
|
||||
{{ partial "components/post-meta.html" . }}
|
||||
</header>
|
||||
|
||||
{{ $is_toc := cond (ne .Params.toc nil) .Params.toc $.Site.Params.toc }}
|
||||
|
@ -1,32 +0,0 @@
|
||||
{{- /*
|
||||
Here's where all of the inline partials are defined.
|
||||
If the partial is short enough, it should be put here.
|
||||
*/ -}}
|
||||
|
||||
{{- /*
|
||||
A partial that aliases the Heroicon template from the icon partial.
|
||||
*/ -}}
|
||||
{{- define "partials/components/heroicon.html" }}
|
||||
{{- $name := default .id .name }}
|
||||
{{- $res := resources.ExecuteAsTemplate (printf "icons/generic/%s.svg" .id)
|
||||
(dict "id" .id
|
||||
"name" $name)
|
||||
(resources.Get "templates/heroicon.svg") }}
|
||||
<svg class="site__icon">
|
||||
<use href="{{ $res.RelPermalink }}#{{ $name }}"></use>
|
||||
</svg>
|
||||
{{ end }}
|
||||
|
||||
{{- /*
|
||||
A partial for easily using icons from Simple Icons set.
|
||||
*/ -}}
|
||||
{{- define "partials/components/simple-icon.html" }}
|
||||
{{- $name := default .id .name }}
|
||||
{{- $res := resources.ExecuteAsTemplate (printf "icons/brand/%s.svg" .id)
|
||||
(dict "id" .id
|
||||
"name" $name)
|
||||
(resources.Get "templates/simple-icon.svg") }}
|
||||
<svg class="site__icon">
|
||||
<use href="{{ $res.RelPermalink }}#{{ $name }}"></use>
|
||||
</svg>
|
||||
{{- end }}
|
11
layouts/partials/components/heroicon.html
Normal file
11
layouts/partials/components/heroicon.html
Normal file
@ -0,0 +1,11 @@
|
||||
{{- /*
|
||||
A partial that aliases the Heroicon template from the icon partial.
|
||||
*/ -}}
|
||||
{{- $name := default .id .name }}
|
||||
{{- $res := resources.ExecuteAsTemplate (printf "icons/generic/%s.svg" .id)
|
||||
(dict "id" .id
|
||||
"name" $name)
|
||||
(resources.Get "templates/heroicon.svg") }}
|
||||
<svg class="site__icon">
|
||||
<use href="{{ $res.RelPermalink }}#{{ $name }}"></use>
|
||||
</svg>
|
11
layouts/partials/components/simple-icon.html
Normal file
11
layouts/partials/components/simple-icon.html
Normal file
@ -0,0 +1,11 @@
|
||||
{{- /*
|
||||
A partial for easily using icons from Simple Icons set.
|
||||
*/ -}}
|
||||
{{- $name := default .id .name }}
|
||||
{{- $res := resources.ExecuteAsTemplate (printf "icons/brand/%s.svg" .id)
|
||||
(dict "id" .id
|
||||
"name" $name)
|
||||
(resources.Get "templates/simple-icon.svg") }}
|
||||
<svg class="site__icon">
|
||||
<use href="{{ $res.RelPermalink }}#{{ $name }}"></use>
|
||||
</svg>
|
Loading…
Reference in New Issue
Block a user