Browse Source

Enfin un thème qui fonctionne !

master
albakham 5 months ago
parent
commit
7b42e93400
7 changed files with 12 additions and 75 deletions
  1. 1
    1
      README.md
  2. 4
    3
      default.hbs
  3. 0
    32
      locales/en.json
  4. 0
    32
      locales/fr.json
  5. 1
    1
      partials/site-nav.hbs
  6. 1
    1
      partials/subscribe_form.hbs
  7. 5
    5
      subscribe.hbs

+ 1
- 1
README.md View File

@@ -28,7 +28,7 @@ I try to make the theme reusable as possible, but I still have to hardcode some

* [Isso comments block]()
* [GitHub, Mastodon and Shaarli links]()
*
* [Footer]()

### External assets embedded


+ 4
- 3
default.hbs View File

@@ -29,9 +29,10 @@
{{!-- The footer at the very bottom of the screen --}}
<footer class="site-footer outer">
<div class="site-footer-content inner">
<section>{{t "Unless otherwise stated, the content of this site is available under the CC-BY-SA </a href='https://creativecommons.org/licenses/by-sa/4.0/'>license"}}</section>
<section>Sauf indication contraire, le contenu de ce site est placé sous les termes de la licence CC-BY-SA</a href='https://creativecommons.org/licenses/by-sa/4.0/'></section>
<nav class="site-footer-nav">
<a href="{{@site.url}}/about/">About</a>
<a href="{{@site.url}}/contact/">Contact</a>
</nav>
</div>
</footer>
@@ -46,8 +47,8 @@
{{#if @site.logo}}
<img class="subscribe-overlay-logo" src="{{@site.logo}}" alt="{{@site.title}}" />
{{/if}}
<h1 class="subscribe-overlay-title">{{t "Subscribe to {sitetitle}" sitetitle=@site.title}}</h1>
<p class="subscribe-overlay-description">{{t "Stay up to date! Get all the latest &amp; greatest posts delivered straight to your inbox"}}</p>
<h1 class="subscribe-overlay-title">S'abonnez à {{@site.title}}</h1>
<p class="subscribe-overlay-description">Restez au courant ! Recevez toutes les dernières nouveautés &amp; meilleures publications délivrées directement dans votre boîte de réception.</p>
{{subscribe_form placeholder="youremail@example.com"}}
</div>
</div>

+ 0
- 32
locales/en.json View File

@@ -1,32 +0,0 @@
{
"Back": "Back",
"Newer Posts": "Newer Posts",
"Older Posts": "Older Posts",
"Page {page} of {pages}": "Page {page} of {pages}",
"Subscribe": "Subscribe",
"Subscribe to {sitetitle}": "Subscribe to {sitetitle}",
"Subscribed!": "Subscribed!",
"with the email address": "with the email address",
"Your email address": "Your email address",
"You've successfully subscribed to": "You've successfully subscribed to",
"A collection of posts": "A collection of posts",
"A collection of 1 post": "A collection of 1 post",
"A collection of % posts": "A collection of % posts",
"Get the latest posts delivered right to your inbox": "Get the latest posts delivered right to your inbox",
"Latest Posts": "Latest Posts",
"<a href='{url}'>More posts</a> by {name}": "<a href='{url}'>More posts</a> by {name}",
"No posts": "No posts",
" (Page %)": " (Page %)",
"Read More": "Read More",
"Read <a href='{url}'>more posts</a> by this author": "Read <a href='{url}'>more posts</a> by this author",
"See all % posts": "See all % posts",
"Share this": "Share this",
"Stay up to date! Get all the latest & greatest posts delivered straight to your inbox": "Stay up to date! Get all the latest & greatest posts delivered straight to your inbox",
"This post was a collaboration between": "This post was a collaboration between",
"youremail@example.com": "youremail@example.com",
"1 post": "1 post",
"% posts": "% posts",
"1 min read": "1 min read",
"% min read": "% min read",
"Unless otherwise stated, the content of this site is available under the CC-BY-SA </a href='https://creativecommons.org/licenses/by-sa/4.0/'>license": "Unless otherwise stated, the content of this site is available under the CC-BY-SA </a href='https://creativecommons.org/licenses/by-sa/4.0/'>license",
}

+ 0
- 32
locales/fr.json View File

@@ -1,32 +0,0 @@
{
"Back": "Retour",
"Newer Posts": "Nouveaux billets",
"Older Posts": "Articles plus anciens",
"Page {page} of {pages}": "Page {page} sur {pages}",
"Subscribe": "Abonnez-vous",
"Subscribe to {sitetitle}": "Abonnez-vous à {sitetitle}",
"Subscribed!": "Abonné !",
"with the email address": "avec l'adresse e-mail",
"Your email address": "Votre adresse e-mail",
"You've successfully subscribed to": "Vous vous êtes abonné avec succès",
"A collection of posts": "Une collection d'articles",
"A collection of 1 post": "Une collection de 1 article",
"A collection of % posts": "Une collection de % articles",
"Get the latest posts delivered right to your inbox": "Recevez les derniers articles directement dans votre boîte de réception",
"Latest Posts": "Derniers articles",
"<a href='{url}'>More posts</a> by {name}": "<a href='{url}'>Plus de publications </a> par {name}",
"No posts": "Pas de publications",
" (Page %)": " (Page %)",
"Read More": "Lire la suite",
"Read <a href='{url}'>more posts</a> by this author": "Lire <a href='{url}'>plus de publications</a> de cet auteur",
"See all % posts": "Voir les % publications",
"Share this": "Partagez",
"Stay up to date! Get all the latest & greatest posts delivered straight to your inbox": "Ne manquez pas les dernières nouveautés ! Recevez toutes les dernières et meilleures publications directement dans votre boîte de réception",
"This post was a collaboration between": "Ce poste est le fruit d'une collaboration entre",
"youremail@example.com": "votre-email@example.com",
"1 post": "1 publication",
"% posts": "% publications",
"1 min read": "1 min de lecture",
"% min read": "% min de lecture",
"Unless otherwise stated, the content of this site is available under the CC-BY-SA </a href='https://creativecommons.org/licenses/by-sa/4.0/'>license": "Sauf indication contraire, le contenu de ce site est disponible sous licence CC-BY-SA</a href='https://creativecommons.org/licenses/by-sa/4.0/'>",
}

+ 1
- 1
partials/site-nav.hbs View File

@@ -23,7 +23,7 @@
{{/if}}
</div>
{{#if @labs.subscribers}}
<a class="subscribe-button" href="#subscribe">{{t "Subscribe"}}</a>
<a class="subscribe-button" href="#subscribe">S'abonner</a>
{{else}}
<a class="rss-button" href="{{@site.url}}/rss/" title="RSS" target="_blank" rel="noopener">{{> "icons/rss"}}</a>
{{/if}}

+ 1
- 1
partials/subscribe_form.hbs View File

@@ -5,7 +5,7 @@
<div class="form-group{{#if error}} error{{/if}}">
{{input_email id=input_id class=input_class placeholder=placeholder value=email autofocus=autofocus}}
</div>
<button id="{{button_id}}" class="{{button_class}}" type="submit"><span>{{t "Subscribe"}}</span></button>
<button id="{{button_id}}" class="{{button_class}}" type="submit"><span>S'abonner</span></button>
{{! This is used to get extra info about where this subscriber came from }}
{{script}}
</form>

+ 5
- 5
subscribe.hbs View File

@@ -5,7 +5,7 @@
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

<title>{{@site.title}} - {{t "Subscribe"}}</title>
<title>{{@site.title}} - S'abonner</title>

<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
@@ -46,7 +46,7 @@
<section class="gh-flow-content">
{{^if success}}
<header>
<h1>{{t "Subscribe to {sitetitle}" sitetitle=@site.title}}</h1>
<h1>S'abonner à {{@site.title}}</h1>
</header>

{{subscribe_form
@@ -58,12 +58,12 @@
}}
{{else}}
<header>
<h1>{{t "Subscribed!"}}</h1>
<h1>Abonné !</h1>
</header>

<p>
{{t "You've successfully subscribed to"}}<em> {{@site.title}}</em>
{{t "with the email address"}} <em>{{email}}</em>.
Vous vous êtes inscris avec succès à<em> {{@site.title}}</em>
avec l'adresse mail <em>{{email}}</em>.
</p>
{{/if}}
</section>

Loading…
Cancel
Save