Skip to content

Commit 4338c26

Browse files
committed
bug fixed
1 parent cf186c5 commit 4338c26

File tree

1 file changed

+65
-52
lines changed

1 file changed

+65
-52
lines changed

theme.xml

Lines changed: 65 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<a class='nav-link' expr:href='data:blog.homepageUrl + &quot;/p/about.html&quot;'>About</a>
6060
</li>
6161
<li class='nav-item'>
62-
<a class='nav-link' href='#'>Repo</a>
62+
<a class='nav-link' href='https://github.com/snoofox/BloggerBin'>Repo</a>
6363
</li>
6464
<li class='nav-item dropdown'>
6565
<a aria-expanded='false' class='nav-link dropdown-toggle' data-bs-toggle='dropdown' href='#' role='button'>
@@ -377,7 +377,8 @@
377377
function editFormFunction() {
378378
const itemBody = document.getElementById(&quot;item-body&quot;);
379379
const postTitle = &quot;<data:post.title/>&quot;
380-
itemBody.innerHTML = `<div class='form-group'>
380+
itemBody.innerHTML = `
381+
<div class='form-group'>
381382
<input class='form-control mb-4' id='formTitle' type='text' value='${postTitle}'/>
382383
<h6 class='post-date card-subtitle mb-2 text-muted'><data:post.date/></h6>
383384
<textarea autofocus='autofocus' class='form-control' id='formCode' rows='15' tabindex='1'/>
@@ -393,7 +394,7 @@
393394
<button class='btn text-success' onclick='updatePaste()' type='button'><i aria-hidden='true' class='fa fa-floppy-o'/> Save</button>
394395
<button class='btn text-danger' onclick='history.back()' type='button'><i aria-hidden='true' class='fa fa-backward'/> Back</button>
395396
</div>
396-
<div id='hiddenSecretDiv'><data:post.id/></div></div>`
397+
<div id='hiddenSecretDiv'><data:post.id/></div></div>`
397398
}
398399
</script>
399400
</b:includable>
@@ -535,65 +536,77 @@
535536
</b:includable>
536537
<b:includable id='post' var='post'>
537538
<b:if cond='data:blog.pageType == &quot;item&quot;'>
538-
<b:include name='keyAlertFunction'/>
539+
<b:include name='keyAlertFunction'/>
539540
</b:if>
540-
<div class='post card mt-3'>
541-
<div class='card-body' id='item-body'>
542-
<b:if cond='data:blog.url == data:blog.homepageUrl'>
543-
<b:loop values='data:post.labels' var='label'>
541+
<b:if cond='data:blog.url == data:blog.homepageUrl'>
542+
<b:loop values='data:post.labels' var='label'>
544543
<b:if cond='data:label.name == &quot;public&quot;'>
545-
<a expr:href='data:post.url'><h4 class='post-title card-title'><data:post.title/></h4></a>
546-
<h6 class='post-date card-subtitle mb-2 text-muted'><data:post.date/></h6>
547-
<a expr:href='data:post.url'>
548-
<p class='card-text'>
549-
<b:eval expr='data:post.snippets.long snippet {length: 100, linebreaks: false }'/>
550-
</p>
551-
</a>
552-
<a class='btn btn-dark mt-2 btn-sm' expr:href='data:post.url' style='color:white'>Read More</a>
544+
<div class='post card mt-3'>
545+
<div class='card-body' id='item-body'>
546+
<a expr:href='data:post.url'><h4 class='post-title card-title'><data:post.title/></h4></a>
547+
<h6 class='post-date card-subtitle mb-2 text-muted'><data:post.date/></h6>
548+
<a expr:href='data:post.url'>
549+
<p class='card-text'>
550+
<b:eval expr='data:post.snippets.long snippet {length: 100, linebreaks: false }'/>
551+
</p>
552+
</a>
553+
<a class='btn btn-dark mt-2 btn-sm' expr:href='data:post.url' style='color:white'>Read More</a>
554+
</div>
555+
</div>
553556
</b:if>
554-
</b:loop>
555-
</b:if>
557+
</b:loop>
558+
</b:if>
556559

557-
<b:if cond='data:blog.pageType == &quot;index&quot;'>
558-
<b:if cond='data:blog.url != data:blog.homepageUrl'>
559-
<b:loop values='data:post.labels' var='label'>
560+
<b:if cond='data:blog.pageType == &quot;index&quot;'>
561+
<b:if cond='data:blog.url != data:blog.homepageUrl'>
562+
<b:loop values='data:post.labels' var='label'>
560563
<b:if cond='data:label.name == &quot;public&quot;'>
561-
<a expr:href='data:post.url'><h4 class='post-title card-title'><data:post.title/></h4></a>
562-
<h6 class='post-date card-subtitle mb-2 text-muted'><data:post.date/></h6>
563-
<a expr:href='data:post.url'>
564-
<p class='card-text'>
565-
<b:eval expr='data:post.snippets.long snippet {length: 100, linebreaks: false }'/>
566-
</p>
567-
</a>
568-
<a class='btn btn-dark mt-2 btn-sm' expr:href='data:post.url' style='color:white'>Read More</a>
564+
<div class='post card mt-3'>
565+
<div class='card-body' id='item-body'>
566+
<a expr:href='data:post.url'><h4 class='post-title card-title'><data:post.title/></h4></a>
567+
<h6 class='post-date card-subtitle mb-2 text-muted'><data:post.date/></h6>
568+
<a expr:href='data:post.url'>
569+
<p class='card-text'>
570+
<b:eval expr='data:post.snippets.long snippet {length: 100, linebreaks: false }'/>
571+
</p>
572+
</a>
573+
<a class='btn btn-dark mt-2 btn-sm' expr:href='data:post.url' style='color:white'>Read More</a>
574+
</div>
575+
</div>
569576
</b:if>
570-
</b:loop>
571-
</b:if>
577+
</b:loop>
572578
</b:if>
579+
</b:if>
573580

574-
<b:if cond='data:blog.pageType == &quot;item&quot;'>
575-
<h3 class='entry-title card-title'><data:post.title/></h3>
576-
<h6 class='entry-date card-subtitle mb-2 text-muted'><data:post.date/></h6>
577-
<div class='mt-3'><b:include data='post' name='postBody'/></div>
578-
<div class='btn-group mt-3' role='group'>
579-
<button class='btn text-danger' onclick='deleteFormFunction()'>
580-
<i aria-hidden='true' class='fa fa-trash'/> Delete
581-
</button>
582-
<button class='btn text-primary' onclick='editFormFunction()'>
583-
<i aria-hidden='true' class='fa fa-pencil'/> Edit
584-
</button>
581+
<b:if cond='data:blog.pageType == &quot;item&quot;'>
582+
<div class='post card mt-3'>
583+
<div class='card-body' id='item-body'>
584+
<h3 class='entry-title card-title'><data:post.title/></h3>
585+
<h6 class='entry-date card-subtitle mb-2 text-muted'><data:post.date/></h6>
586+
<div class='mt-3'><b:include data='post' name='postBody'/></div>
587+
<div class='btn-group mt-3' role='group'>
588+
<button class='btn text-danger' onclick='deleteFormFunction()'>
589+
<i aria-hidden='true' class='fa fa-trash'/> Delete
590+
</button>
591+
<button class='btn text-primary' onclick='editFormFunction()'>
592+
<i aria-hidden='true' class='fa fa-pencil'/> Edit
593+
</button>
594+
</div>
595+
<b:include name='deleteFunction'/>
596+
<b:include name='editFunctions'/>
585597
</div>
586-
<b:include name='deleteFunction'/>
587-
<b:include name='editFunctions'/>
588-
</b:if>
598+
</div>
599+
</b:if>
589600

590-
<b:if cond='data:blog.pageType == &quot;static_page&quot;'>
591-
<h3 class='entry-title card-title'><data:post.title/></h3>
592-
<h6 class='entry-date card-subtitle mb-2 text-muted'><data:post.date/></h6>
593-
<div class='mt-3'><b:include data='post' name='postBody'/></div>
594-
</b:if>
595-
</div>
596-
</div>
601+
<b:if cond='data:blog.pageType == &quot;static_page&quot;'>
602+
<div class='post card mt-3'>
603+
<div class='card-body' id='item-body'>
604+
<h3 class='entry-title card-title'><data:post.title/></h3>
605+
<h6 class='entry-date card-subtitle mb-2 text-muted'><data:post.date/></h6>
606+
<div class='mt-3'><b:include data='post' name='postBody'/></div>
607+
</div>
608+
</div>
609+
</b:if>
597610
</b:includable>
598611
<b:includable id='postAuthor'>
599612
<span class='byline post-author vcard'>

0 commit comments

Comments
 (0)