Skip to content
Snippets Groups Projects
Commit 50f7fcad authored by Emmanuel Salomon's avatar Emmanuel Salomon :fist:
Browse files

feat: get git commit ID at buildtime + fix rel attribute in footer

parent 0f52e501
No related branches found
No related tags found
No related merge requests found
......@@ -81,6 +81,7 @@
:href="`https://twitter.com/${$config.twitter_user}`"
target="_blank"
class="flex items-center mb-2 hover:underline"
rel="noopener noreferrer"
>
<fa :icon="['fab', 'twitter']" class="text-2xl mr-2.5" />
<span>@{{ $config.twitter_user }}</span>
......@@ -91,6 +92,7 @@
:href="$config.facebook_group"
target="_blank"
class="flex items-center mb-2 hover:underline"
rel="noopener noreferrer"
>
<fa :icon="['fab', 'facebook']" class="text-2xl mr-2.5" />
<span>Groupe Facebook</span>
......@@ -119,23 +121,24 @@
href="https://nuxtjs.org"
target="_blank"
class="hover:underline"
rel="noopener noreferrer"
>
nuxtjs
</a>
</div>
<div class="lg:mr-4">
au commit
<a
href="https://git.duniter.org/websites/monnaie-libre-fr"
:href="`https://git.duniter.org/websites/monnaie-libre-fr/-/commit/${$config.git_commit}`"
target="_blank"
class="hover:underline"
rel="noopener noreferrer"
>
Code source
{{ $config.git_commit }}
</a>
</div>
</div>
<div class="">
<a
rel="license"
rel="license noopener noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank"
class="md:flex items-center"
......
import { execSync } from 'child_process'
import i18n from './plugins/i18n.js'
import config from './static/settings/globals.json'
import hooks from './libs/hooks.js'
......@@ -12,6 +13,7 @@ const publicRuntimeConfig = {
twitter_user: process.env.twitter_user || 'monnaie_libre',
social_networks_hashtags:
process.env.social_networks_hashtags || 'MonnaieLibre,Ğ1',
git_commit: execSync('git log --pretty=format:"%h" -n 1').toString().trim(),
...config,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment