|
59 | 59 | <a class='nav-link' expr:href='data:blog.homepageUrl + "/p/about.html"'>About</a> |
60 | 60 | </li> |
61 | 61 | <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> |
63 | 63 | </li> |
64 | 64 | <li class='nav-item dropdown'> |
65 | 65 | <a aria-expanded='false' class='nav-link dropdown-toggle' data-bs-toggle='dropdown' href='#' role='button'> |
|
377 | 377 | function editFormFunction() { |
378 | 378 | const itemBody = document.getElementById("item-body"); |
379 | 379 | const postTitle = "<data:post.title/>" |
380 | | - itemBody.innerHTML = `<div class='form-group'> |
| 380 | + itemBody.innerHTML = ` |
| 381 | + <div class='form-group'> |
381 | 382 | <input class='form-control mb-4' id='formTitle' type='text' value='${postTitle}'/> |
382 | 383 | <h6 class='post-date card-subtitle mb-2 text-muted'><data:post.date/></h6> |
383 | 384 | <textarea autofocus='autofocus' class='form-control' id='formCode' rows='15' tabindex='1'/> |
|
393 | 394 | <button class='btn text-success' onclick='updatePaste()' type='button'><i aria-hidden='true' class='fa fa-floppy-o'/> Save</button> |
394 | 395 | <button class='btn text-danger' onclick='history.back()' type='button'><i aria-hidden='true' class='fa fa-backward'/> Back</button> |
395 | 396 | </div> |
396 | | - <div id='hiddenSecretDiv'><data:post.id/></div></div>` |
| 397 | + <div id='hiddenSecretDiv'><data:post.id/></div></div>` |
397 | 398 | } |
398 | 399 | </script> |
399 | 400 | </b:includable> |
|
535 | 536 | </b:includable> |
536 | 537 | <b:includable id='post' var='post'> |
537 | 538 | <b:if cond='data:blog.pageType == "item"'> |
538 | | - <b:include name='keyAlertFunction'/> |
| 539 | + <b:include name='keyAlertFunction'/> |
539 | 540 | </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'> |
544 | 543 | <b:if cond='data:label.name == "public"'> |
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> |
553 | 556 | </b:if> |
554 | | - </b:loop> |
555 | | - </b:if> |
| 557 | + </b:loop> |
| 558 | + </b:if> |
556 | 559 |
|
557 | | - <b:if cond='data:blog.pageType == "index"'> |
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 == "index"'> |
| 561 | + <b:if cond='data:blog.url != data:blog.homepageUrl'> |
| 562 | + <b:loop values='data:post.labels' var='label'> |
560 | 563 | <b:if cond='data:label.name == "public"'> |
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> |
569 | 576 | </b:if> |
570 | | - </b:loop> |
571 | | - </b:if> |
| 577 | + </b:loop> |
572 | 578 | </b:if> |
| 579 | + </b:if> |
573 | 580 |
|
574 | | - <b:if cond='data:blog.pageType == "item"'> |
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 == "item"'> |
| 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'/> |
585 | 597 | </div> |
586 | | - <b:include name='deleteFunction'/> |
587 | | - <b:include name='editFunctions'/> |
588 | | - </b:if> |
| 598 | + </div> |
| 599 | + </b:if> |
589 | 600 |
|
590 | | - <b:if cond='data:blog.pageType == "static_page"'> |
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 == "static_page"'> |
| 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> |
597 | 610 | </b:includable> |
598 | 611 | <b:includable id='postAuthor'> |
599 | 612 | <span class='byline post-author vcard'> |
|
0 commit comments