Skip to content

Commit

Permalink
Merge branch 'main' into feature/programatically-add-tags-to-posts
Browse files Browse the repository at this point in the history
  • Loading branch information
carbontwelve committed Feb 1, 2023
2 parents 83d2f91 + 27d6a22 commit b13990f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ module.exports = function (eleventyConfig) {
});
eleventyConfig.addPlugin(UpgradeHelper);
eleventyConfig.addPlugin(PostCSSPlugin);
eleventyConfig.addPlugin(require('@photogabble/eleventy-plugin-blogtimes'), {
generateHTML: (outputUrl, options) => `<img alt="Blogtimes histogram" width="${options.width}" height="${options.height}" src="${outputUrl}" style="min-width: auto;" />`,
lastXDays: 180,
});
eleventyConfig.setUseGitIgnore(false);
eleventyConfig.addPlugin(wordStats, {
output: (stats) => {
return {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@11ty/eleventy-upgrade-help": "^1.0.1",
"@fullhuman/postcss-purgecss": "^4.1.3",
"@photogabble/eleventy-plugin-tag-normaliser": "^1.0.0",
"@photogabble/eleventy-plugin-blogtimes": "^1.0.0",
"@photogabble/eleventy-plugin-word-stats": "^1.0.0",
"autoprefixer": "^10.4.8",
"chalk": "^4.1.1",
Expand Down
4 changes: 4 additions & 0 deletions stats.njk
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ folder: [writing]
page</a>.
</p>

<section>
{% blogtimes %}
</section>

<table>
<tbody>
<tr>
Expand Down

0 comments on commit b13990f

Please sign in to comment.