Commit 86f357cc authored by Floriana's avatar Floriana

customized jekyll theme

parent d447bd77
Pipeline #95620544 passed with stages
in 1 minute and 26 seconds
......@@ -47,7 +47,14 @@ port: 4000
exclude:
- .idea/
- .gitignore
- vendor/*
- vendor/*
- bin/
- docker-compose.yml
- Dockerfile
- Gemfile
- Gemfile.lock
- README.md
- var/
# these are the files and directories that jekyll will exclude from the build
......
......@@ -24,7 +24,15 @@ topnav_dropdowns:
es: Acerca de
pt: Sobre
folderitems:
- title: Access Now
- title: multilanguage
en: Access Now
it: Access Now
ru: Access Now
es: Access Now
pt: Access Now
fl: Access Now
fr: Access Now
ar: Access Now
external_url: multilanguage
m_external_url:
en: https://accessnow.org/about
......
......@@ -14,7 +14,7 @@
<link rel="stylesheet" href="css/customstyles.css">
<link rel="stylesheet" href="css/boxshadowproperties.css">
<!-- most color styles are extracted out to here -->
<link rel="stylesheet" href="css/theme-green.css">
<link rel="stylesheet" href="css/theme-helpline.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
......
......@@ -10,12 +10,12 @@
</button>
{% if site.topnav_title == "multilanguage"%}
{% if site.m_topnav_title[page.lang] and page.lang != "en"%}
<a class="fa fa-home fa-lg navbar-brand" href="{{page.lang}}_index.html">&nbsp;<span class="projectTitle">{{site.m_topnav_title[page.lang]}}</span></a>
<a class="fa fa-wrench fa-lg navbar-brand" href="{{page.lang}}_index.html">&nbsp;<span class="projectTitle">{{site.m_topnav_title[page.lang]}}</span></a>
{% else %}
<a class="fa fa-home fa-lg navbar-brand" href="index.html">&nbsp;<span class="projectTitle">{{site.m_topnav_title.en}}</span></a>
<a class="fa fa-wrench fa-lg navbar-brand" href="index.html">&nbsp;<span class="projectTitle">{{site.m_topnav_title.en}}</span></a>
{% endif %}
{% else %}
<a class="fa fa-home fa-lg navbar-brand" href="index.html">&nbsp;<span class="projectTitle"> {{site.topnav_title}}</span></a>
<a class="fa fa-wrench fa-lg navbar-brand" href="index.html">&nbsp;<span class="projectTitle"> {{site.topnav_title}}</span></a>
{% endif %}
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
......
......@@ -4,8 +4,8 @@
<head>
{% include head.html %}
<script>
var languages = ["ar", "de", "en", "es", "fl", "fr", "it", "pt", "ru"];
var languageshomeredirect = ["ru","de","it"];
var languages = ["en", "ru"];
var languageshomeredirect = ["ru"];
//sostit with Liquid sintax
var written = new Array(9 + 1).join('0').split('');
var langind = 0;
......@@ -56,13 +56,7 @@
}; /* cycles through each li of ul.multilang and checks if they have a class with a language; if the class exists, the script proceeds, else, if it does not exist, it appends a standard li.*/
var rtllang= [
"ar", // Arabic
"dv", // Divehi; Dhivehi; Maldivian
"he", // Hebrew (modern)
"fa", // Persian
"ps", // Pashto; Pushto
"ur", // Urdu
"yi", // Yiddish
"ru", // Russian
];
function toggleMultilangRtl(){
var languageset= $("html").attr("lang");
......
---
layout: default
---
<div class="post-header">
{% include image.html file="DSH_Logo.png" alt="Digital Security Helpline" max-width="400" %}
<h1 class="post-title-main">{{ page.title }}</h1>
</div>
{% if page.simple_map == true %}
<script>
$(document).ready ( function(){
$('.box{{page.box_number}}').addClass('active');
});
</script>
{% include custom/{{page.map_name}}.html %}
{% elsif page.complex_map == true %}
<script>
$(document).ready ( function(){
$('.modalButton{{page.box_number}}').addClass('active');
});
</script>
{% include custom/{{page.map_name}}.html %}
{% endif %}
<div class="post-content">
{% if page.summary %}
<div class="summary">{{page.summary}}</div>
{% endif %}
{% unless page.toc == false %}
{% include toc.html %}
{% endunless %}
{% if site.github_editme_path %}
<a target="_blank" href="https://github.com/{{site.github_editme_path}}{% unless page.url contains "index.html" %}pages/{% endunless %}{{page.folder}}{{page.url | remove: ".html" | append: ".md"}}" class="btn btn-default githubEditButton" role="button"><i class="fa fa-github fa-lg"></i> Edit me</a>
{% endif %}
{% if site.gitlab_editme_path %}
<a target="_blank" href="https://gitlab.com/{{site.gitlab_editme_path}}{% unless page.url contains "index.html" %}pages/{% endunless %}{{page.folder}}{{page.url | remove: ".html" | append: ".md"}}" class="btn btn-default githubEditButton" role="button"><i class="fa fa-gitlab fa-lg"></i> Edit me</a>
{% endif %}
{{content}}
<div class="tags">
{% if page.tags != null %}
<b>Tags: </b>
{% assign projectTags = site.data.tags.allowed-tags %}
{% for tag in page.tags %}
{% if projectTags contains tag %}
<a href="{{ "tag_" | append: tag | append: ".html" }}" class="btn btn-default navbar-btn cursorNorm" role="button">{{page.tagName}}{{tag}}</a>
{% endif %}
{% endfor %}
{% endif %}
</div>
{% include disqus.html %}
</div>
{{site.data.alerts.hr_shaded}}
{% include footer.html %}
......@@ -3,6 +3,8 @@ layout: default
---
<div class="post-header">
{% include image.html file="DSH_Logo.png" alt="Digital Security Helpline" max-width="150" %}
<h1 class="post-title-main">{{ page.title }}</h1>
</div>
......@@ -41,7 +43,7 @@ layout: default
{% if site.github_editme_path %}
<a target="_blank" href="https://github.com/{{site.github_editme_path}}{% unless page.url contains "index.html" %}pages/{% endunless %}{{page.folder}}{{page.url | remove: ".html" | append: ".md"}}" class="btn btn-default githubEditButton" role="button"><i class="fa fa-github fa-lg"></i> Edit me</a>
<a target="_blank" rel="noopener" href="https://github.com/{{site.github_editme_path}}{{page.path}}" class="btn btn-default githubEditButton" role="button"><i class="fa fa-github fa-lg"></i> Edit me</a>
{% endif %}
......
.summary {
color: #808080;
border-left: 5px solid #E50E51;
font-size:16px;
}
h3 {color: #E50E51; }
h4 {color: #808080; }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
background-color: #248ec2;
color: white;
}
.nav > li.active > a {
background-color: #70d4bb;
}
.nav > li > a:hover {
background-color: #70d4bb;
}
div.navbar-collapse .dropdown-menu > li > a:hover {
background-color: #70d4bb;
}
.navbar-inverse .navbar-nav>li>a, .navbar-inverse .navbar-brand {
color: white;
}
.navbar-inverse .navbar-nav>li>a:hover, a.fa.fa-wrench.fa-lg.navbar-brand:hover {
color: #f0f0f0;
}
.nav li.thirdlevel > a {
background-color: #FAFAFA !important;
color: #70d4bb;
font-weight: bold;
}
a[data-toggle="tooltip"] {
color: #70d4bb;
font-style: italic;
cursor: default;
}
.navbar-inverse {
background-color: #70d4bb;
border-color: #298971;
}
.navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus {
color: #298971;
}
.navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus {
background-color: #298971;
color: #ffffff;
}
/* not sure if using this ...*/
.navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form {
border-color: #70d4bb !important;
}
.btn-primary {
color: #ffffff;
background-color: #298971;
border-color: #298971;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
background-color: #70d4bb;
border-color: #298971;
}
.printTitle {
color: #298971 !important;
}
body.print h1 {color: #298971 !important; font-size:28px;}
body.print h2 {color: #298971 !important; font-size:24px;}
body.print h3 {color: #E50E51 !important; font-size:14px;}
body.print h4 {color: #679DCE !important; font-size:14px; font-style: italic;}
.anchorjs-link:hover {
color: #1d6251;
}
div.sidebarTitle {
color: #E50E51;
}
li.sidebarTitle {
margin-top:20px;
font-weight:normal;
font-size:130%;
color: #ED1951;
margin-bottom:10px;
margin-left: 5px;
}
.navbar-inverse .navbar-toggle:focus, .navbar-inverse .navbar-toggle:hover {
background-color: #E50E51;
}
images/favicon.ico

173 KB | W: | H:

images/favicon.ico

6.84 KB | W: | H:

images/favicon.ico
images/favicon.ico
images/favicon.ico
images/favicon.ico
  • 2-up
  • Swipe
  • Onion skin
......@@ -2,6 +2,7 @@
title: "Access Now Helpline Guides"
keywords: home
tags: [home]
layout: home
sidebar: mydoc_sidebar
permalink: index.html
ref: home
......
......@@ -20,10 +20,6 @@ This website is deployed from a [public repository on Gitlab.com](https://gitlab
- [**Как собрать информацию о себе**](self-doxing_ru.html)
{% include links.html %}
{% include links.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