Skip to content

Commit

Permalink
Changes to be committed:
Browse files Browse the repository at this point in the history
	modified:   .eleventy.js
	modified:   src/site/_includes/partials/relitu.liquid
  • Loading branch information
rebron1900 committed Apr 28, 2024
1 parent 2be2a5f commit 981a295
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ const fluxToken = process.env.FLUX_TOKEN;

module.exports = function (config) {
config.addTransform("parseContent", parseContent);
config.addTransform("minifyHtml", minifyHtml);

if(process.env.NODE_ENV.trim() != 'dev'){
config.addTransform("minifyHtml", minifyHtml);
}
// Filters
config.addFilter("excerpt", excerpt);
config.addFilter("absoluteUrl", absoluteUrl);
Expand Down
16 changes: 12 additions & 4 deletions src/site/_includes/partials/relitu.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
cal.on('click', (event, timestamp, value) => {
if (value == null) { return; }
var date = new Date(timestamp).toISOString().substring(0,7);
window.location.href = '/archives#' + date;
// if (value == null) { return; }
// var date = new Date(timestamp).toISOString().substring(0,7);
// window.location.href = '/archives#' + date;
});
Expand Down Expand Up @@ -95,14 +95,22 @@
const wordText = value ? '' : '';
const valueText = value ? value : '';
var list = ``;
currentPost.forEach(function(item){
list += '<br /><a href="'+item.url+'">'+ item.title+'</a>'
})
return (
postText +
' ' +
valueText +
wordText +
'<span class="block">' +
dayjsDate.format('YYYY-MM-DD') +
'</span>'
'</span>' +
list
);
},
},
Expand Down

0 comments on commit 981a295

Please sign in to comment.