Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add disqus_developer config flag

  • Loading branch information...
commit 09f214d4d18fbaacf4ecac55fb18dd2f5122a126 1 parent 8d3ef37
@yanick authored
View
2  lib/Galuga/Controller/Entry.pm
@@ -67,7 +67,7 @@ sub index :Chained('base') :PathPart('') :Args(0) {
my $body = $rs->body;
# __ENTRY_DIR__
- $body =~ s#__ENTRY_DIR__# $c->uri_for( "/entry/$url/files" ) #eg;
+ $body =~ s#__ENTRY_DIR__# $c->uri_for( "/entry/" . $rs->url . "/files" ) #eg;
my @syntax;
while ( $body =~ s#<pre \s+ code=(['"])(.*?)\1#<pre class="brush: $2" #xg ) {
View
4 root/css/galuga.css
@@ -46,6 +46,10 @@ a {
div.blog_entry {
}
+div.entry_info {
+ min-height: 1em;
+}
+
div.blog_entry h2 {
border-bottom: solid lightgrey 1px;
margin-bottom: 6px;
View
6 root/entry/disqus.mason
@@ -7,7 +7,11 @@ $identifier
/**
* var disqus_identifier; [Optional but recommended: Define a unique identifier (e.g. post id or slug) for this thread]
*/
- // var disqus_developer = 1;
+
+% if ( $c->config->{disqus}{development} ) {
+var disqus_developer = 1;
+% }
+
% if ( $identifier ) {
var disqus_identifier = '<% $identifier %>';
% }
Please sign in to comment.
Something went wrong with that request. Please try again.