Skip to content

Commit

Permalink
nuevos mastheads
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcalarco committed Jan 25, 2024
1 parent 9b8d8b5 commit 8f2ef15
Show file tree
Hide file tree
Showing 21 changed files with 208 additions and 4 deletions.
3 changes: 2 additions & 1 deletion _layouts/busquedaslayout.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ <h3 class="masthead-title">

<main class="container content" id="main">
<article class="page">
<h1 class="page-title">{{ page.title }}</h1>
<!-- <br/>
<h1 class="page-title">{{ page.title }}</h1> -->
{{ content }}
</article>
</main>
Expand Down
89 changes: 89 additions & 0 deletions _layouts/investigacionlayout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<!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_investigacion">
<!-- <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">
{{ 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>
89 changes: 89 additions & 0 deletions _layouts/vocabctrllayout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<!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_vocab_ctrl">
<!-- <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">
{{ 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>
2 changes: 1 addition & 1 deletion _pages/textos.html → _pages/edicion.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: textos_lista
title: Edición de los fragmentos de ácfrasis del Libro de Alexandre
title: Edición de los fragmentos de écfrasis del Libro de Alexandre
permalink: edicion
---

Expand Down
12 changes: 12 additions & 0 deletions _pages/investigacion.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: investigacionlayout
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>
Empty file removed _pages/investigacion_page
Empty file.
File renamed without changes.
13 changes: 13 additions & 0 deletions _pages/vocab_ctrl.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
layout: vocabctrllayout
title: Vocabulario Controlado
permalink: vocab_ctrl
---
<div type="titulo">
<br/>
<h1>Título</h1>
</div>

<div type="cuerpo del texto">
<p>Texto texto texto texto texto texto</p>
</div>
Empty file removed _pages/vocab_ctrl_page
Empty file.
4 changes: 2 additions & 2 deletions _sass/_ed.scss
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ tbody tr:nth-child(odd) th {
.masthead_vocab_ctrl {
// display: none;
background:fixed;
background-image: url("Ebstorfer-stich2.jpg");
background-image: url("Tower_of_Babel2.jpg");
background-size: cover;
border-bottom: 1px solid #eee;
margin-bottom: 1rem;
Expand All @@ -321,7 +321,7 @@ tbody tr:nth-child(odd) th {
.masthead_investigacion {
// display: none;
background:fixed;
background-image: url("Otranto_calendario.jpg");
background-image: url("girona.jpg");
background-size: cover;
border-bottom: 1px solid #eee;
margin-bottom: 1rem;
Expand Down
Binary file removed assets/css/Ebstorfer-stich2.jpg
Binary file not shown.
Binary file removed assets/css/Girona_Annus.jpg
Binary file not shown.
Binary file removed assets/css/Girona_Génesis.jpg
Binary file not shown.
Binary file removed assets/css/Otranto_babel.jpg
Binary file not shown.
Binary file removed assets/css/Otranto_calendario.jpg
Binary file not shown.
Binary file removed assets/css/Otranto_diluvio.jpg
Binary file not shown.
Binary file added 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 added assets/css/adanevadetallegg.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/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 added assets/css/otranto_adanyeva.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/otranto_masthead2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8f2ef15

Please sign in to comment.