1
0
Fork 0

add edit buttons to posts

main
Gustav Lindqvist 1 month ago
parent 8712fb3dd1
commit 353bc55826

@ -19,5 +19,8 @@ module.exports = {
sourceLink: function () {
const prefix = 'https://raw.githubusercontent.com/Reedyn/gustavlindqvist.se/main/'
return prefix + this.page.inputPath.replace('./','')
},
editLink: function () {
return `${this.ctx.page.inputPath.replace('./','/')}`
}
};

@ -29,6 +29,7 @@ eleventyComputed:
</header>
<section class="post-content content" id="post-content" aria-label="Inläggets innehåll">
{{ content | safe }}
<p class="center small uppercase"><a class="secondary" href="https://git.gustavlindqvist.se/gustav/gustavlindqvist.se/src/branch/main{% editLink %}?display=source"><svg class="icon" role="presentation" aria-hidden="true" width="12" height="12" viewBox="0 0 24 24"><use xmlns:xlink="http://www.w3.org/1999/xlink" href="/assets/icons/text-box-edit.svg#icon"></use></svg> Redigera</a> · <a class="secondary" href="https://git.gustavlindqvist.se/gustav/gustavlindqvist.se/raw/branch/main{% editLink %}"><svg class="icon" role="presentation" aria-hidden="true" width="12" height="12" viewBox="0 0 24 24"><use xmlns:xlink="http://www.w3.org/1999/xlink" href="/assets/icons/markdown.svg#icon"></use></svg> Källkod</a></p>
{% include "partials/comments.njk" %}
{% if not (nextPost and series) %}{% include "partials/syndicated-content.njk" %}{% endif %}
</section>

@ -0,0 +1,16 @@
---
title: "Äventyr i infrarött"
description: ""
feature_image: ""
date: 2038-01-19T03:14:07+0000
tags:
- fotografering
---
## Gamla kameran
Oanvänd, lite gladd i knappar, en fläck på sensorn (som försvann eftersom den satt på hotmirror filtret på sensorn)
## IR Chrome
Loading…
Cancel
Save