|
611 | 611 | if (value.postNode.hasAttribute('headline')) {
|
612 | 612 | value.postLeaderTitleNode.innerText = value.postNode.getAttribute('headline');
|
613 | 613 | } else {
|
614 |
| - value.postLeaderTitleNode.innerText = '{headline}'; |
| 614 | + value.postLeaderTitleNode.innerText = ''; |
615 | 615 | }
|
616 | 616 | /* transferring 'inner-class'-list for the 'post's */
|
617 | 617 | if (value.postNode.hasAttribute('inner-class')) {
|
618 | 618 | value.postContentSubstanceNode.setAttribute('class', value.postNode.getAttribute('inner-class'));
|
619 | 619 | }
|
620 | 620 | /* ordering and hashing for the 'post's */
|
621 |
| - let orderString = '{index}'; |
| 621 | + let orderString = ''; |
622 | 622 | if (value.postNode.hasAttribute('hash-id')) {
|
623 | 623 | orderString = value.postNode.getAttribute('hash-id');
|
624 | 624 | } else if (value.postNode.hasAttribute('marker')) {
|
| 625 | + orderString = value.postNode.getAttribute('marker'); |
625 | 626 | if (value.postNode.hasAttribute('partial-hash-id')) {
|
626 |
| - orderString = value.postNode.getAttribute('marker').substring(0, value.postNode.getAttribute('marker').lastIndexOf('.') + 1) + value.postNode.getAttribute('partial-hash-id'); |
627 |
| - } else { |
628 |
| - orderString = value.postNode.getAttribute('marker'); |
| 627 | + orderString = orderString.substring(0, orderString.lastIndexOf('.') + 1) + value.postNode.getAttribute('partial-hash-id'); |
629 | 628 | }
|
630 | 629 | }
|
631 | 630 | value.postLeaderOrderNode.innerText = '#' + orderString;
|
|
780 | 779 | } else {
|
781 | 780 | value.postIconNode.style.backgroundImage = 'unset';
|
782 | 781 | }
|
| 782 | + /* marking for the 'post > sub-post > post-leader > post-leader-section > post-leader-order's */ |
| 783 | + if (value.postLeaderOrderNode.innerText[0] != '#') { |
| 784 | + value.postLeaderOrderNode.innerText = '#' + value.postLeaderOrderNode.innerText; |
| 785 | + } |
| 786 | + /* '.no-content' for the 'post > sub-post > post-leader > post-leader-section > post-leader-title's */ |
| 787 | + if (hasSubstance(value.postLeaderTitleNode)) { |
| 788 | + value.postLeaderTitleNode.classList.remove('no-content'); |
| 789 | + } else { |
| 790 | + value.postLeaderTitleNode.classList.add('no-content'); |
| 791 | + } |
783 | 792 | /* '.no-content' for the 'post > sub-post > post-leader > post-leader-advance's */
|
784 | 793 | if (hasSubstance(value.postLeaderAdvanceNode)) {
|
785 | 794 | value.postLeaderAdvanceNode.classList.remove('no-content');
|
|
0 commit comments