zgodovina-fotografije/content/themes/aluo_foto_master-2/old/post copy 2.hbs

107 lines
5.2 KiB
Handlebars
Executable File

{{!< default}}
<body class="theme-dark">
<button id="toggle-theme">Toggle Theme</button>
<!-- Blog Header -->
<header class="blog-header {{#if @site.cover_image}} has-cover{{/if}}">
<div class="inner">
<a href="/content_index" class="back-button">
<img src="{{asset "images/back_arrow_2.svg"}}" alt="Back Button" />
</a>
<div class="box blog-box">
<h1 class="blog-name">{{@site.title}}</h1>
{{#if @site.description}}
<span class="blog-description">{{@site.description}}</span>
{{/if}}
</div>
</div>
</header>
<!-- Sticky Menu Bar -->
<nav class="portal-menu">
<ul>
{{#get "posts" order="published_at asc" limit="all"}}
{{#foreach posts}}
<li>
<a href="#{{slug}}" class="sh-scroll">
{{#if feature_image}}
<img src="{{feature_image}}" alt="{{title}}" class="post-menu-image">
{{/if}}
</a>
</li>
{{/foreach}}
{{/get}}
</ul>
</nav>
<!-- Index Page Content -->
<div id="index" class="container">
<main class="content" role="main">
<div class="layout-wrapper">
<div class="content-section">
{{#get "posts" order="published_at asc" limit="all"}}
{{#foreach posts}}
<article id="{{slug}}" class="{{post_class}}">
<div class="inner post-content-container">
<div class="post-text-section">
<div class="box post-box">
<h1 class="post-title"><a href="{{url}}">{{{title}}}</a></h1>
<div class="post-content">
{{{content}}}
</div>
{{!-- Extract and display custom metadata --}}
{{#if (match "(?<=<!-- SpecialText: )(.*?)(?= -->)" content)}}
<div class="special-text">{{match "(?<=<!-- SpecialText: )(.*?)(?= -->)" content}}</div>
{{/if}}
</div>
</div>
<div class="post-image-section {{@config.custom.post_image_style}}">
<!-- Images will be moved here by JavaScript -->
</div>
</div>
</article>
{{/foreach}}
{{/get}}
</div>
</div>
</main>
</div>
<div id="context-menu" style="display: none; position: absolute; background: #fff; border: 1px solid #ccc; padding: 10px; z-index: 1000;">
<button id="delete-highlight">Delete</button>
</div>
<!-- Page Wrapper for Text Content -->
<section class="page-wrapper">
<div class="hidden-custom-variable">{{@custom.post_share}}</div>
<div id="overlay" class="overlay"></div>
<div id="toolbar" class="toolbar">
<div id="toolbar-handle" class="toolbar-handle"></div>
<button id="highlight" title="Highlight">{{> "icons/icon-highlight"}}</button>
<button id="strikethrough" title="Strikethrough">{{> "icons/icon-strikethrough"}}</button>
<button id="bold" title="Bold">{{> "icons/icon-bold"}}</button>
<button id="italic" title="Italic">{{> "icons/icon-italic"}}</button>
<button id="underline" title="Underline">{{> "icons/icon-underline"}}</button>
<button id="link" title="Link">{{> "icons/icon-link"}}</button>
<button id="unlink" title="Unlink">{{> "icons/icon-unlink"}}</button>
<button id="clear-storage" title="Clear Storage">{{> "icons/icon-clear"}}</button>
<button id="toggleFormattingButton">Toggle Formatting</button>
<!-- Add export button -->
<button id="export-pdf" title="Export as PDF">Export PDF</button>
</div>
<div id="show-toolbar-arrow" class="hidden-arrow">&larr;</div>
<div class="content">
{{{body}}}
</div>
</section>
<script defer src="{{asset "js/toolbar.js"}}"></script>
<script defer src="{{asset "js/adjust_image.js"}}"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/2.3.4/purify.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.3.3/html2canvas.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.4.0/jspdf.umd.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.2/html2pdf.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/docx/7.0.3/docx.min.js"></script>
<script src="{{asset "js/pdf_export.js"}}"></script>
<script src="{{asset "js/toggle_theme.js"}}"></script>
{{ghost_foot}}
</body>