single page fancybox applied, flowchart shortcode deleted, summary lazyload deleted
This commit is contained in:
parent
42420cc642
commit
d621f50492
|
@ -123,4 +123,9 @@
|
||||||
transform: translate(0,0);
|
transform: translate(0,0);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include keyframes(fade-in) {
|
||||||
|
from { opacity: 0; }
|
||||||
|
to { opacity: 1; }
|
||||||
}
|
}
|
|
@ -64,6 +64,7 @@
|
||||||
@include flexbox();
|
@include flexbox();
|
||||||
@include align-items(center);
|
@include align-items(center);
|
||||||
@include justify-content(center);
|
@include justify-content(center);
|
||||||
|
@include transition(all, 0.2s, ease-out);
|
||||||
|
|
||||||
padding: 0.25rem;
|
padding: 0.25rem;
|
||||||
border-radius: 0.125rem;
|
border-radius: 0.125rem;
|
||||||
|
@ -83,6 +84,18 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__left {
|
||||||
|
@include on-event {
|
||||||
|
@include translateX(-0.25rem);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__right {
|
||||||
|
@include on-event {
|
||||||
|
@include translateX(0.25rem);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&__icon {
|
&__icon {
|
||||||
width: 28px;
|
width: 28px;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
&__image {
|
&__image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
&-wrapper {
|
&-wrapper {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: auto;
|
width: auto;
|
||||||
|
@ -134,10 +134,11 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
|
|
||||||
&-wrapper {
|
&-wrapper {
|
||||||
max-width: 130px;
|
max-width: 130px;
|
||||||
min-width: 130px;
|
min-width: 130px;
|
||||||
|
overflow: hidden;
|
||||||
@include align-self(center);
|
@include align-self(center);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@ paginateWindow = 1
|
||||||
# whoami
|
# whoami
|
||||||
myname = "zzossig"
|
myname = "zzossig"
|
||||||
email = "zzossig@gmail.com"
|
email = "zzossig@gmail.com"
|
||||||
whoami = "Web Developer"
|
whoami = "Web DeveloperWeb"
|
||||||
useGravatar = false
|
useGravatar = false
|
||||||
location = "Seoul, Korea"
|
location = "Seoul, Korea"
|
||||||
organization = "Hugo"
|
organization = "Hugo"
|
||||||
|
|
|
@ -11,3 +11,6 @@ categories:
|
||||||
---
|
---
|
||||||
|
|
||||||
Dolore in consectetur irure qui laborum. Adipisicing cillum ad laboris dolor. Quis consectetur ullamco esse ad mollit anim sint nostrud esse. Irure voluptate ex fugiat voluptate ea fugiat laboris.
|
Dolore in consectetur irure qui laborum. Adipisicing cillum ad laboris dolor. Quis consectetur ullamco esse ad mollit anim sint nostrud esse. Irure voluptate ex fugiat voluptate ea fugiat laboris.
|
||||||
|
|
||||||
|
{{% img src="/images/feature1/wave.png" title="Image4" caption="Image description" alt="image alt" %}}
|
||||||
|

|
|
@ -5,10 +5,6 @@ date = "2019-03-05"
|
||||||
description = "Guide to emoji usage in Hugo"
|
description = "Guide to emoji usage in Hugo"
|
||||||
tags = [
|
tags = [
|
||||||
"emoji",
|
"emoji",
|
||||||
"gamoji",
|
|
||||||
"namoji",
|
|
||||||
"bamoji",
|
|
||||||
"amoji"
|
|
||||||
]
|
]
|
||||||
+++
|
+++
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ libraries:
|
||||||
featured_image: "feature1/flowchart.png"
|
featured_image: "feature1/flowchart.png"
|
||||||
---
|
---
|
||||||
|
|
||||||
{{< flowchartjs >}}
|
```flowchart
|
||||||
st=>start: Start|past:>http://www.google.com[blank]
|
st=>start: Start|past:>http://www.google.com[blank]
|
||||||
e=>end: End|future:>http://www.google.com
|
e=>end: End|future:>http://www.google.com
|
||||||
op1=>operation: My Operation|past
|
op1=>operation: My Operation|past
|
||||||
|
@ -30,4 +30,4 @@ cond(yes, right)->c2
|
||||||
cond(no)->sub1(left)->op1
|
cond(no)->sub1(left)->op1
|
||||||
c2(yes)->io->e
|
c2(yes)->io->e
|
||||||
c2(no)->op2->e
|
c2(no)->op2->e
|
||||||
{{< /flowchartjs >}}
|
```
|
||||||
|
|
|
@ -3,7 +3,7 @@ title: "Mermaid support"
|
||||||
date: 2019-11-17T12:00:06+09:00
|
date: 2019-11-17T12:00:06+09:00
|
||||||
description: "Generate diagrams, charts, graphs or flows from markdown-like text via javascript."
|
description: "Generate diagrams, charts, graphs or flows from markdown-like text via javascript."
|
||||||
tags:
|
tags:
|
||||||
- diagram
|
-
|
||||||
series:
|
series:
|
||||||
-
|
-
|
||||||
categories:
|
categories:
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -17,9 +17,10 @@
|
||||||
{{ partial "pagination/pagination-single" . }}
|
{{ partial "pagination/pagination-single" . }}
|
||||||
{{ partial "comments/comments.html" . }}
|
{{ partial "comments/comments.html" . }}
|
||||||
{{ partial "body/lib" . }}
|
{{ partial "body/lib" . }}
|
||||||
|
{{ partial "body/fancybox" . }}
|
||||||
|
|
||||||
<div class="hide">
|
<div class="hide">
|
||||||
{{ partial "sidebar/site-search" . }}
|
{{ partial "sidebar/site-search" . }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
|
@ -20,10 +20,15 @@
|
||||||
"close",
|
"close",
|
||||||
],
|
],
|
||||||
caption: function (instance, item) {
|
caption: function (instance, item) {
|
||||||
console.log($(this).data('alt'));
|
return $(this).data('alt') || '';
|
||||||
return $(this).data('alt') || '111';
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var imgElements = $('.single__contents:not(".single__contents--gallery")').find('img');
|
||||||
|
imgElements.each(function(i, v) {
|
||||||
|
$(this).css('cursor', 'pointer');
|
||||||
|
$(this).wrap(`<a data-fancybox="gallery" href="${ $(this).attr('src') }" alt="${ $(this).attr('alt') }" data-caption="${ $(this).attr('alt') }"></a>`);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -67,14 +67,35 @@
|
||||||
{{ $flowchartjs := .Site.Data.flowchartjs }}
|
{{ $flowchartjs := .Site.Data.flowchartjs }}
|
||||||
var options = JSON.parse({{ $flowchartjs | jsonify }});
|
var options = JSON.parse({{ $flowchartjs | jsonify }});
|
||||||
|
|
||||||
$('.diagram').each(function() {
|
/*
|
||||||
var diagramContent = $(this).text();
|
$('.diagram').each(function() {
|
||||||
$(this).text('');
|
var diagramContent = $(this).text();
|
||||||
|
$(this).text('');
|
||||||
|
|
||||||
var diagram = flowchart.parse(diagramContent);
|
var diagram = flowchart.parse(diagramContent);
|
||||||
diagram.drawSVG('diagram', options);
|
diagram.drawSVG('diagram', options);
|
||||||
|
});
|
||||||
|
*/
|
||||||
|
$('code.language-flowchart:odd').each(function (index, node) {
|
||||||
|
var diagramContent = $(this).contents();
|
||||||
|
$(this).closest('table').attr('data-content', 'FLOWCHART');
|
||||||
|
$(this).unwrap('pre');
|
||||||
|
$(this).replaceWith(function () {
|
||||||
|
return $("<div id='diagram' data-content='flowchart'></div>").append(diagramContent.text()).addClass('diagram').css('padding', '30px 8px 8px').css('margin-top', '40px');
|
||||||
|
});
|
||||||
|
|
||||||
|
var diagram = flowchart.parse(diagramContent.text());
|
||||||
|
$('#diagram').empty();
|
||||||
|
diagram.drawSVG('diagram', options);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('code.language-flowchart').each(function (index, node) {
|
||||||
|
$(this).unwrap('pre');
|
||||||
|
$(this).replaceWith(function () {
|
||||||
|
return $("<div></div>");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@ -112,8 +133,6 @@
|
||||||
$(this).replaceWith(function () {
|
$(this).replaceWith(function () {
|
||||||
return $("<div />").append($(this).contents()).addClass('diagram').css('padding', '30px 8px 8px').css('margin-top', '40px');
|
return $("<div />").append($(this).contents()).addClass('diagram').css('padding', '30px 8px 8px').css('margin-top', '40px');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
$(".diagram").sequenceDiagram(options);
|
$(".diagram").sequenceDiagram(options);
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
{{ if $params.featured_image }}
|
{{ if $params.featured_image }}
|
||||||
<div class="summary-classic__image-wrapper">
|
<div class="summary-classic__image-wrapper">
|
||||||
<a href="{{ .Permalink }}">
|
<a href="{{ .Permalink }}">
|
||||||
<img data-src="{{ (print "images/" $params.featured_image) | relURL }}" alt="{{ print $params.featured_image }}"
|
<img src="{{ (print "images/" $params.featured_image) | relURL }}" alt="{{ print $params.featured_image }}"
|
||||||
class="lazyload summary-classic__image" />
|
class="summary-classic__image" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
<div id="diagram" class="diagram">
|
|
||||||
{{- safeHTML .Inner -}}
|
|
||||||
</div>
|
|
|
@ -1,8 +1,7 @@
|
||||||
<!-- image -->
|
<!-- image -->
|
||||||
<figure {{ with .Get "class" }}class="{{.}}" {{ end }}>
|
<figure {{ with .Get "class" }}class="{{.}}" {{ end }}>
|
||||||
{{ with .Get "link"}}<a href="{{.}}">{{ end }}
|
{{ with .Get "link"}}<a href="{{.}}">{{ end }}
|
||||||
<img data-src="{{ .Get "src" }}" class="lazyload"
|
<img src="{{ .Get "src" }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}"{{ end }}/>
|
||||||
{{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}"{{ end }}/>
|
|
||||||
{{ if .Get "link"}}</a>{{ end }}
|
{{ if .Get "link"}}</a>{{ end }}
|
||||||
{{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
|
{{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
|
||||||
<figcaption>{{ if isset .Params "title" }}
|
<figcaption>{{ if isset .Params "title" }}
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue