...
 
Commits (3)
......@@ -17,3 +17,7 @@ _ss_environment.php
/blog/
/lumberjack/
/tagfield/
# ignore secrets
mysite/_config.php
mysite/_config/config.yml
<?php
global $project;
$project = 'mysite';
global $databaseConfig;
$databaseConfig = array(
'type' => 'MySQLPDODatabase',
'server' => '172.17.0.1',
'username' => 'oeru',
'password' => 'LcaKaF2OTMJyANpOv',
'database' => 'oeru_20190611',
'path' => ''
);
// Set the site locale
i18n::set_locale('en_GB');
// Enable nested URLs for this site (e.g. page/sub-page/)
if (class_exists('SiteTree')) SiteTree::enable_nested_urls();
HtmlEditorConfig::get('cms')->setOption('auto_resize', 'true');
HtmlEditorConfig::get('cms')->setOption('theme_advanced_blockformats', 'h3, h4, h5, p');
//Disable blog comments
//BlogEntry::$defaults["ProvideComments"] = false;
//Add site config
SS_Object::add_extension('SiteConfig', 'MySiteConfig');
//Enable search engine
FulltextSearchable::enable();
<h5 class="authorDate">
<%t Blog.Posted "Posted" %>
$PublishDate.long
<!-- <a href="$MonthlyArchiveLink">$PublishDate.long</a>-->
<% if $Credits %>
<%t Blog.By "by" %>
<% loop $Credits %><% if not $First && not $Last %>, <% end_if %><% if not $First && $Last %> <%t Blog.AND "and" %> <% end_if %><% if $URLSegment %><a href="$URL">$Name.XML</a><% else %>$Name.XML<% end_if %><% end_loop %>
<% end_if %>
</h5>
<p class="blog-post-meta">
<% if $Categories.exists %>
<%t Blog.PostedIn "Posted in" %>
<% loop $Categories %>
<a href="$Link" title="$Title">$Title</a><% if not Last %>, <% else %><% end_if %>
<% end_loop %>
<% end_if %>
<% if $Tags.exists %>
<%t Blog.Tagged "Tagged" %>
<% loop $Tags %>
<a href="$Link" title="$Title">$Title</a><% if not Last %>, <% else %><% end_if %>
<% end_loop %>
<% end_if %>
<% if $Comments.exists %>
<a href="{$Link}#comments-holder">
<%t Blog.Comments "Comments" %>
$Comments.count
</a>;
<% end_if %>
</p>
......@@ -16,12 +16,13 @@
<% if $Summary %>
$Summary
<% else %>
<p>$Excerpt</p>
<!--<p>$Excerpt</p>-->
<p>$Content.FirstParagraph(html)</p>
<% end_if %>
<p>
<a href="$Link">
<%t Blog.ReadMoreAbout "Read more about '{title}'..." title=$Title %>
</a>
</p>
<p>
<a href="$Link">
<%t Blog.ReadMoreAbout "Read more about '{title}'..." title=$Title %>
</a>
</p>
</div>
<div style="clear: both"></div>
<% require themedCSS('blog', 'blog') %>
<div class="blog-entry content-container <% if $SideBarView %>unit size3of4<% end_if %>">
<article>
<h3>
<% if $ArchiveYear %>
<%t Blog.Archive 'Archive' %>:
<% if $ArchiveDay %>
$ArchiveDate.Nice
<% else_if $ArchiveMonth %>
$ArchiveDate.format('F, Y')
<% else %>
$ArchiveDate.format('Y')
<% end_if %>
<% else_if $CurrentTag %>
<%t Blog.Tag 'Tag' %>: $CurrentTag.Title
<% else_if $CurrentCategory %>
<%t Blog.Category 'Category' %>: $CurrentCategory.Title
<% else %>
$Title
<% end_if %>
</h3>
<!-- <div class="content">$Content</div> -->
<% if $PaginatedList.Exists %>
<% loop $PaginatedList %>
<% include PostSummary %>
<% end_loop %>
<% else %>
<p><%t Blog.NoPosts 'There are no posts' %></p>
<% end_if %>
</article>
$Form
$CommentsForm
<% with $PaginatedList %>
<% include Pagination %>
<% end_with %>
</div>
<% include BlogSideBar %>
<% require themedCSS('blog', 'blog') %>
<div class="blog-entry content-container <% if $SideBarView %>unit size3of4<% end_if %>">
<article>
<h3>$Title</h3>
<% if $FeaturedImage %>
<p class="post-image">$FeaturedImage.setWidth(795)</p>
<% end_if %>
<div class="content">$Content</div>
<% include EntryMeta %>
</article>
$Form
$CommentsForm
</div>
<% include BlogSideBar %>