File tree Expand file tree Collapse file tree 9 files changed +54
-15
lines changed Expand file tree Collapse file tree 9 files changed +54
-15
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file.
66The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ ) and this
77project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
88
9+ ## [ 0.15.7] - 2024-12-03
10+ ### Added
11+ - Comments from Bluesky.
12+
13+ ### Fixed
14+ - Improved comments responsiveness.
15+ - Title of the 404 page.
16+
917## [ 0.15.6] - 2024-10-17
1018### Fixed
1119- Updated CMS to the latest version [ #27 ] .
@@ -239,6 +247,7 @@ First version
239247[ #24 ] : https://github.com/lumeland/theme-simple-blog/issues/24
240248[ #27 ] : https://github.com/lumeland/theme-simple-blog/issues/27
241249
250+ [ 0.15.7 ] : https://github.com/lumeland/theme-simple-blog/compare/v0.15.6...v0.15.7
242251[ 0.15.6 ] : https://github.com/lumeland/theme-simple-blog/compare/v0.15.5...v0.15.6
243252[ 0.15.5 ] : https://github.com/lumeland/theme-simple-blog/compare/v0.15.4...v0.15.5
244253[ 0.15.4 ] : https://github.com/lumeland/theme-simple-blog/compare/v0.15.3...v0.15.4
Original file line number Diff line number Diff line change @@ -109,7 +109,12 @@ cms.collection(
109109 fields : [
110110 {
111111 name : "src" ,
112- label : "Link to mastodon post" ,
112+ label : "Link to Mastodon post" ,
113+ type : "url" ,
114+ } ,
115+ {
116+ name : "bluesky" ,
117+ label : "Link to Bluesky post" ,
113118 type : "url" ,
114119 } ,
115120 ] ,
Original file line number Diff line number Diff line change 11{
22 "imports" : {
3- "lume/" : " https://deno.land/x/lume@v2.3.3 /" ,
3+ "lume/" : " https://deno.land/x/lume@v2.4.2 /" ,
44 "lume/cms/" :
" https://cdn.jsdelivr.net/gh/lumeland/[email protected] /" 55 },
66 "tasks" : {
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ export default function (userOptions?: Options) {
7878 // Mastodon comment system
7979 site . remoteFile (
8080 "/js/comments.js" ,
81- "https://unpkg.com/ @oom/mastodon-comments@0.2.2 /src/comments.js" ,
81+ "https://cdn.jsdelivr.net/npm/ @oom/mastodon-comments@0.3.1 /src/comments.js" ,
8282 ) ;
8383 } ;
8484}
Original file line number Diff line number Diff line change 11---
2+ title : Content not found
23layout : layouts/base.vto
34url : /404.html
45---
Original file line number Diff line number Diff line change @@ -20,4 +20,8 @@ comments:
2020 title : Comments
2121 description : |
2222 You can leave a comment by replying to <a href=":src:">this Mastodon post</a> from your own account on Mastodon or any other ActivityPub-capable social network that can exchange replies with Mastodon.
23+ description_bluesky : |
24+ You can leave a comment by replying to <a href=":bluesky:">this Bluesky post</a> from your own account.
25+ description_all : |
26+ You can leave a comment by replying to <a href=":src:">this Mastodon post</a> or <a href=":bluesky:">this Bluesky post</a> from your own account.
2327 empty : No comments yet
Original file line number Diff line number Diff line change 2323 border : solid 1px var (--color-line );
2424 color : var (--color-dim );
2525 font : var (--font-small );
26- container-type : inline-size;
2726
2827 @media (max-width : 450px ) {
2928 margin-left : calc (-15vw / 2 );
4342 margin : 0 ;
4443 padding : 0 ;
4544 }
45+
46+ & li {
47+ container-type : inline-size;
48+
49+ ul {
50+ margin-top : 2em ;
51+ padding-top : 2em ;
52+ border-top : solid 1px var (--color-line );
53+ margin-left : min (var (--indent ), 10cqw );
54+ }
55+ }
56+
4657 & li + li {
4758 margin-top : 2em ;
4859 padding-top : 2em ;
5162 & article {
5263 max-width : 600px ;
5364 }
54- & ul ul {
55- margin-top : 2em ;
56- padding-top : 2em ;
57- border-top : solid 1px var (--color-line );
58- margin-left : var (--indent );
59- }
6065 > ul {
6166 --avatar-size : clamp (32px , 10cqw , 50px );
62- --indent : min ( 10 cqw , var (--avatar-size ) + 15px );
67+ --indent : calc ( var (--avatar-size ) + 15px );
6368 }
6469
6570 .comment-avatar {
97102 }
98103 .comment-time {
99104 font-size : small;
105+ display : flex;
106+ column-gap : .3em ;
107+ align-items : center;
108+
109+ svg {
110+ width : 1em ;
111+ height : 1em ;
112+ fill : currentColor
113+ }
100114 }
101115 .comment-address {
102116 color : currentColor;
103117 text-decoration : none;
104118 display : block;
105119 padding-left : var (--indent );
120+ margin-top : .2em ;
106121 }
107122 .comment-address : hover {
108123 text-decoration : underline;
Original file line number Diff line number Diff line change @@ -49,13 +49,19 @@ bodyClass: body-post
4949 </aside >
5050 {{ / if }}
5151
52- {{ if it . comments ? .src }}
52+ {{ if comments? .src || comments ? . bluesky }}
5353 < aside class = " comments-section" >
5454 < header class = " comments-header" >
5555 < h2> {{ i18n .comments .title }}< / h2>
56- < p> {{ i18n .comments .description .replace (" :src:" , it .comments .src ) }}< / p>
56+ {{ if comments .bluesky && comments .src }}
57+ < p> {{ i18n .comments .description_all .replace (" :src:" , comments .src ).replace (" :bluesky:" , comments .bluesky ) }}< / p>
58+ {{ else if comments .src }}
59+ < p> {{ i18n .comments .description .replace (" :src:" , comments .src ) }}< / p>
60+ {{ else }}
61+ < p> {{ i18n .comments .description_bluesky .replace (" :bluesky:" , comments .bluesky ) }}< / p>
62+ {{ / if }}
5763 < / header>
58- < mastodon- comments src = " {{ it .comments .src }}" cache= " {{ it .comments .cache ?? 60 }}" class=" comments" >
64+ < mastodon- comments bluesky = " {{ it . comments . bluesky }} " mastodon = " {{ it .comments .src }}" cache= " {{ it .comments .cache ?? 60 }}" class=" comments" >
5965 {{ i18n .comments .empty }}
6066 </mastodon-comments >
6167 {{ / if }}
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ comments:
1212 src : ' https://mastodon.gal/@misteroom/110810445656343599'
1313draft : false
1414---
15-
1615Leverage agile frameworks to provide a robust synopsis for high level overviews.
1716Iterative approaches to corporate strategy foster collaborative thinking to
1817further the overall value proposition. Organically grow the holistic world view
You can’t perform that action at this time.
0 commit comments