Commit cd2649a0 authored by sbiego's avatar sbiego

ugly but working social on multilang

parent 668f7f72
......@@ -11,45 +11,6 @@ relativeURLs = false
# Define the number of posts per page
paginate = 5
[menu]
# Main menu into respective languages sections
# Top bar social links menu THAT ARE NOW INTO THE FOOTER
[[languages.en.menu.topbar]]
weight = 1
name = "Retroshare"
url = "http://retroshare.net/"
# pre = "<i class='fa fa-2x fa-share-alt' aria-hidden='true'></i>"
pre = "<i class='fa fa-2x retroshare' aria-hidden='true'></i>"
[[languages.en.menu.topbar]]
weight = 2
name = "GitLab"
url = "https://git.eigenlab.org/sbiego/web-elpoblet"
pre = "<i class='fa fa-2x fa-gitlab' aria-hidden='true'></i>"
# pre = "<i class='fa fa-2x fa-code-fork' aria-hidden='true'></i>"
[[languages.en.menu.topbar]]
weight = 3
name = "Facebook"
url = "http://facebook.com"
pre = "<i class='fa fa-2x fa-facebook'></i>"
[[languages.en.menu.topbar]]
weight = 4
name = "Twitter"
url = "http://twitter.com"
pre = "<i class='fa fa-2x fa-twitter'></i>"
[[languages.en.menu.topbar]]
weight = 5
name = "Email"
url = "mailto:info@elpoblet.org"
pre = "<i class='fa fa-2x fa-envelope'></i>"
[params]
viewMorePostLink = "/blog/"
author = "elPoblet"
......@@ -95,12 +56,13 @@ paginate = 5
latitude = "-12.043333"
longitude = "-77.028333"
# Site language. Available translations in the theme's `/i18n` directory.
defaultContentLanguage = "ca"
defaultContentLanguageInSubdir = false
enableMissingTranslationPlaceholders = true
# Site language. Available translations in the theme's `/i18n` directory.
defaultContentLanguage = "ca"
defaultContentLanguageInSubdir = false
enableMissingTranslationPlaceholders = true
[menu]
#catalan
[languages.ca]
......@@ -126,6 +88,37 @@ enableMissingTranslationPlaceholders = true
url = "/contact/"
weight = 4
## social
[[languages.ca.menu.social]]
weight = 1
name = "Retroshare"
url = "http://retroshare.net/"
pre = "<i class='fa fa-2x retroshare' aria-hidden='true'></i>"
[[languages.ca.menu.social]]
weight = 2
name = "GitLab"
url = "https://git.eigenlab.org/sbiego/web-elpoblet"
pre = "<i class='fa fa-2x fa-gitlab' aria-hidden='true'></i>"
[[languages.ca.menu.social]]
weight = 3
name = "Facebook"
url = "http://facebook.com"
pre = "<i class='fa fa-2x fa-facebook'></i>"
[[languages.ca.menu.social]]
weight = 4
name = "Twitter"
url = "http://twitter.com"
pre = "<i class='fa fa-2x fa-twitter'></i>"
[[languages.ca.menu.social]]
weight = 5
name = "Email"
url = "mailto:info@elpoblet.org"
pre = "<i class='fa fa-2x fa-envelope'></i>"
#spanish
[languages.es]
......@@ -151,6 +144,37 @@ enableMissingTranslationPlaceholders = true
url = "/contact/"
weight = 4
## social
[[languages.es.menu.social]]
weight = 1
name = "Retroshare"
url = "http://retroshare.net/"
pre = "<i class='fa fa-2x retroshare' aria-hidden='true'></i>"
[[languages.es.menu.social]]
weight = 2
name = "GitLab"
url = "https://git.eigenlab.org/sbiego/web-elpoblet"
pre = "<i class='fa fa-2x fa-gitlab' aria-hidden='true'></i>"
[[languages.es.menu.social]]
weight = 3
name = "Facebook"
url = "http://facebook.com"
pre = "<i class='fa fa-2x fa-facebook'></i>"
[[languages.es.menu.social]]
weight = 4
name = "Twitter"
url = "http://twitter.com"
pre = "<i class='fa fa-2x fa-twitter'></i>"
[[languages.es.menu.social]]
weight = 5
name = "Email"
url = "mailto:info@elpoblet.org"
pre = "<i class='fa fa-2x fa-envelope'></i>"
#italian
[languages.it]
......@@ -177,6 +201,38 @@ enableMissingTranslationPlaceholders = true
weight = 4
## social
[[languages.it.menu.social]]
weight = 1
name = "Retroshare"
url = "http://retroshare.net/"
pre = "<i class='fa fa-2x retroshare' aria-hidden='true'></i>"
[[languages.it.menu.social]]
weight = 2
name = "GitLab"
url = "https://git.eigenlab.org/sbiego/web-elpoblet"
pre = "<i class='fa fa-2x fa-gitlab' aria-hidden='true'></i>"
[[languages.it.menu.social]]
weight = 3
name = "Facebook"
url = "http://facebook.com"
pre = "<i class='fa fa-2x fa-facebook'></i>"
[[languages.it.menu.social]]
weight = 4
name = "Twitter"
url = "http://twitter.com"
pre = "<i class='fa fa-2x fa-twitter'></i>"
[[languages.it.menu.social]]
weight = 5
name = "Email"
url = "mailto:info@elpoblet.org"
pre = "<i class='fa fa-2x fa-envelope'></i>"
#english
[languages.en]
weight = 4
......@@ -202,6 +258,37 @@ enableMissingTranslationPlaceholders = true
url = "/contact/"
weight = 4
## social
[[languages.en.menu.social]]
weight = 1
name = "Retroshare"
url = "http://retroshare.net/"
pre = "<i class='fa fa-2x retroshare' aria-hidden='true'></i>"
[[languages.en.menu.social]]
weight = 2
name = "GitLab"
url = "https://git.eigenlab.org/sbiego/web-elpoblet"
pre = "<i class='fa fa-2x fa-gitlab' aria-hidden='true'></i>"
[[languages.en.menu.social]]
weight = 3
name = "Facebook"
url = "http://facebook.com"
pre = "<i class='fa fa-2x fa-facebook'></i>"
[[languages.en.menu.social]]
weight = 4
name = "Twitter"
url = "http://twitter.com"
pre = "<i class='fa fa-2x fa-twitter'></i>"
[[languages.en.menu.social]]
weight = 5
name = "Email"
url = "mailto:info@elpoblet.org"
pre = "<i class='fa fa-2x fa-envelope'></i>"
#german
[languages.de]
weight = 5
......@@ -227,7 +314,38 @@ enableMissingTranslationPlaceholders = true
weight = 4
#french
## social
[[languages.de.menu.social]]
weight = 1
name = "Retroshare"
url = "http://retroshare.net/"
pre = "<i class='fa fa-2x retroshare' aria-hidden='true'></i>"
[[languages.de.menu.social]]
weight = 2
name = "GitLab"
url = "https://git.eigenlab.org/sbiego/web-elpoblet"
pre = "<i class='fa fa-2x fa-gitlab' aria-hidden='true'></i>"
[[languages.de.menu.social]]
weight = 3
name = "Facebook"
url = "http://facebook.com"
pre = "<i class='fa fa-2x fa-facebook'></i>"
[[languages.de.menu.social]]
weight = 4
name = "Twitter"
url = "http://twitter.com"
pre = "<i class='fa fa-2x fa-twitter'></i>"
[[languages.de.menu.social]]
weight = 5
name = "Email"
url = "mailto:info@elpoblet.org"
pre = "<i class='fa fa-2x fa-envelope'></i>"
# french
[languages.fr]
weight = 6
languageName = "Français"
......@@ -251,18 +369,46 @@ enableMissingTranslationPlaceholders = true
url = "/contact/"
weight = 4
[[languages.fr.params.recent_posts]]
title = "From our blog fr"
subtitle = "Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. frfrfrfrfrfrfr"
## social
[[languages.fr.menu.social]]
weight = 1
name = "Retroshare"
url = "http://retroshare.net/"
pre = "<i class='fa fa-2x retroshare' aria-hidden='true'></i>"
[[languages.fr.menu.social]]
weight = 2
name = "GitLab"
url = "https://git.eigenlab.org/sbiego/web-elpoblet"
pre = "<i class='fa fa-2x fa-gitlab' aria-hidden='true'></i>"
[[languages.fr.menu.social]]
weight = 3
name = "Facebook"
url = "http://facebook.com"
pre = "<i class='fa fa-2x fa-facebook'></i>"
[[languages.fr.menu.social]]
weight = 4
name = "Twitter"
url = "http://twitter.com"
pre = "<i class='fa fa-2x fa-twitter'></i>"
[[languages.fr.menu.social]]
weight = 5
name = "Email"
url = "mailto:info@elpoblet.org"
pre = "<i class='fa fa-2x fa-envelope'></i>"
[Permalinks]
blog = "/blog/:year/:month/:day/:filename/"
# Enable or disable top bar with social icons
[params.topbar]
[params.social]
enable = true
text = """<p class="hidden-sm hidden-xs">Contact us on <a href="tel:+666">+666</a> or <a href="mailto:"info@elpoblet.org">info@elpoblet.org</a>.</p>
<p class="hidden-md hidden-lg"><a href="#" data-animate-hover="pulse"><i class="fa fa-phone"></i></a>
......
......@@ -63,21 +63,21 @@
</div>
<!-- /.container -->
{{ if .Site.Params.topbar.enable }}
<div class="social_external">
<!-- {{ if .Site.Params.topbar.enable }}
<div class="social">
{{ range .Site.Menus.topbar.ByWeight }}
<a href="{{ .URL }}" target="_blank" style="opacity: 1;">{{ .Pre }}</a>
{{ end }}
</div>
{{ end }}
{{ end }} -->
<!-- {{ if .Site.Params.topbar.enable }}
<div class="social">
{{ range .Site.Menus.topbar.ByWeight }}
{{ if .Site.Params.social.enable }}
<div class="social_external">
{{ range .Site.Menus.social.ByWeight }}
<a href="{{ .URL }}" target="_blank">{{ .Pre }}</a>
{{ end }}
</div>
{{ end }} -->
{{ end }}
{{ partial "multi_lang.html" . }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment