fixing some config stuff and deleting the broken config
This commit is contained in:
parent
6aba76c8c1
commit
bfa85eb2f7
|
@ -1373,6 +1373,10 @@ select {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.static {
|
||||||
|
position: static;
|
||||||
|
}
|
||||||
|
|
||||||
.fixed {
|
.fixed {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
}
|
}
|
||||||
|
@ -1449,6 +1453,11 @@ select {
|
||||||
margin: 0.25rem;
|
margin: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.my-0 {
|
||||||
|
margin-top: 0px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.-my-2 {
|
.-my-2 {
|
||||||
margin-top: -0.5rem;
|
margin-top: -0.5rem;
|
||||||
margin-bottom: -0.5rem;
|
margin-bottom: -0.5rem;
|
||||||
|
@ -1474,11 +1483,6 @@ select {
|
||||||
margin-right: 0.25rem;
|
margin-right: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.my-0 {
|
|
||||||
margin-top: 0px;
|
|
||||||
margin-bottom: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mt-0 {
|
.mt-0 {
|
||||||
margin-top: 0px;
|
margin-top: 0px;
|
||||||
}
|
}
|
||||||
|
@ -1857,6 +1861,10 @@ select {
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.rounded-md {
|
||||||
|
border-radius: 0.375rem;
|
||||||
|
}
|
||||||
|
|
||||||
.rounded-full {
|
.rounded-full {
|
||||||
border-radius: 9999px;
|
border-radius: 9999px;
|
||||||
}
|
}
|
||||||
|
@ -1865,10 +1873,6 @@ select {
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rounded-md {
|
|
||||||
border-radius: 0.375rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.rounded {
|
.rounded {
|
||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,63 +0,0 @@
|
||||||
languageCode = "en"
|
|
||||||
languageName = "English"
|
|
||||||
displayName = "EN"
|
|
||||||
isoCode = "en"
|
|
||||||
weight = 1
|
|
||||||
rtl = false
|
|
||||||
|
|
||||||
title = "TFC Connection"
|
|
||||||
logo = "img/logo.png"
|
|
||||||
description = "Connecting teens with the truth of Jesus Christ… teaching and equipping them to live out the Great Commission."
|
|
||||||
# copyright = "Copy, _right?_ :thinking_face:"
|
|
||||||
|
|
||||||
dateFormat = "2 January 2006"
|
|
||||||
|
|
||||||
[author]
|
|
||||||
name = "TFC Connection"
|
|
||||||
image = "img/logo.png"
|
|
||||||
headline = "Teens For Christ Connection"
|
|
||||||
bio = "Connecting teens with the truth of Jesus Christ… teaching and equipping them to live out the Great Commission."
|
|
||||||
links = [
|
|
||||||
# { email = "mailto:hello@your_domain.com" },
|
|
||||||
# { link = "https://link-to-some-website.com/" },
|
|
||||||
# { amazon = "https://www.amazon.com/hz/wishlist/ls/wishlist-id" },
|
|
||||||
# { apple = "https://www.apple.com" },
|
|
||||||
# { blogger = "https://username.blogspot.com/" },
|
|
||||||
# { codepen = "https://codepen.io/username" },
|
|
||||||
# { dev = "https://dev.to/username" },
|
|
||||||
# { discord = "https://discord.gg/invitecode" },
|
|
||||||
# { dribbble = "https://dribbble.com/username" },
|
|
||||||
{ facebook = "https://facebook.com/tfcconnection" },
|
|
||||||
# { flickr = "https://www.flickr.com/photos/username/" },
|
|
||||||
# { foursquare = "https://foursquare.com/username" },
|
|
||||||
# { github = "https://github.com/username" },
|
|
||||||
# { gitlab = "https://gitlab.com/username" },
|
|
||||||
# { google = "https://www.google.com/" },
|
|
||||||
# { hashnode = "https://username.hashnode.dev" },
|
|
||||||
{ instagram = "https://instagram.com/tfcconnection" },
|
|
||||||
# { keybase = "https://keybase.io/username" },
|
|
||||||
# { kickstarter = "https://www.kickstarter.com/profile/username" },
|
|
||||||
# { lastfm = "https://lastfm.com/user/username" },
|
|
||||||
# { linkedin = "https://linkedin.com/in/username" },
|
|
||||||
# { mastodon = "https://mastodon.instance/@username" },
|
|
||||||
# { medium = "https://medium.com/username" },
|
|
||||||
# { microsoft = "https://www.microsoft.com/" },
|
|
||||||
# { orcid = "https://orcid.org/userid" },
|
|
||||||
# { patreon = "https://www.patreon.com/username" },
|
|
||||||
# { pinterest = "https://pinterest.com/username" },
|
|
||||||
# { reddit = "https://reddit.com/user/username" },
|
|
||||||
# { researchgate = "https://www.researchgate.net/profile/username" },
|
|
||||||
# { slack = "https://workspace.url/team/userid" },
|
|
||||||
# { snapchat = "https://snapchat.com/add/username" },
|
|
||||||
# { soundcloud = "https://soundcloud.com/username" },
|
|
||||||
# { stack-overflow = "https://stackoverflow.com/users/userid/username" },
|
|
||||||
# { steam = "https://steamcommunity.com/profiles/userid" },
|
|
||||||
# { telegram = "https://t.me/username" },
|
|
||||||
# { tiktok = "https://tiktok.com/@username" },
|
|
||||||
# { tumblr = "https://username.tumblr.com" },
|
|
||||||
# { twitch = "https://twitch.tv/username" },
|
|
||||||
# { twitter = "https://twitter.com/username" },
|
|
||||||
# { whatsapp = "https://wa.me/phone-number" },
|
|
||||||
# { youtube = "https://youtube.com/username" },
|
|
||||||
# { ko-fi = "https://ko-fi.com/username" },
|
|
||||||
]
|
|
|
@ -1,13 +0,0 @@
|
||||||
# -- Markup --
|
|
||||||
# These settings are required for the theme to function.
|
|
||||||
|
|
||||||
[goldmark]
|
|
||||||
[goldmark.renderer]
|
|
||||||
unsafe = true
|
|
||||||
|
|
||||||
[highlight]
|
|
||||||
noClasses = false
|
|
||||||
|
|
||||||
[tableOfContents]
|
|
||||||
startLevel = 2
|
|
||||||
endLevel = 4
|
|
|
@ -1,51 +0,0 @@
|
||||||
# -- Main Menu --
|
|
||||||
# The main menu is displayed in the header at the top of the page.
|
|
||||||
# Acceptable parameters are name, pageRef, page, url, title, weight.
|
|
||||||
#
|
|
||||||
# The simplest menu configuration is to provide:
|
|
||||||
# name = The name to be displayed for this menu link
|
|
||||||
# pageRef = The identifier of the page or section to link to
|
|
||||||
#
|
|
||||||
# By default the menu is ordered alphabetically. This can be
|
|
||||||
# overridden by providing a weight value. The menu will then be
|
|
||||||
# ordered by weight from lowest to highest.
|
|
||||||
|
|
||||||
[[main]]
|
|
||||||
name = "About"
|
|
||||||
pageRef = "about"
|
|
||||||
weight = 10
|
|
||||||
|
|
||||||
[[main]]
|
|
||||||
name = "Ministries"
|
|
||||||
pageRef = "ministries"
|
|
||||||
weight = 20
|
|
||||||
|
|
||||||
[[main]]
|
|
||||||
name = "Staff"
|
|
||||||
pageRef = "staff"
|
|
||||||
weight = 30
|
|
||||||
|
|
||||||
[[main]]
|
|
||||||
name = "Donate"
|
|
||||||
pageRef = "donate"
|
|
||||||
weight = 40
|
|
||||||
|
|
||||||
[[main]]
|
|
||||||
name = "Contact"
|
|
||||||
pageRef = "contact"
|
|
||||||
weight = 50
|
|
||||||
|
|
||||||
# -- Footer Menu --
|
|
||||||
# The footer menu is displayed at the bottom of the page, just before
|
|
||||||
# the copyright notice. Configure as per the main menu above.
|
|
||||||
|
|
||||||
|
|
||||||
[[footer]]
|
|
||||||
name = "Tags"
|
|
||||||
pageRef = "tags"
|
|
||||||
weight = 10
|
|
||||||
|
|
||||||
[[footer]]
|
|
||||||
name = "Categories"
|
|
||||||
pageRef = "categories"
|
|
||||||
weight = 20
|
|
87
layouts/_default/_markup/render-image-new.html
Normal file
87
layouts/_default/_markup/render-image-new.html
Normal file
|
@ -0,0 +1,87 @@
|
||||||
|
<!-- This is potentially what I'd like to use -->
|
||||||
|
<picture>
|
||||||
|
{{ $isJPG := eq (path.Ext .Destination) ".jpg" }}
|
||||||
|
{{ $isPNG := eq (path.Ext .Destination) ".png" }}
|
||||||
|
|
||||||
|
{{ if ($isJPG) -}}
|
||||||
|
{{ $avifPath:= replace .Destination ".jpg" ".avif" }}
|
||||||
|
{{ $avifPathStatic:= printf "static/%s" $avifPath }}
|
||||||
|
|
||||||
|
{{ if (fileExists $avifPathStatic) -}}
|
||||||
|
<source srcset="{{ $avifPath | safeURL }}" type="image/avif" >
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{ $webpPath:= replace .Destination ".jpg" ".webp" }}
|
||||||
|
{{ $webpPathStatic:= printf "static/%s" $webpPath }}
|
||||||
|
|
||||||
|
{{ if (fileExists $webpPathStatic) -}}
|
||||||
|
<source srcset="{{ $webpPath | safeURL }}" type="image/webp" >
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{ if ($isPNG) -}}
|
||||||
|
{{ $avifPath:= replace .Destination ".png" ".avif" }}
|
||||||
|
{{ $avifPathStatic:= printf "static/%s" $avifPath }}
|
||||||
|
|
||||||
|
{{ if (fileExists $avifPathStatic) -}}
|
||||||
|
<source srcset="{{ $avifPath | safeURL }}" type="image/avif" >
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{ $webpPath:= replace .Destination ".png" ".webp" }}
|
||||||
|
{{ $webpPathStatic:= printf "static/%s" $webpPath }}
|
||||||
|
|
||||||
|
{{ if (fileExists $webpPathStatic) -}}
|
||||||
|
<source srcset="{{ $webpPath | safeURL }}" type="image/webp" >
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{ $img := imageConfig (add "/static" (.Destination | safeURL)) }}
|
||||||
|
|
||||||
|
<img
|
||||||
|
src="{{ .Destination | safeURL }}"
|
||||||
|
alt="{{ .Text }}"
|
||||||
|
loading="lazy"
|
||||||
|
decoding="async"
|
||||||
|
width="{{ $img.Width }}"
|
||||||
|
height="{{ $img.Height }}"
|
||||||
|
/>
|
||||||
|
</picture>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- This is what is currently running -->
|
||||||
|
{{ $url := urls.Parse .Destination }}
|
||||||
|
{{ $altText := .Text }}
|
||||||
|
{{ $caption := .Title }}
|
||||||
|
{{ if findRE "^https?" $url.Scheme }}
|
||||||
|
<figure>
|
||||||
|
<img class="my-0 rounded-md" src="{{ $url.String }}" alt="{{ $altText }}" />
|
||||||
|
{{ with $caption }}<figcaption>{{ . | markdownify }}</figcaption>{{ end }}
|
||||||
|
</figure>
|
||||||
|
{{ else }}
|
||||||
|
{{ $resource := "" }}
|
||||||
|
{{ if $.Page.Resources.GetMatch ($url.String) }}
|
||||||
|
{{ $resource = $.Page.Resources.GetMatch ($url.String) }}
|
||||||
|
{{ else if resources.GetMatch ($url.String) }}
|
||||||
|
{{ $resource = resources.Get ($url.String) }}
|
||||||
|
{{ end }}
|
||||||
|
{{ with $resource }}
|
||||||
|
<figure>
|
||||||
|
<img
|
||||||
|
class="my-0 rounded-md"
|
||||||
|
srcset="
|
||||||
|
{{ (.Resize "330x").RelPermalink }} 330w,
|
||||||
|
{{ (.Resize "660x").RelPermalink }} 660w,
|
||||||
|
{{ (.Resize "1024x").RelPermalink }} 1024w,
|
||||||
|
{{ (.Resize "1320x").RelPermalink }} 2x"
|
||||||
|
src="{{ (.Resize "660x").RelPermalink }}"
|
||||||
|
alt="{{ $altText }}"
|
||||||
|
/>
|
||||||
|
{{ with $caption }}<figcaption>{{ . | markdownify }}</figcaption>{{ end }}
|
||||||
|
</figure>
|
||||||
|
{{ else }}
|
||||||
|
<figure>
|
||||||
|
<img class="my-0 rounded-md" src="{{ $url.String }}" alt="{{ $altText }}" />
|
||||||
|
{{ with $caption }}<figcaption>{{ . | markdownify }}</figcaption>{{ end }}
|
||||||
|
</figure>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
Loading…
Reference in a new issue