Commit 9c5c7810 authored by Tamás Szelei's avatar Tamás Szelei
Browse files

Initial commit

parents
'use strict';
document.addEventListener('DOMContentLoaded', function () {
var $burgers = getAll('.navbar-burger');
if ($burgers.length > 0) {
$burgers.forEach(function ($el) {
if (!$el.dataset.target) {
return;
}
$el.addEventListener('click', function () {
var target = $el.dataset.target;
var $target = document.getElementById(target);
$el.classList.toggle('is-active');
$target.classList.toggle('is-active');
});
});
}
});
// Utils
function getAll(selector) {
var parent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
return Array.prototype.slice.call(parent.querySelectorAll(selector), 0);
}
\ No newline at end of file
/*! modernizr 3.6.0 (Custom Build) | MIT *
* https://modernizr.com/download/?-webp-setclasses !*/
!function(e,n,A){function o(e,n){return typeof e===n}function t(){var e,n,A,t,a,i,l;for(var f in r)if(r.hasOwnProperty(f)){if(e=[],n=r[f],n.name&&(e.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(A=0;A<n.options.aliases.length;A++)e.push(n.options.aliases[A].toLowerCase());for(t=o(n.fn,"function")?n.fn():n.fn,a=0;a<e.length;a++)i=e[a],l=i.split("."),1===l.length?Modernizr[l[0]]=t:(!Modernizr[l[0]]||Modernizr[l[0]]instanceof Boolean||(Modernizr[l[0]]=new Boolean(Modernizr[l[0]])),Modernizr[l[0]][l[1]]=t),s.push((t?"":"no-")+l.join("-"))}}function a(e){var n=u.className,A=Modernizr._config.classPrefix||"";if(c&&(n=n.baseVal),Modernizr._config.enableJSClass){var o=new RegExp("(^|\\s)"+A+"no-js(\\s|$)");n=n.replace(o,"$1"+A+"js$2")}Modernizr._config.enableClasses&&(n+=" "+A+e.join(" "+A),c?u.className.baseVal=n:u.className=n)}function i(e,n){if("object"==typeof e)for(var A in e)f(e,A)&&i(A,e[A]);else{e=e.toLowerCase();var o=e.split("."),t=Modernizr[o[0]];if(2==o.length&&(t=t[o[1]]),"undefined"!=typeof t)return Modernizr;n="function"==typeof n?n():n,1==o.length?Modernizr[o[0]]=n:(!Modernizr[o[0]]||Modernizr[o[0]]instanceof Boolean||(Modernizr[o[0]]=new Boolean(Modernizr[o[0]])),Modernizr[o[0]][o[1]]=n),a([(n&&0!=n?"":"no-")+o.join("-")]),Modernizr._trigger(e,n)}return Modernizr}var s=[],r=[],l={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,n){var A=this;setTimeout(function(){n(A[e])},0)},addTest:function(e,n,A){r.push({name:e,fn:n,options:A})},addAsyncTest:function(e){r.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=l,Modernizr=new Modernizr;var f,u=n.documentElement,c="svg"===u.nodeName.toLowerCase();!function(){var e={}.hasOwnProperty;f=o(e,"undefined")||o(e.call,"undefined")?function(e,n){return n in e&&o(e.constructor.prototype[n],"undefined")}:function(n,A){return e.call(n,A)}}(),l._l={},l.on=function(e,n){this._l[e]||(this._l[e]=[]),this._l[e].push(n),Modernizr.hasOwnProperty(e)&&setTimeout(function(){Modernizr._trigger(e,Modernizr[e])},0)},l._trigger=function(e,n){if(this._l[e]){var A=this._l[e];setTimeout(function(){var e,o;for(e=0;e<A.length;e++)(o=A[e])(n)},0),delete this._l[e]}},Modernizr._q.push(function(){l.addTest=i}),Modernizr.addAsyncTest(function(){function e(e,n,A){function o(n){var o=n&&"load"===n.type?1==t.width:!1,a="webp"===e;i(e,a&&o?new Boolean(o):o),A&&A(n)}var t=new Image;t.onerror=o,t.onload=o,t.src=n}var n=[{uri:"data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA=",name:"webp"},{uri:"data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==",name:"webp.alpha"},{uri:"data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA",name:"webp.animation"},{uri:"data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=",name:"webp.lossless"}],A=n.shift();e(A.name,A.uri,function(A){if(A&&"load"===A.type)for(var o=0;o<n.length;o++)e(n[o].name,n[o].uri)})}),t(),a(s),delete l.addTest,delete l.addAsyncTest;for(var p=0;p<Modernizr._q.length;p++)Modernizr._q[p]();e.Modernizr=Modernizr}(window,document);
\ No newline at end of file
@charset "utf-8";
@import "../node_modules/bulma/bulma.sass";
{% extends "index.html" %}
<!DOCTYPE html>
<html lang="en" id="rootElement">
<!-- hello -->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>My custom Bulma website</title>
<link rel="stylesheet" href="css/styles.css">
<title>{% block title %}{{ config.title }} - {{ page.title | default(value="főoldal" )}}{% endblock title %}</title>
<style>
.no-webp .header-bg {
background-image:
linear-gradient(
rgba(128, 128, 128, 0.45),
rgba(128, 128, 128, 0.247)
),
{% if page.extra.cover -%}
{% set cover = "/img/" ~ page.extra.cover -%}
url('{{ get_url(path=cover) ~ ".jpg" | safe }}')
{% else -%}
url('{{ get_url(path="/img/default-bg.jpg") | safe }}')
{% endif -%}
}
.webp .header-bg {
background-image:
linear-gradient(
rgba(128, 128, 128, 0.45),
rgba(128, 128, 128, 0.247)
),
{% if page.extra.cover -%}
{% set cover = "/img/" ~ page.extra.cover -%}
url('{{ get_url(path=cover) ~ ".webp" | safe}}')
{% else -%}
url('{{ get_url(path="/img/default-bg.webp") | safe }}')
{% endif -%}
}
</style>
</head>
<body>
<section class="hero header-bg is-medium">
<div class="hero-head has-background-white">
<nav class="navbar is-transparent">
<div class="container">
<div class="navbar-brand">
<a class="navbar-item" href="/">
<img src="https://bulma.io/images/bulma-logo.png" alt="Logo">
</a>
<button class="navbar-burger" data-target="navbarMenuHeroA" id="burger">
<span></span>
<span></span>
<span></span>
</button>
</div>
<div id="navbarMenuHeroA" class="navbar-menu is-primary">
<div class="navbar-end">
{% for item in config.extra.clean_blog_menu %}
<a href="{{ item.url | replace(from="$BASE_URL", to=config.base_url) }}"
class="navbar-item">
{{ item.name }}
</a>
{% endfor %}
<span class="navbar-item">
<a class="button is-primary is-inverted">
<span class="icon">
<i class="fab fa-github"></i>
</span>
<span>Download</span>
</a>
</span>
</div>
</div>
</div>
</nav>
</div>
<!-- Hero content: will be in the middle -->
<div class="hero-body ">
<div class="container is-max-desktop">
<div class="columns">
<div class="column">
<p class="title">
{{ config.title }}
</p>
</div>
<div class="column">
<p class="subtitle">
{{ config.extra.subtitle }}
</p>
<p class="is-size-4">
{{ section.extra.hero_text }}
</p>
</div>
</div>
</div>
</div>
</section>
<script src="{{ get_url(path="js/modernizr-custom.js") | safe }}"></script>
<script src="{{ get_url(path="js/bulma-helper.js") | safe }}"></script>
</body>
</html>
\ No newline at end of file
<link href='{{href | safe}}' type='text/css' rel="preload" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="{{href | safe}}" type='text/css'></noscript>
\ No newline at end of file
<div class="admonition danger">
<p class="admonition-title">{{title}}</p>
<p>
{{body | safe}}
</p>
</div>
\ No newline at end of file
<picture>
<source srcset="{{src}}.webp" type="image/webp" class="img-fluid mx-auto d-block">
<source srcset="{{src}}.jpg" type="image/jpeg" class="img-fluid mx-auto d-block">
<img src="{{src}}.jpg" class="img-fluid mx-auto d-block" alt="{{alt}}" />
</picture>
\ No newline at end of file
<object data="{{src}}.svg" type="image/svg+xml" class="img-fluid mx-auto d-block" alt={{alt}}>
<img src="{{src}}.svg" class="img-fluid mx-auto d-block" alt="{{alt}}" />
</object>
\ No newline at end of file
<div class="admonition note">
<p class="admonition-title">{{title}}</p>
<p>
{{body | safe}}
</p>
</div>
\ No newline at end of file
<div class="admonition warning">
<p class="admonition-title">{{title}}</p>
<p>
{{body | safe}}
</p>
</div>
\ No newline at end of file
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