Added commenting system, updated readme accordingly, and also updated styles slightly
This commit is contained in:
parent
ad29ab9fe5
commit
1b558e3ee2
@ -13,4 +13,13 @@ This is the code behind timstallard.me.uk, which is built using Docpad.
|
|||||||
2. Run `docpad generate --env=static`
|
2. Run `docpad generate --env=static`
|
||||||
3. Copy contactsubmit/conf.example.php to contactsubmit/conf.php, and update options as required
|
3. Copy contactsubmit/conf.example.php to contactsubmit/conf.php, and update options as required
|
||||||
|
|
||||||
|
### Setting up commenting system
|
||||||
|
1. These instructions are written for systemd-based Ubuntu, but should work fine on Debian as well. For security reasons, the installation of isso should be done under another user account - I made an account called isso.
|
||||||
|
2. This site uses the Isso commenting system - to start, follow the install instructions on the [isso](https://posativ.org/isso/docs/install/) site
|
||||||
|
3. Add a /etc/isso.conf file with the required options
|
||||||
|
4. Make the directory and file /var/lib/isso and /var/log/isso.log, and make both of these owned by the isso user
|
||||||
|
5. Copy the systemd service and socket files from [here](https://github.com/jgraichen/debian-isso/tree/master/debian), to /lib/systemd/systemd, and add the socket as a requirement of the service
|
||||||
|
6. Enable the isso service
|
||||||
|
7. Configure your reverse proxy, and set the isso_url variable in docpad.js
|
||||||
|
|
||||||
© Tim Stallard 2016
|
© Tim Stallard 2016
|
||||||
|
@ -60,6 +60,11 @@ var docpadConfig = {
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
templateData: {
|
||||||
|
site: {
|
||||||
|
isso_url: "https://comments.timstallard.me.uk/"
|
||||||
|
}
|
||||||
|
},
|
||||||
environments: {
|
environments: {
|
||||||
static: {
|
static: {
|
||||||
plugins: {
|
plugins: {
|
||||||
|
@ -2,8 +2,7 @@ var smoothState;
|
|||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
var options = {
|
var options = {
|
||||||
prefetch: true,
|
prefetch: true,
|
||||||
debug: true,
|
|
||||||
onStart: {
|
onStart: {
|
||||||
duration: 400,
|
duration: 400,
|
||||||
render: function (container, url) {
|
render: function (container, url) {
|
||||||
|
@ -81,7 +81,7 @@ body{
|
|||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
>div{
|
>div{
|
||||||
width: 80%;
|
width: 90%;
|
||||||
max-width: 1100px;
|
max-width: 1100px;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
@ -137,7 +137,7 @@ body{
|
|||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 80%;
|
width: 90%;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
h3{
|
h3{
|
||||||
@ -433,7 +433,7 @@ body{
|
|||||||
|
|
||||||
#content[data-slug="blog"]{ //main page
|
#content[data-slug="blog"]{ //main page
|
||||||
.post{
|
.post{
|
||||||
width: 80%;
|
width: 90%;
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
@ -474,11 +474,13 @@ body{
|
|||||||
}
|
}
|
||||||
|
|
||||||
#content[data-slug^="blog"]{ //posts and main page
|
#content[data-slug^="blog"]{ //posts and main page
|
||||||
.blogpost{
|
.blogpost, #isso-thread{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
.blogpost{
|
||||||
line-height: 1.55;
|
line-height: 1.55;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,3 +9,5 @@ layout: contentpage
|
|||||||
<div class="blogpost">
|
<div class="blogpost">
|
||||||
<%- content %>
|
<%- content %>
|
||||||
</div>
|
</div>
|
||||||
|
<script src="<%- site.isso_url %>js/embed.min.js" data-isso="<%- site.isso_url %>"></script>
|
||||||
|
<section id="isso-thread"></section>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user