Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add footer.
  • Loading branch information
ysc3839 committed Mar 11, 2017
1 parent 11cec7d commit 026c96e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion data-default/data.json
Expand Up @@ -4,6 +4,7 @@
"links": "- [Source code](https://github.com/HelloZeroNet)",
"next_post_id": 2,
"demo": false,
"footer": "Powered by [ZeroNet](https://zeronet.io) [open, free, and uncensored]",
"modified": 1432515193,
"post": [
{
Expand All @@ -13,4 +14,4 @@
"body": "Your zeronet blog has been successfully created!"
}
]
}
}
2 changes: 1 addition & 1 deletion dbschema.json
Expand Up @@ -15,7 +15,7 @@
},
"data.json": {
"to_table": [ "post" ],
"to_keyvalue": [ "title", "description", "links", "next_post_id", "demo", "modified" ]
"to_keyvalue": [ "title", "description", "links", "next_post_id", "demo", "modified", "footer" ]
}

},
Expand Down
1 change: 1 addition & 0 deletions index.html
Expand Up @@ -158,6 +158,7 @@ <h2 id="Comments">0 Comments:</h2>
<a class="next" href="#"><span>Next page</span></a>
</div>
<!-- EOF Pager -->
<div class="footer" data-object="Site"><h4 data-editable="footer"></h4></div>

</div>
<!-- EOF right -->
Expand Down
1 change: 1 addition & 0 deletions js/ZeroBlog.coffee
Expand Up @@ -91,6 +91,7 @@ class ZeroBlog extends ZeroFrame
if @data.title then $(".left h1 a:not(.editable-edit)").html(@data.title).data("content", @data.title)
if @data.description then $(".left h2").html(Text.renderMarked(@data.description)).data("content", @data.description)
if @data.links then $(".left .links").html(Text.renderMarked(@data.links)).data("content", @data.links)
if @data.footer then $(".footer h4").html(Text.renderMarked(@data.footer)).data("content", @data.footer)

loadLastcomments: (type="show", cb=false) ->
query = "
Expand Down

0 comments on commit 026c96e

Please sign in to comment.