Skip to content

Commit

Permalink
nuevos masthead
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcalarco committed Feb 7, 2024
1 parent ca5f75b commit 5524d04
Show file tree
Hide file tree
Showing 15 changed files with 120 additions and 10 deletions.
1 change: 1 addition & 0 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

<nav class="sidebar-nav">
<a class="sidebar-nav-item{% if page.url == site.baseurl %} active{% endif %}" href="{{ site.baseurl }}/">Inicio</a>
<a class="sidebar-nav-item" href="./instrucciones">Instrucciones</a>
<a class="sidebar-nav-item" href="./edicion">Edición</a>
<a class="sidebar-nav-item" href="./busquedas">Búsquedas</a>
<a class="sidebar-nav-item" href="./vocab_ctrl">Vocabulario controlado</a>
Expand Down
6 changes: 5 additions & 1 deletion _layouts/investigacionlayout.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ <h3 class="masthead-title">
</header>

<main class="container content" id="main">
<br/>
<h1 class="page-title">{{ page.title }}</h1>
<br/>
<br/>
{{ content }}
</main>
</div>
Expand Down Expand Up @@ -86,4 +90,4 @@ <h3 class="masthead-title">
}(document, 'script', 'facebook-jssdk'));
</script>
</body>
</html>
</html>
93 changes: 93 additions & 0 deletions _layouts/recursoslayout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<!DOCTYPE html>
<html lang="en-us">

{% include head.html %}

<body class="theme-base-{{site.color-scheme}}">

<!-- This if statement decides which sidebar to use -->
{% if page.toc %}
{% include sidebar-toc.html %}
{% else %}
{% include sidebar.html %}
{% endif %}

<!--
Wrap is the content to shift when toggling the sidebar. We wrap the content to avoid any CSS
collisions with our real content.
-->
<div class="wrap">
<header class="masthead_recursos">
<!-- <div class="container">
<h3 class="masthead-title">
<a href="{{ site.baseurl }}/" title="Home">{{ site.title | newline_to_br }}</a>
<br><small>{{ site.tagline }}</small>
</h3>
</div> -->
</header>

<main class="container content" id="main">
<br/>
<h1 class="page-title">{{ page.title }}</h1>
<br/>
<br/>
{{ content }}
</main>
</div>

<label for="sidebar-checkbox" class="sidebar-toggle"></label>

<script>

// Highlight search Query
var url = window.location.href;
if (url.lastIndexOf("?q=") > 0) {
// get the index of the parameter, add three (to account for length)
var stringloc = url.lastIndexOf("?q=") + 3;
// get the substring (query) and decode
var searchquery = decodeURIComponent(url.substr(stringloc));
// regex matches at beginning of line, end of line or word boundary, useful for poetry
var regex = new RegExp("(?:^|\\b)(" + searchquery + ")(?:$|\\b)", "gim");
// get, add mark and then set content
var content = document.getElementById("main").innerHTML;
document.getElementById("main").innerHTML = content.replace(regex, "<mark>$1</mark>");
}

// Toggle sidebar
(function(document) {
var toggle = document.querySelector('.sidebar-toggle');
var sidebar = document.querySelector('#sidebar');
var checkbox = document.querySelector('#sidebar-checkbox');

document.addEventListener('click', function(e) {
var target = e.target;

if(!checkbox.checked ||
!sidebar.contains(target) ||
(target === checkbox || target === toggle)) return;

checkbox.checked = false;
}, false);
})(document);
</script>

<!-- Facebook SDK for JavaScript -->
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '589495744558280',
xfbml : true,
version : 'v2.6'
});
};

(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
</body>
</html>
4 changes: 0 additions & 4 deletions _pages/investigacion.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
title: Investigación
permalink: investigacion
---
<div type="titulo">
<h1>Título</h1>
</div>

<div type="cuerpo del texto">
<p>Texto texto texto texto texto texto</p>
</div>
6 changes: 1 addition & 5 deletions _pages/investigacion/Testimonios.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
---
layout: entrada1
layout: investigacionlayout
title: Testimonios
permalink: testimonios
---
<div type="titulo">
<h1>Testimonios</h1>
</div>

<div type="cuerpo del texto">
<p>El texto del <i>Libro de Alexandre</i> se conserva a través de cinco testimonios, de los cuales solo dos, los manuscritos <b><a href="#testO">O</a></b>
y <b><a href="#testP">P</a></b>
Expand Down
8 changes: 8 additions & 0 deletions _pages/recursos.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: recursoslayout
title: Recursos
permalink: recursos
---
<div type="cuerpo del texto">
<p>Texto texto texto texto texto texto</p>
</div>
12 changes: 12 additions & 0 deletions _sass/_ed.scss
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,18 @@ tbody tr:nth-child(odd) th {
text-align: center;
}

.masthead_recursos {
// display: none;
background:fixed;
background-image: url("Otranto2.jpg");
background-size: cover;
border-bottom: 1px solid #eee;
margin-bottom: 1rem;
padding-top: 175px;
padding-bottom: 1rem;
text-align: center;
}

.masthead-title {

display: none;
Expand Down
Binary file added assets/css/Otranto2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/css/Tower_of_Babel2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/css/adanevadetallegg.jpg
Binary file not shown.
Binary file added assets/css/beato_osma.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/css/estudio_apeles.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/css/girona.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/css/otranto_adanyeva.jpg
Binary file not shown.
Binary file removed assets/css/otranto_masthead2.jpg
Binary file not shown.

0 comments on commit 5524d04

Please sign in to comment.