mirror of
https://forge.chapril.org/tykayn/orgmode-to-gemini-blog
synced 2025-06-20 09:04:42 +02:00
utilisation de pypandoc et linking articles
This commit is contained in:
parent
2bdb9b7677
commit
b31dcd6f8a
8 changed files with 320 additions and 110 deletions
96
templates/html/index_template.html.jinja
Normal file
96
templates/html/index_template.html.jinja
Normal file
|
@ -0,0 +1,96 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta property="og:image" content="{{template_content['SITE_ICON']}">
|
||||
<meta property="og:locale" content="{{template_content['LOCALE']}">
|
||||
<meta property="og:description" content="{{template_content['BLOG_SUBTITLE']}">
|
||||
<meta property="og:url" content="{{template_content['NDD']}">
|
||||
<meta property="og:site_name" content="{{template_content['TITLE']}">
|
||||
<link rel="alternate" type="application/atom+xml" title="Cipher Bliss » Flux"
|
||||
href="{{template_content['NDD']}}/feed/">
|
||||
<link href="/style.css" rel="stylesheet">
|
||||
<script src="main_script.js"></script>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{template_content['TITLE']}}</title>
|
||||
<meta name="author" content="{{template_content['AUTHOR']}}">
|
||||
<link rel="alternate" type="application/rss+xml" title="{{template_content['BLOG_TITLE']}} » Flux"
|
||||
href="{{template_content['NDD']}}/feed/">
|
||||
<meta property="og:title" content="{{template_content['PAGE_TITLE']}}">
|
||||
<meta property="og:locale" content="{{template_content['LOCALE']}}">
|
||||
<!-- Description de la page -->
|
||||
<meta name="description" content="{{template_content['PAGE_TITLE']}}">
|
||||
<meta name="reply-to" content="{{template_content['EMAIL']}}">
|
||||
<link rel="icon" type="{{template_content['SITE_ICON_TYPE']}}" href="{{template_content['SITE_ICON']}}">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="page" class="page__{{template_content[" PAGE_SLUG"]}}">
|
||||
<header id="masthead" class="site-header">
|
||||
<div class="header-image"
|
||||
style="background-image: url({{template_content['BANNIERE_ENTETE']}}); background-repeat: no-repeat; background-size: cover;">
|
||||
<a href="/">
|
||||
<img src="{{template_content['SITE_ICON']}}" class="site-icon img">
|
||||
</a>
|
||||
<h1 class="blog-title">{template_content['BLOG_TITLE']}</h1>
|
||||
<p class="blog-subtitle">{template_content['BLOG_SUBTITLE']}</p>
|
||||
<div class="template-header">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<nav class="navbar is-fixed-top is-dark" role="navigation" aria-label="main navigation">
|
||||
<div class="navbar-brand">
|
||||
<a class="navbar-item" href="{{template_content['NDD']}}">
|
||||
{{template_content['NDD']}}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div id="navbarBasicExample" class="navbar-menu">
|
||||
<div class="navbar-start">
|
||||
<a class="logo" href="{{template_content['NDD']}}">
|
||||
<img src="{{template_content['SITE_ICON']}}" class="img-fluid">
|
||||
</a>
|
||||
{{template_content['NAVIGATION']}}
|
||||
</div>
|
||||
<div class="navbar-end">
|
||||
<div class="navbar-item">
|
||||
<form role="search" method="get" class="search-form" action="/" id="recherche">
|
||||
<label>
|
||||
<input class="search-field" placeholder="Recherche" value="" name="s" type="search">
|
||||
</label>
|
||||
<input class="is-hidden search-submit" value="Rechercher" type="submit">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<main class="body-wrap boxed-container">
|
||||
{% for article in articles %}
|
||||
<article class="content">
|
||||
<a href="{{ article.slug }}">{{ article.title }}</a>
|
||||
<div>{{ article.html_content | safe }}</div>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</main>
|
||||
<footer class="site-footer has-top-divider">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
<div class="site-foot">
|
||||
</div>
|
||||
<nav class="footer-nav">
|
||||
{{template_content['NAVIGATION']}}
|
||||
<a href="/tags/">Tags</a>
|
||||
<a href="{{template_content['NDD']}}/feed/">Flux Atom</a>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
<!-- généré avec orgmode-to-gemini-blog par Tykayn -->
|
||||
|
||||
</html>
|
|
@ -1,86 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta property="og:image" content="/img/icon.jpg">
|
||||
<meta property="og:locale" content="fr_FR">
|
||||
<meta property="og:description" content="Code, nouvelles technologies et entrepreneurariat par Baptiste Lemoine">
|
||||
<meta property="og:url" content="https://portfolio.cipherbliss.com/">
|
||||
<meta property="og:site_name" content="Cipher Bliss">
|
||||
<link rel="alternate" type="application/rss+xml" title="Cipher Bliss » Flux"
|
||||
href="https://www.cipherbliss.com/feed/">
|
||||
<link href="https://portfolio.cipherbliss.com/build/css/app.7d561c23.css" rel="stylesheet">
|
||||
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>$$TITLE$$</title>
|
||||
<meta name="author" content="$$AUTHOR$$">
|
||||
<link rel="alternate" type="application/rss+xml" title="Cipher Bliss » Flux"
|
||||
href="http://www.cipherbliss.com/feed/">
|
||||
<meta property="og:title" content="$$PAGE_TITLE$$">
|
||||
<meta property="og:locale" content="$$LOCALE$$">
|
||||
<!-- Description de la page -->
|
||||
<meta name="description" content="$$DESCRIPTION$$">
|
||||
<meta name="reply-to" content="$$EMAIL$$">
|
||||
<link rel="icon" type="$$SITE_ICON$$" href="$$SITE_ICON$$">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="page">
|
||||
<header>
|
||||
<header id="masthead" class="site-header">
|
||||
<nav class="navbar is-fixed-top is-dark" role="navigation" aria-label="main navigation">
|
||||
<div class="navbar-brand">
|
||||
<a class="navbar-item" href="https://portfolio.cipherbliss.com">
|
||||
<img src="https://www.cipherbliss.com/wp-content/uploads/2016/12/rond.png"
|
||||
class="img-fluid">
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="navbarBasicExample" class="navbar-menu">
|
||||
<div class="navbar-start">
|
||||
<a class="navbar-item" href="https://portfolio.cipherbliss.com">
|
||||
<img src="https://www.cipherbliss.com/wp-content/uploads/2016/12/rond.png"
|
||||
class="img-fluid">
|
||||
</a>
|
||||
$$NAVIGATION$$
|
||||
</div>
|
||||
<div class="navbar-end">
|
||||
<div class="navbar-item">
|
||||
<form role="search" method="get" class="search-form" action="/">
|
||||
<label>
|
||||
<input class="search-field" placeholder="Recherche" value="" name="s"
|
||||
type="search">
|
||||
</label>
|
||||
<input class="is-hidden search-submit" value="Rechercher" type="submit">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<div class="header-image">
|
||||
$$BANNIERE_ENTETE$$
|
||||
<!-- <img src="https://clairelemoine.art/wp-content/uploads/2023/10/cropped-SiteEntete-Oiseau-aquarelle-1.jpg" alt="$$BANNIERE_ENTETE_ALT$$"> -->
|
||||
</div>
|
||||
|
||||
</header>
|
||||
<main class="body-wrap boxed-container">
|
||||
<article class="content">
|
||||
$$ARTICLE$$
|
||||
</article>
|
||||
</main>
|
||||
<footer class="site-footer has-top-divider">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
$$FOOTER$$
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
<!-- généré avec orgmode-to-gemini-blog par Tykayn -->
|
||||
</html>
|
96
templates/html/static.html.jinja
Normal file
96
templates/html/static.html.jinja
Normal file
|
@ -0,0 +1,96 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta property="og:image" content="{template_content['SITE_ICON']}">
|
||||
<meta property="og:locale" content="{template_content['LOCALE']}">
|
||||
<meta property="og:description" content="{template_content['BLOG_SUBTITLE']}">
|
||||
<meta property="og:url" content="{template_content['NDD']}">
|
||||
<meta property="og:site_name" content="{template_content['TITLE']}">
|
||||
<link rel="alternate" type="application/atom+xml" title="Cipher Bliss » Flux"
|
||||
href="{template_content['NDD']}/feed/">
|
||||
<link href="/style.css" rel="stylesheet">
|
||||
<script src="main_script.js"></script>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{template_content['TITLE']}</title>
|
||||
<meta name="author" content="{template_content['AUTHOR']}">
|
||||
<link rel="alternate" type="application/rss+xml" title="{template_content['BLOG_TITLE']} » Flux"
|
||||
href="{template_content['NDD']}/feed/">
|
||||
<meta property="og:title" content="{template_content['PAGE_TITLE']}">
|
||||
<meta property="og:locale" content="{template_content['LOCALE']}">
|
||||
<!-- Description de la page -->
|
||||
<meta name="description" content="{template_content['PAGE_TITLE']}">
|
||||
<meta name="reply-to" content="{template_content['EMAIL']}">
|
||||
<link rel="icon" type="{template_content['SITE_ICON_TYPE']}" href="{template_content['SITE_ICON']}">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="page" class="page__{template_content[" PAGE_SLUG"]}">
|
||||
<header id="masthead" class="site-header">
|
||||
<div class="header-image" style="background: url('{template_content['BANNIERE_ENTETE']}') no-repeat;
|
||||
background-size: cover;">
|
||||
<a href="/">
|
||||
<img src="{template_content['SITE_ICON']}" class="site-icon img">
|
||||
</a>
|
||||
<h1 class="blog-title">{template_content['BLOG_TITLE']}</h1>
|
||||
<p class="blog-subtitle">{template_content['BLOG_SUBTITLE']}</p>
|
||||
<div class="template-header">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<nav class="navbar is-fixed-top is-dark" role="navigation" aria-label="main navigation">
|
||||
<div class="navbar-brand">
|
||||
<a class="navbar-item" href="{template_content['NDD']}">
|
||||
{template_content['NDD']}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div id="navbarBasicExample" class="navbar-menu">
|
||||
<div class="navbar-start">
|
||||
<a class="logo" href="{template_content['NDD']}">
|
||||
<img src="{template_content['SITE_ICON']}" class="img-fluid">
|
||||
</a>
|
||||
{template_content['NAVIGATION']}
|
||||
</div>
|
||||
<div class="navbar-end">
|
||||
<div class="navbar-item">
|
||||
<form role="search" method="get" class="search-form" action="/" id="recherche">
|
||||
<label>
|
||||
<input class="search-field" placeholder="Recherche" value="" name="s" type="search">
|
||||
</label>
|
||||
<input class="is-hidden search-submit" value="Rechercher" type="submit">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<main class="body-wrap boxed-container">
|
||||
<article class="content">
|
||||
{html_content}
|
||||
<p class="after-article">
|
||||
{after_article}
|
||||
</p>
|
||||
</article>
|
||||
</main>
|
||||
<footer class="site-footer has-top-divider">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
<div class="site-foot">
|
||||
</div>
|
||||
<nav class="footer-nav">
|
||||
{template_content['NAVIGATION']}
|
||||
<a href="/tags/">Tags</a>
|
||||
<a href="{template_content['NDD']}/feed/">Flux Atom</a>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
<!-- généré avec orgmode-to-gemini-blog par Tykayn -->
|
||||
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue