Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1300e0d714 | ||
|
|
5d004786d6 | ||
|
|
87fad5fd81 | ||
|
|
21a5834a2f | ||
|
|
3e8490da1d | ||
|
|
9befda7310 | ||
|
|
d5268a41e0 | ||
|
|
38eb9c4eaf | ||
|
|
e61bca1dbd | ||
|
|
96db925b06 | ||
|
|
0429678d57 |
@@ -39,4 +39,6 @@ jobs:
|
||||
# Artifact name
|
||||
name: resources
|
||||
# A file, directory or wildcard pattern that describes what to upload
|
||||
path: exampleSite/resources
|
||||
path: |
|
||||
exampleSite/resources
|
||||
!exampleSite/resources/_gen/images
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
@import "variables.scss";
|
||||
|
||||
.keep-sidebar {
|
||||
@media (min-width: $on-phone) and (max-width: $on-tablet) {
|
||||
--main-top-padding: 50px;
|
||||
@@ -189,11 +187,11 @@
|
||||
.article-content {
|
||||
font-family: var(--article-font-family);
|
||||
font-size: var(--article-font-size);
|
||||
padding: 0 var(--card-padding);
|
||||
line-height: var(--article-line-height);
|
||||
|
||||
& > p {
|
||||
margin: 1.5em 0;
|
||||
padding: 0 var(--card-padding);
|
||||
}
|
||||
|
||||
h1,
|
||||
@@ -202,12 +200,12 @@
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
padding: 0 calc(var(--card-padding) - var(--heading-border-size));
|
||||
margin-left: calc((var(--card-padding)) * -1);
|
||||
padding-left: calc(var(--card-padding) - var(--heading-border-size));
|
||||
border-left: var(--heading-border-size) solid var(--accent-color);
|
||||
}
|
||||
|
||||
figure {
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
|
||||
figcaption {
|
||||
@@ -218,17 +216,12 @@
|
||||
|
||||
blockquote {
|
||||
position: relative;
|
||||
margin: 10px 0;
|
||||
margin: 1.5em 0;
|
||||
border-left: var(--blockquote-border-size) solid var(--card-separator-color);
|
||||
padding: 15px calc(var(--card-padding) - var(--blockquote-border-size));
|
||||
background-color: var(--blockquote-background-color);
|
||||
}
|
||||
|
||||
& > ul,
|
||||
& > ol {
|
||||
margin: 1em var(--card-padding);
|
||||
}
|
||||
|
||||
hr {
|
||||
width: 100px;
|
||||
margin: 40px auto;
|
||||
@@ -251,7 +244,7 @@
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
margin: 20px 0;
|
||||
margin: 1.5em 0;
|
||||
|
||||
figure {
|
||||
margin: 0;
|
||||
@@ -281,9 +274,7 @@
|
||||
}
|
||||
|
||||
table {
|
||||
margin: 0 var(--card-padding);
|
||||
width: 100%;
|
||||
max-width: calc(100% - var(--card-padding) * 2);
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
margin-bottom: 1.5em;
|
||||
@@ -308,4 +299,33 @@
|
||||
.twitter-tweet {
|
||||
color: var(--card-text-color-main);
|
||||
}
|
||||
|
||||
.video-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 0;
|
||||
padding-bottom: 56.25%;
|
||||
overflow: hidden;
|
||||
|
||||
& > iframe {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// Negative margins
|
||||
blockquote,
|
||||
figure,
|
||||
.gallery,
|
||||
pre,
|
||||
.video-wrapper,
|
||||
.s_video_simple {
|
||||
margin-left: calc((var(--card-padding)) * -1);
|
||||
margin-right: calc((var(--card-padding)) * -1);
|
||||
width: calc(100% + var(--card-padding) * 2);
|
||||
}
|
||||
}
|
||||
|
||||
+4
-19
@@ -11,7 +11,7 @@ disqusShortname: hugo-theme-stack
|
||||
googleAnalytics:
|
||||
|
||||
# Theme i18n support
|
||||
# Available values: en, fr, id, ja, ko, pt-br, zh-cn
|
||||
# Available values: en, fr, id, ja, ko, pt-br, zh-cn, es, de
|
||||
DefaultContentLanguage: en
|
||||
|
||||
permalinks:
|
||||
@@ -99,6 +99,9 @@ params:
|
||||
content:
|
||||
enabled: true
|
||||
|
||||
### Custom menu
|
||||
### See https://docs.stack.jimmycai.com/configuration/custom-menu
|
||||
### To remove about, archive and search page menu item, remove `menu` field from their FrontMatter
|
||||
menu:
|
||||
main:
|
||||
- identifier: home
|
||||
@@ -107,24 +110,6 @@ menu:
|
||||
weight: -100
|
||||
pre: home
|
||||
|
||||
- identifier: about
|
||||
name: About
|
||||
url: about
|
||||
weight: -90
|
||||
pre: user
|
||||
|
||||
- identifier: archives
|
||||
name: Archives
|
||||
url: archives
|
||||
weight: -70
|
||||
pre: archives
|
||||
|
||||
- identifier: search
|
||||
name: Search
|
||||
url: search
|
||||
weight: -60
|
||||
pre: search
|
||||
|
||||
related:
|
||||
includeNewer: true
|
||||
threshold: 60
|
||||
|
||||
@@ -1,12 +1,18 @@
|
||||
+++
|
||||
title = "About"
|
||||
description = "Hugo, the world's fastest framework for building websites"
|
||||
date = "2019-02-28"
|
||||
aliases = ["about-us", "about-hugo", "contact"]
|
||||
author = "Hugo Authors"
|
||||
license = "CC BY-NC-ND"
|
||||
lastmod = "2020-10-09"
|
||||
+++
|
||||
---
|
||||
title: About
|
||||
description: Hugo, the world's fastest framework for building websites
|
||||
date: '2019-02-28'
|
||||
aliases:
|
||||
- about-us
|
||||
- about-hugo
|
||||
- contact
|
||||
license: CC BY-NC-ND
|
||||
lastmod: '2020-10-09'
|
||||
menu:
|
||||
main:
|
||||
weight: -90
|
||||
pre: user
|
||||
---
|
||||
|
||||
Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
|
||||
|
||||
|
||||
@@ -3,4 +3,8 @@ title: "Archives"
|
||||
date: 2019-05-28
|
||||
layout: "archives"
|
||||
slug: "archives"
|
||||
menu:
|
||||
main:
|
||||
weight: -70
|
||||
pre: archives
|
||||
---
|
||||
|
||||
@@ -5,4 +5,8 @@ layout: "search"
|
||||
outputs:
|
||||
- html
|
||||
- json
|
||||
menu:
|
||||
main:
|
||||
weight: -60
|
||||
pre: search
|
||||
---
|
||||
@@ -0,0 +1,53 @@
|
||||
toggleMenu:
|
||||
other: Menü umschalten
|
||||
|
||||
darkMode:
|
||||
other: Dunkler Modus
|
||||
|
||||
list:
|
||||
page:
|
||||
one: "{{ .Count }} Seite"
|
||||
other: "{{ .Count }} Seiten"
|
||||
|
||||
section:
|
||||
other: Abschnitt
|
||||
|
||||
subsection:
|
||||
one: Unterabschnitt
|
||||
other: Unterabschnitte
|
||||
|
||||
article:
|
||||
relatedContents:
|
||||
other: Verwandte Inhalte
|
||||
lastUpdatedOn:
|
||||
other: Zuletzt aktualisiert am
|
||||
|
||||
notFound:
|
||||
title:
|
||||
other: Seite nicht gefunden
|
||||
subtitle:
|
||||
other: Diese Seite existiert nicht.
|
||||
|
||||
widget:
|
||||
archives:
|
||||
title:
|
||||
other: Archiv
|
||||
more:
|
||||
other: Weitere
|
||||
tagCloud:
|
||||
title:
|
||||
other: Schlagwörter
|
||||
|
||||
search:
|
||||
title:
|
||||
other: Suche
|
||||
placeholder:
|
||||
other: Etwas tippen...
|
||||
resultTitle:
|
||||
other: "#PAGES_COUNT pages (#TIME_SECONDS seconds)"
|
||||
|
||||
footer:
|
||||
builtWith:
|
||||
other: Erstellt mit {{ .Generator }}
|
||||
designedBy:
|
||||
other: Theme {{ .Theme }} gestaltet von {{ .DesignedBy }}
|
||||
@@ -0,0 +1,53 @@
|
||||
toggleMenu:
|
||||
other: Toggle Menu
|
||||
|
||||
darkMode:
|
||||
other: Modo oscuro
|
||||
|
||||
list:
|
||||
page:
|
||||
one: "{{ .Count }} página"
|
||||
other: "{{ .Count }} páginas"
|
||||
|
||||
section:
|
||||
other: Sección
|
||||
|
||||
subsection:
|
||||
one: Subsección
|
||||
other: Subsecciones
|
||||
|
||||
article:
|
||||
relatedContents:
|
||||
other: Contenidos relacionados
|
||||
lastUpdatedOn:
|
||||
other: Última vez actualizado
|
||||
|
||||
notFound:
|
||||
title:
|
||||
other: No Encontrado
|
||||
subtitle:
|
||||
other: Esta página no existe
|
||||
|
||||
widget:
|
||||
archives:
|
||||
title:
|
||||
other: Archivo
|
||||
more:
|
||||
other: Más
|
||||
tagCloud:
|
||||
title:
|
||||
other: Etiquetas
|
||||
|
||||
search:
|
||||
title:
|
||||
other: Búsqueda
|
||||
placeholder:
|
||||
other: Teclea algo...
|
||||
resultTitle:
|
||||
other: "#PAGES_COUNT páginas en (#TIME_SECONDS segundos)"
|
||||
|
||||
footer:
|
||||
builtWith:
|
||||
other: Creado con {{ .Generator }}
|
||||
designedBy:
|
||||
other: Tema {{ .Theme }} diseñado por {{ .DesignedBy }}
|
||||
@@ -26,5 +26,5 @@
|
||||
{{ end }}
|
||||
</figure>
|
||||
{{- else -}}
|
||||
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" {{ with .Title }} title="{{ . }}"{{ end }} />
|
||||
<img src="{{ .Destination | relURL | safeURL }}" alt="{{ .Text }}" {{ with .Title }} title="{{ . }}"{{ end }} />
|
||||
{{- end -}}
|
||||
@@ -1,4 +1,4 @@
|
||||
{{- $ThemeVersion := "2.2.0" -}}
|
||||
{{- $ThemeVersion := "2.3.0" -}}
|
||||
<footer class="site-footer">
|
||||
<section class="copyright">
|
||||
©
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<!-- Can not find the image under page bundle. Could be a relative linked image -->
|
||||
{{ $result = merge $result (dict "permalink" $imageValue) }}
|
||||
{{ $result = merge $result (dict "permalink" (relURL $imageValue)) }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
{{ else }}
|
||||
<!-- External image -->
|
||||
{{ $result = merge $result (dict "permalink" $defaultImageSetting.src) }}
|
||||
{{ $result = merge $result (dict "permalink" (relURL $defaultImageSetting.src)) }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
{{ $active := or (eq $currentPage.Title .Name) (or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .)) }}
|
||||
|
||||
<li {{ if $active }} class='current' {{ end }}>
|
||||
<a href='{{ .URL | relURL }}'>
|
||||
<a href='{{ .URL }}'>
|
||||
{{ if .Pre }}
|
||||
{{ partial "helper/icon" .Pre }}
|
||||
{{ end }}
|
||||
|
||||
@@ -12,13 +12,12 @@
|
||||
<p>当前视频av或BV号:{{ $vid }},视频分P:{{ $videopage }}</p>
|
||||
{{ end }}
|
||||
|
||||
<div style="position: relative; width: 100%; height: 0; padding-bottom: 56.25%;">
|
||||
<div class="video-wrapper">
|
||||
<iframe src="//player.bilibili.com/player.html?{{ $basicQuery | safeURL }}&{{ $videoQuery | safeURL }}"
|
||||
scrolling="no"
|
||||
frameborder="no"
|
||||
framespacing="0"
|
||||
allowfullscreen="true"
|
||||
style="position: absolute; width: 100%; height: 100%; left: 0; top: 0;"
|
||||
>
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{{ $vid := .Get 0 }}
|
||||
<div style="position: relative; width: 100%; height: 0; padding-bottom: 56.25%;">
|
||||
<div class="video-wrapper">
|
||||
<iframe src="http://v.qq.com/txp/iframe/player.html?vid={{ $vid }}&auto=0"
|
||||
scrolling="no"
|
||||
frameborder="no"
|
||||
framespacing="0"
|
||||
allowfullscreen="true"
|
||||
style="position: absolute; width: 100%; height: 100%;">
|
||||
>
|
||||
</iframe>
|
||||
</div>
|
||||
@@ -2,8 +2,12 @@
|
||||
{{- if not $pc.Disable -}}
|
||||
{{- $ytHost := cond $pc.PrivacyEnhanced "www.youtube-nocookie.com" "www.youtube.com" -}}
|
||||
{{- $id := .Get "id" | default (.Get 0) -}}
|
||||
{{- $class := .Get "class" | default (.Get 1) }}
|
||||
<div {{ with $class }}class="{{ . }}"{{ else }}style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"{{ end }}>
|
||||
<iframe loading="lazy" src="https://{{ $ytHost }}/embed/{{ $id }}{{ with .Get "autoplay" }}{{ if eq . "true" }}?autoplay=1{{ end }}{{ end }}" {{ if not $class }}style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" {{ end }}allowfullscreen title="YouTube Video"></iframe>
|
||||
<div class="video-wrapper">
|
||||
<iframe loading="lazy"
|
||||
src="https://{{ $ytHost }}/embed/{{ $id }}{{ with .Get "autoplay" }}{{ if eq . "true" }}?autoplay=1{{ end }}{{ end }}"
|
||||
allowfullscreen
|
||||
title="YouTube Video"
|
||||
>
|
||||
</iframe>
|
||||
</div>
|
||||
{{ end -}}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user