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 @@ ...@@ -81,6 +81,7 @@
:href="`https://twitter.com/${$config.twitter_user}`" :href="`https://twitter.com/${$config.twitter_user}`"
target="_blank" target="_blank"
class="flex items-center mb-2 hover:underline" class="flex items-center mb-2 hover:underline"
rel="noopener noreferrer"
> >
<fa :icon="['fab', 'twitter']" class="text-2xl mr-2.5" /> <fa :icon="['fab', 'twitter']" class="text-2xl mr-2.5" />
<span>@{{ $config.twitter_user }}</span> <span>@{{ $config.twitter_user }}</span>
...@@ -91,6 +92,7 @@ ...@@ -91,6 +92,7 @@
:href="$config.facebook_group" :href="$config.facebook_group"
target="_blank" target="_blank"
class="flex items-center mb-2 hover:underline" class="flex items-center mb-2 hover:underline"
rel="noopener noreferrer"
> >
<fa :icon="['fab', 'facebook']" class="text-2xl mr-2.5" /> <fa :icon="['fab', 'facebook']" class="text-2xl mr-2.5" />
<span>Groupe Facebook</span> <span>Groupe Facebook</span>
...@@ -119,23 +121,24 @@ ...@@ -119,23 +121,24 @@
href="https://nuxtjs.org" href="https://nuxtjs.org"
target="_blank" target="_blank"
class="hover:underline" class="hover:underline"
rel="noopener noreferrer"
> >
nuxtjs nuxtjs
</a> </a>
</div> au commit
<div class="lg:mr-4">
<a <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" target="_blank"
class="hover:underline" class="hover:underline"
rel="noopener noreferrer"
> >
Code source {{ $config.git_commit }}
</a> </a>
</div> </div>
</div> </div>
<div class=""> <div class="">
<a <a
rel="license" rel="license noopener noreferrer"
href="http://creativecommons.org/licenses/by-sa/4.0/" href="http://creativecommons.org/licenses/by-sa/4.0/"
target="_blank" target="_blank"
class="md:flex items-center" class="md:flex items-center"
......
import { execSync } from 'child_process'
import i18n from './plugins/i18n.js' import i18n from './plugins/i18n.js'
import config from './static/settings/globals.json' import config from './static/settings/globals.json'
import hooks from './libs/hooks.js' import hooks from './libs/hooks.js'
...@@ -12,6 +13,7 @@ const publicRuntimeConfig = { ...@@ -12,6 +13,7 @@ const publicRuntimeConfig = {
twitter_user: process.env.twitter_user || 'monnaie_libre', twitter_user: process.env.twitter_user || 'monnaie_libre',
social_networks_hashtags: social_networks_hashtags:
process.env.social_networks_hashtags || 'MonnaieLibre,Ğ1', process.env.social_networks_hashtags || 'MonnaieLibre,Ğ1',
git_commit: execSync('git log --pretty=format:"%h" -n 1').toString().trim(),
...config, ...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