-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
221 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
{ | ||
"Outputs": [ | ||
"html", | ||
"purchase" | ||
"purchase", "oembed", "iframe" | ||
], | ||
"Tags": [ | ||
"New York", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
themes/hello-friend-ng/layouts/_default/baseof.iframe.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ .Site.Language }}"> | ||
<head> | ||
{{ partial "head.html" . }} | ||
</head> | ||
|
||
<body> | ||
<div class="container"> | ||
<div class="content"> | ||
{{ block "main" . }}{{ end }} | ||
</div> | ||
</div> | ||
|
||
{{ partial "javascript.html" . }} | ||
</body> | ||
</html> |
10 changes: 10 additions & 0 deletions
10
themes/hello-friend-ng/layouts/_default/baseof.oembed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"version": "1.0", | ||
"provider_name": "{{ .Site.Title }}", | ||
"provider_url": "{{ .Site.BaseURL }}", | ||
"type": "rich", | ||
"title": "{{ .Title }} | {{ .Site.Title }}", | ||
"url": "{{ .Permalink }}", | ||
"author_name": "{{ if .Params.author }}{{ .Params.author }}{{ else }}Anonymous{{ end }}", | ||
"html": "<iframe src=\"{{ .Permalink }}iframe.html\" width=\"600\" height=\"200\" title=\"{{ .Title }}\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"></iframe>" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"version": "1.0", | ||
"provider_name": "{{ .Site.Title }}", | ||
"provider_url": "{{ .Site.BaseURL }}", | ||
"type": "rich", | ||
"title": "{{ .Title }} | {{ .Site.Title }}", | ||
"url": "{{ .Permalink }}", | ||
"author_name": "{{ if .Params.author }}{{ .Params.author }}{{ else }}Anonymous{{ end }}", | ||
"html": "<iframe src=\"{{ .Permalink }}iframe.html\" width=\"600\" height=\"200\" title=\"{{ .Title }}\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"></iframe>" | ||
} |
10 changes: 10 additions & 0 deletions
10
themes/hello-friend-ng/layouts/_default/single.oembed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"version": "1.0", | ||
"provider_name": "{{ .Site.Title }}", | ||
"provider_url": "{{ .Site.BaseURL }}", | ||
"type": "rich", | ||
"title": "{{ .Title }} | {{ .Site.Title }}", | ||
"url": "{{ .Permalink }}", | ||
"author_name": "{{ if .Params.author }}{{ .Params.author }}{{ else }}Anonymous{{ end }}", | ||
"html": "<iframe src=\"{{ .Permalink }}iframe.html\" width=\"600\" height=\"200\" title=\"{{ .Title }}\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"></iframe>" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{{ define "main" }} | ||
<main class="album"> | ||
<section id="gallery" > | ||
<h1>{{ .Title }}</h1> | ||
{{ if .Description }} | ||
<p class="albumDescription">{{ .Description | markdownify }}</p> | ||
{{ end }} | ||
{{- if .Content }} | ||
<div class="albumContent">{{ .Content }}</div> | ||
{{- end }} | ||
<div class="photo-list" > | ||
{{- range .Params.Pictures }} | ||
{{ partial "singleImage.html" . | partial "make-image-links-open-in-new-window" }} | ||
{{- end }} | ||
<div class="spacer"></div> | ||
</div> | ||
</section> | ||
<hr /> | ||
|
||
<div class="post-info"> | ||
{{- with .Params.tags }} | ||
<p> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-tag meta-icon"><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7" y2="7"></line></svg> | ||
{{- range . -}} | ||
<span class="tag"><a target="_blank" href="{{ "tags/" | absURL }}{{ . | urlize }}/">{{.}}</a></span> | ||
{{- end }} | ||
</p> | ||
{{- end }} | ||
|
||
{{- if .Date -}} | ||
<p><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg> | ||
{{- $startDate := .Params.startdate -}} | ||
{{- if ne .Params.startDate nil -}} | ||
{{- if eq (dateFormat "January 2, 2006" $startDate) (.Date.Format "January 2, 2006") -}} | ||
Photos taken on | ||
{{- else -}} | ||
Photos taken between<span class="albumDate"> <relative-time datetime="{{ dateFormat "2006-01-02T15:04:05Z0700" $startDate}}" format="datetime"> | ||
{{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime $startDate }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" $startDate }}{{ end }} | ||
</relative-time></span> | ||
and | ||
{{- end -}} | ||
{{- end -}} | ||
<span class="albumDate"> <relative-time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700"}}" format="datetime"> | ||
{{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime .Date.Local }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" .Date.Local }}{{ end }} | ||
</relative-time></span> | ||
</p> | ||
{{- end -}} | ||
|
||
{{- if .GitInfo }} | ||
<p class="gitinfo"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-git-commit"><circle cx="12" cy="12" r="4"></circle><line x1="1.05" y1="12" x2="7" y2="12"></line><line x1="17.01" y1="12" x2="22.96" y2="12"></line></svg><a href="{{ .Site.Params.gitUrl -}}{{ .GitInfo.Hash }}" target="_blank" rel="noopener">{{ .GitInfo.AbbreviatedHash }}</a> @ {{ if .Site.Params.dateformNum }}{{ dateFormat .Site.Params.dateformNum .GitInfo.AuthorDate.Local }}{{ else }}{{ dateFormat "2006-01-02" .GitInfo.AuthorDate.Local }}{{ end }}</p> | ||
{{- end }} | ||
</div> | ||
|
||
<div class="post-info"> | ||
{{ if .Params.comments }} | ||
<div id="comments" class="thin"> | ||
{{- partial "comments.html" . -}} | ||
</div> | ||
{{ end }} | ||
|
||
{{ if .Site.Params.showRelated }} | ||
{{- partial "related.html" . | partial "make-links-open-in-new-window" -}} | ||
{{end}} | ||
</div> | ||
</main> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"version": "1.0", | ||
"provider_name": "{{ .Site.Title }}", | ||
"provider_url": "{{ .Site.BaseURL }}", | ||
"type": "rich", | ||
"title": "{{ .Title }} | {{ .Site.Title }}", | ||
"url": "{{ .Permalink }}", | ||
"author_name": "{{ if .Params.author }}{{ .Params.author }}{{ else }}Anonymous{{ end }}", | ||
"html": "<iframe src=\"{{ .Permalink }}iframe.html\" width=\"600\" height=\"300\" title=\"{{ .Title }}\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"></iframe>" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
themes/hello-friend-ng/layouts/partials/make-image-links-open-in-new-window.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{ . | replaceRE `<a class="gallery-item" href=` `<a class="gallery-item" target="_blank" href=` | safeHTML }} |
1 change: 1 addition & 0 deletions
1
themes/hello-friend-ng/layouts/partials/make-links-open-in-new-window.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{ . | replaceRE `<a href=` `<a target="_blank" href=` | safeHTML }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{{ define "main" }} | ||
<main class="post"> | ||
<div class="post-info"> | ||
<p><span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-clock"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg>{{ i18n "readingTime" .Page.ReadingTime }}</span> | ||
{{ partial "shareOpenly.html" . | partial "make-links-open-in-new-window"}} | ||
</p> | ||
</div> | ||
<article> | ||
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1> | ||
|
||
{{ partial "toc.html" . }} | ||
|
||
{{ with .Params.Cover }} | ||
<img src="/img/{{ . }}" class="post-cover" /> | ||
{{ end }} | ||
|
||
<div class="post-content"> | ||
{{ .Content | partial "add-header-anchors" | partial "make-links-open-in-new-window" }} | ||
</div> | ||
</article> | ||
<hr /> | ||
<div class="feedback"> | ||
<p>Thoughts on this post? <a target="_blank" href="https://bsky.app/profile/duncanmackenzie.net">Feel free to reach out on Bluesky!</a></p> | ||
</div> | ||
|
||
<hr /> | ||
|
||
<div class="post-info"> | ||
{{- with .Params.tags }} | ||
<p> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-tag meta-icon"><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7" y2="7"></line></svg> | ||
{{- range . -}} | ||
{{- if ne . "DevTo" -}} | ||
<span class="tag"><a target="_blank" href="{{ "tags/" | absURL }}{{ . | urlize }}/">{{.}}</a></span> | ||
{{- end -}} | ||
{{- end }} | ||
</p> | ||
{{- end }} | ||
|
||
<p><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-file-text"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline></svg> | ||
{{ i18n "wordCount" .Page.WordCount }} | ||
{{ partial "shareOpenly.html" . | partial "make-links-open-in-new-window" }} | ||
</p> | ||
<p><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg> | ||
Published <relative-time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700"}}" format="relative"> | ||
{{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime .Date.Local }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" .Date.Local }}{{ end }} | ||
</relative-time> | ||
</p> | ||
|
||
{{- if .GitInfo }} | ||
<p class="gitinfo"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-git-commit"><circle cx="12" cy="12" r="4"></circle><line x1="1.05" y1="12" x2="7" y2="12"></line><line x1="17.01" y1="12" x2="22.96" y2="12"></line></svg><a href="{{ .Site.Params.gitUrl -}}{{ .GitInfo.Hash }}" target="_blank">{{ .GitInfo.AbbreviatedHash }}</a> @ {{ if .Site.Params.dateformNum }}{{ dateFormat .Site.Params.dateformNum .GitInfo.AuthorDate.Local }}{{ else }}{{ dateFormat "2006-01-02" .GitInfo.AuthorDate.Local }}{{ end }}</p> | ||
{{- end }} | ||
</div> | ||
|
||
{{ if .Site.Params.showRelated }} | ||
{{- partial "related.html" . | partial "make-links-open-in-new-window" -}} | ||
{{end}} | ||
</main> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"version": "1.0", | ||
"provider_name": "{{ .Site.Title }}", | ||
"provider_url": "{{ .Site.BaseURL }}", | ||
"type": "rich", | ||
"title": "{{ .Title }} | {{ .Site.Title }}", | ||
"url": "{{ .Permalink }}", | ||
"author_name": "{{ if .Params.author }}{{ .Params.author }}{{ else }}Anonymous{{ end }}", | ||
"html": "<iframe src=\"{{ .Permalink }}iframe.html\" width=\"600\" height=\"350\" title=\"{{ .Title }}\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"></iframe>" | ||
} |