Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xaprb/story.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaron Schwartz <xaprb@users.noreply.github.com>2018-09-14 23:52:14 +0300
committerBaron Schwartz <xaprb@users.noreply.github.com>2018-09-14 23:52:14 +0300
commit2e280fafc7f61889c65c138d7b2e8742ec985ede (patch)
treec30636db253103738f110bd383b0ac756ef98846
parentd7a0505748931f93b3d6c78359945997b31f6023 (diff)
fixes for hugo themes website
-rw-r--r--archetypes/slides.md4
-rw-r--r--exampleSite/content/author-pages.md4
-rw-r--r--exampleSite/content/features.md4
-rw-r--r--exampleSite/content/figures.md4
-rw-r--r--exampleSite/content/math.md4
-rw-r--r--exampleSite/content/other-features.md4
-rw-r--r--exampleSite/content/search-page.md4
-rw-r--r--exampleSite/content/slides/adirondack/index.md5
-rw-r--r--exampleSite/content/talks/adirondack.md6
-rw-r--r--exampleSite/content/typography.md4
-rw-r--r--layouts/404.html2
-rw-r--r--layouts/_default/baseof.html24
-rw-r--r--layouts/_default/search.html2
-rw-r--r--layouts/partials/li.html2
-rw-r--r--layouts/slides/single.html14
-rw-r--r--layouts/talks/single.html4
16 files changed, 46 insertions, 45 deletions
diff --git a/archetypes/slides.md b/archetypes/slides.md
index 8366a5a..d9bc710 100644
--- a/archetypes/slides.md
+++ b/archetypes/slides.md
@@ -1,8 +1,8 @@
---
title: '{{ replaceRE "[/-]" " " .Dir | title }}'
date: "{{ .Date }}"
-url: "/{{ .Dir }}"
-image: "/slides/{{ .Name }}/cover.jpg"
+url: "{{ .Dir }}"
+image: "slides/{{ .Name }}/cover.jpg"
description: ""
ratio: "16:9"
themes:
diff --git a/exampleSite/content/author-pages.md b/exampleSite/content/author-pages.md
index bcd1ac4..c9927eb 100644
--- a/exampleSite/content/author-pages.md
+++ b/exampleSite/content/author-pages.md
@@ -4,9 +4,9 @@ title: Story Author Profiles
url: /author-profiles
date: "2018-08-29"
description: "This is a feature demo for the Story Hugo theme."
-image: "/img/unsplash-photos-TzMi5Ov7QeM.jpg"
+image: "img/unsplash-photos-TzMi5Ov7QeM.jpg"
credit: "https://unsplash.com/photos/TzMi5Ov7QeM"
-thumbnail: "/img/unsplash-photos-TzMi5Ov7QeM.tn-500x500.jpg"
+thumbnail: "img/unsplash-photos-TzMi5Ov7QeM.tn-500x500.jpg"
categories:
- Demo
---
diff --git a/exampleSite/content/features.md b/exampleSite/content/features.md
index c9dba65..669f2e2 100644
--- a/exampleSite/content/features.md
+++ b/exampleSite/content/features.md
@@ -4,8 +4,8 @@ date: "2018-08-30"
url: "/features"
description: "This is a feature demo for the Story Hugo theme."
credit: "https://unsplash.com/photos/QRkew0KwXSM"
-image: "/img/unsplash-photos-QRkew0KwXSM.jpg"
-thumbnail: /img/unsplash-photos-QRkew0KwXSM.tn-500x500.jpg
+image: "img/unsplash-photos-QRkew0KwXSM.jpg"
+thumbnail: img/unsplash-photos-QRkew0KwXSM.tn-500x500.jpg
classes:
categories:
- Demo
diff --git a/exampleSite/content/figures.md b/exampleSite/content/figures.md
index f3cfc96..5ea5af1 100644
--- a/exampleSite/content/figures.md
+++ b/exampleSite/content/figures.md
@@ -4,8 +4,8 @@ date: "2018-08-22"
url: "/figures"
description: "This is a feature demo for the Story Hugo theme."
credit: "https://unsplash.com/photos/vHnVtLK8rCc"
-image: "/img/unsplash-photos-vHnVtLK8rCc.jpg"
-thumbnail: /img/unsplash-photos-vHnVtLK8rCc.tn-500x500.jpg
+image: "img/unsplash-photos-vHnVtLK8rCc.jpg"
+thumbnail: img/unsplash-photos-vHnVtLK8rCc.tn-500x500.jpg
classes:
- feature-figcaption
- feature-figcaption-hidden
diff --git a/exampleSite/content/math.md b/exampleSite/content/math.md
index 4cfde55..57dfb10 100644
--- a/exampleSite/content/math.md
+++ b/exampleSite/content/math.md
@@ -4,8 +4,8 @@ date: "2018-08-20"
url: "/math"
description: "This is a feature demo for the Story Hugo theme."
credit: "https://unsplash.com/photos/5mZ_M06Fc9g/download"
-image: "/img/unsplash-photos-5mZ_M06Fc9g.jpg"
-thumbnail: /img/unsplash-photos-5mZ_M06Fc9g.tn-500x500.jpg
+image: "img/unsplash-photos-5mZ_M06Fc9g.jpg"
+thumbnail: img/unsplash-photos-5mZ_M06Fc9g.tn-500x500.jpg
classes:
- feature-math
categories:
diff --git a/exampleSite/content/other-features.md b/exampleSite/content/other-features.md
index c2503b4..84364ae 100644
--- a/exampleSite/content/other-features.md
+++ b/exampleSite/content/other-features.md
@@ -3,9 +3,9 @@ title: Story Theme Features
url: /theme-features
date: "2018-09-01"
description: "This is a feature demo for the Story Hugo theme."
-image: "/img/unsplash-photos-nehfi_SfqtU.jpg"
+image: "img/unsplash-photos-nehfi_SfqtU.jpg"
credit: "https://unsplash.com/photos/nehfi_SfqtU"
-thumbnail: "/img/unsplash-photos-nehfi_SfqtU.tn-500x500.jpg"
+thumbnail: "img/unsplash-photos-nehfi_SfqtU.tn-500x500.jpg"
categories:
- Demo
---
diff --git a/exampleSite/content/search-page.md b/exampleSite/content/search-page.md
index 41883ce..3128629 100644
--- a/exampleSite/content/search-page.md
+++ b/exampleSite/content/search-page.md
@@ -3,9 +3,9 @@ title: Story JavaScript Search
date: "2018-08-21"
url: "/search-page"
description: "This is a feature demo for the Story Hugo theme."
-image: "/img/unsplash-photos-4zxSWESyZio.jpg"
+image: "img/unsplash-photos-4zxSWESyZio.jpg"
credit: "https://unsplash.com/photos/4zxSWESyZio"
-thumbnail: "/img/unsplash-photos-4zxSWESyZio.tn-500x500.jpg"
+thumbnail: "img/unsplash-photos-4zxSWESyZio.tn-500x500.jpg"
categories:
- Demo
---
diff --git a/exampleSite/content/slides/adirondack/index.md b/exampleSite/content/slides/adirondack/index.md
index 5368e73..6400d7a 100644
--- a/exampleSite/content/slides/adirondack/index.md
+++ b/exampleSite/content/slides/adirondack/index.md
@@ -1,8 +1,9 @@
---
title: 'Creating Beautiful Presentations with Story'
date: "2018-04-25T09:50:00-07:00"
-url: "/slides/adirondack/"
-image: "/slides/adirondack/leo-serrat-533922-unsplash.jpg"
+url: "slides/adirondack/"
+image: "slides/adirondack/leo-serrat-533922-unsplash.jpg"
+thumbnail: slides/adirondack/thumbnail.jpg
description: "Story's RemarkJS frameworks help you create sophisticated slides with simple, clean Markdown. There are predefined layouts for most presentation needs, beautiful typography and colors, precise image control, and a simple modular way to create custom layouts."
ratio: "16:9"
themes:
diff --git a/exampleSite/content/talks/adirondack.md b/exampleSite/content/talks/adirondack.md
index b964463..2ece83a 100644
--- a/exampleSite/content/talks/adirondack.md
+++ b/exampleSite/content/talks/adirondack.md
@@ -4,10 +4,10 @@ date: 2018-05-08T16:00:00-05:00
event: "RemarkConf 2018"
location: "Mount Remarkable, 6346+F7 Wilmington, South Australia, Australia"
site: "https://www.environment.sa.gov.au/parks/find-a-park/Browse_by_region/flinders-ranges-outback/mount-remarkable-national-park"
-slides: /slides/adirondack/
-image: "/slides/adirondack/leo-serrat-533922-unsplash.jpg"
+slides: slides/adirondack/
+image: "slides/adirondack/leo-serrat-533922-unsplash.jpg"
description: "Story's RemarkJS frameworks help you create sophisticated slides with simple, clean Markdown. There are predefined layouts for most presentation needs, beautiful typography and colors, precise image control, and a simple modular way to create custom layouts."
-thumbnail: /slides/adirondack/thumbnail.jpg
+thumbnail: slides/adirondack/thumbnail.jpg
---
This is a "talk" page in Story, which is the permanent homepage for a talk
you've given at a specific event. It's designed to showcase your appearance by
diff --git a/exampleSite/content/typography.md b/exampleSite/content/typography.md
index 9d1aca8..adbc185 100644
--- a/exampleSite/content/typography.md
+++ b/exampleSite/content/typography.md
@@ -4,8 +4,8 @@ date: "2018-08-19"
url: "/typography"
description: "This is a feature demo for the Story Hugo theme."
credit: "https://unsplash.com/photos/h-M3O25tyvI"
-image: "/img/unsplash-photos-h-M3O25tyvI.jpg"
-thumbnail: /img/unsplash-photos-h-M3O25tyvI.tn-500x500.jpg
+image: "img/unsplash-photos-h-M3O25tyvI.jpg"
+thumbnail: img/unsplash-photos-h-M3O25tyvI.tn-500x500.jpg
classes:
- feature-hyphenate
- feature-justify
diff --git a/layouts/404.html b/layouts/404.html
index 7fe2727..007ca60 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -4,7 +4,7 @@
<div class="pa3 pa4-ns w-100 w-70-ns center">
<section class="w-100 mw8">
<h1>What is the sound of one page missing?</h1>
- <p>That page doesn't exist. Perhaps you'd like to <a href="{{ "/search/" | absURL }}">search</a> this site or start at the homepage.</p>
+ <p>That page doesn't exist. Perhaps you'd like to <a href="{{ "search/" | absURL }}">search</a> this site or start at the homepage.</p>
</section>
</div>
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 8cfaf50..0b86fa5 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -4,10 +4,10 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
- <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ "/index.xml" | absURL }}">
+ <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ "index.xml" | absURL }}">
<link rel="canonical" href="{{ .Permalink }}">
<!-- the Story logo is a square with rounded corners interlocked with a section symbol in Bodoni 72 Book font -->
- <link rel="shortcut icon" type="image/png" href="{{ "/apple-touch-icon-precomposed.png" | absURL }}">
+ <link rel="shortcut icon" type="image/png" href="{{ "apple-touch-icon-precomposed.png" | absURL }}">
{{ with .Description }}<meta name="description" content="{{.}}">{{ end }}
{{ with .Keywords }}<meta name="keywords" content="{{.}}">{{ end }}
{{ .Hugo.Generator }}
@@ -16,8 +16,8 @@
{{ end }}
{{ block "layout" . }}
- <link rel="stylesheet" href="{{ "/css/tachyons.min.css" | absURL }}" />
- <link rel="stylesheet" href="{{ "/css/story.css" | absURL }}" />
+ <link rel="stylesheet" href="{{ "css/tachyons.min.css" | absURL }}" />
+ <link rel="stylesheet" href="{{ "css/story.css" | absURL }}" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.1/css/all.css" integrity="sha384-O8whS3fhG2OnA5Kas0Y9l3cfpmYjapjI0E4theH4iuMD+pLhbf6JI0jIMfYcK3yZ" crossorigin="anonymous">
{{ end }}
@@ -30,10 +30,10 @@
{{- end -}}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.9.0/dist/katex.min.css" integrity="sha384-TEMocfGvRuD1rIAacqrknm5BQZ7W7uWitoih+jMNFXQIbNl16bO8OZmylH/Vi/Ei" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/katex@0.9.0/dist/katex.min.js" integrity="sha384-jmxIlussZWB7qCuB+PgKG1uLjjxbVVIayPJwi6cG6Zb4YKq0JIw+OMnkkEC7kYCq" crossorigin="anonymous"></script>
- <script src="{{ "/js/auto-render.min.js" | absURL }}"></script> <!-- for KaTeX -->
+ <script src="{{ "js/auto-render.min.js" | absURL }}"></script> <!-- for KaTeX -->
{{ with .Site.Params.head }}{{ range . }}
{{ . | safeHTML }}{{ end }}{{ end }}
- <script src="{{ "/js/story.js" | absURL }}"></script>
+ <script src="{{ "js/story.js" | absURL }}"></script>
</head>
<body class="ma0 bg-white sans-serif {{ with .Site.Params.classes }}{{ range . }} {{ . }}{{ end }}{{ end }}{{ with .Params.classes }}{{ range . }} {{ . }}{{ end }}{{ end }}">
@@ -46,12 +46,12 @@
matter of an individual post.
-->
{{- $hdr := cond (or (in .Site.Params.classes "feature-nohdr") (in .Params.classes "feature-nohdr")) false true -}}
- <header class="cover bg-top" {{ if $hdr }}style="background-image: url('{{ .Params.image | default ("/img/default-header-img.jpg" | absURL) }}'); background-position: center;"{{ end }}>
+ <header class="cover bg-top" {{ if $hdr }}style="background-image: url('{{ absURL (default "img/default-header-img.jpg" .Params.image) }}'); background-position: center;"{{ end }}>
<div class="{{ cond $hdr "bg-black-30 bb bt" "" }}">
<nav id="navmenu" class="{{ cond $hdr "" "bg-black" }} db dt-l w-100 border-box pa3 ph5-l">
<a class="db dtc-l v-mid link w-100 w-25-l tc tl-l mb2 mb0-l" href="{{ .Site.BaseURL }}" title="Home">
- <img src="{{ "/img/logo.jpg" | absURL }}" class="dib w2 h2 br-100" alt="{{ .Title }}" />
+ <img src="{{ "img/logo.jpg" | absURL }}" class="dib w2 h2 br-100" alt="{{ .Title }}" />
</a>
<div class="db dtc-l v-mid w-100 w-75-l tc tr-l">
{{ range .Site.Menus.main }}
@@ -60,8 +60,8 @@
{{ range .Site.Menus.social }}
<a class="link f5 f4-l dib mr1 no-underline dim white-90" href="{{ .URL }}"><i class="{{ .Title }}"></i></a>
{{ end }}
- <a class="link f5 f4-l dib mr1 no-underline dim white-90 fas fa-rss-square" href="{{ "/index.xml" | absURL }}" title="RSS Feed"></a>
- <a class="link f5 f4-l dib mr1 no-underline dim white-90 fas fa-search" href="{{ "/search/" | absURL }}" role="search" title="Search"></a>
+ <a class="link f5 f4-l dib mr1 no-underline dim white-90 fas fa-rss-square" href="{{ "index.xml" | absURL }}" title="RSS Feed"></a>
+ <a class="link f5 f4-l dib mr1 no-underline dim white-90 fas fa-search" href="{{ "search/" | absURL }}" role="search" title="Search"></a>
</div>
</nav>
@@ -83,7 +83,7 @@
{{- .Date.Format "Jan 2, 2006" -}}
</time>
<span id="byline">by {{ .Params.author | default .Site.Params.author }}</span>
- {{ range $idx, $cat := .Params.categories }}{{ if gt $idx 0 }}, {{ end }}{{ if eq $idx 0 }} in {{ end }}<a href="{{ "/categories/" | absURL }}/{{ . | urlize }}" class="no-underline category {{ cond $hdr "white-80 dim" "black hover-gray" }}">{{ . | title }}</a>{{ end }}
+ {{ range $idx, $cat := .Params.categories }}{{ if gt $idx 0 }}, {{ end }}{{ if eq $idx 0 }} in {{ end }}<a href="{{ "categories/" | absURL }}/{{ . | urlize }}" class="no-underline category {{ cond $hdr "white-80 dim" "black hover-gray" }}">{{ . | title }}</a>{{ end }}
<span id="citation">at {{ .Permalink }}</span>
{{ end }}
{{ else }}
@@ -115,7 +115,7 @@
{{ block "footer" . }}
<footer class="f5 fw4 bg-black white-90 bottom-0 w-100 pa3" role="contentinfo">
<p class="w-50 fr tr">
- <a class="no-underline white-90" href="https://github.com/xaprb/story"><img class="dib" title="Made with Hugo and Story" alt="Story logo" src="{{ "/img/story-logo-white.svg" | absURL }}" style="width: 1.5rem; height: 1.5rem" /></a>
+ <a class="no-underline white-90" href="https://github.com/xaprb/story"><img class="dib" title="Made with Hugo and Story" alt="Story logo" src="{{ "img/story-logo-white.svg" | absURL }}" style="width: 1.5rem; height: 1.5rem" /></a>
</p>
<p class="w-50 white-90">
&copy; {{ now.Format "2006" }} {{ with .Site.Params.author }}{{ . }}{{ end }}
diff --git a/layouts/_default/search.html b/layouts/_default/search.html
index ab21d23..8da69aa 100644
--- a/layouts/_default/search.html
+++ b/layouts/_default/search.html
@@ -30,7 +30,7 @@
// Initialize lunrjs using our generated index file
function initLunr() {
// First retrieve the index file
- $.getJSON("{{ "/index.json" | absURL }}")
+ $.getJSON("{{ "index.json" | absURL }}")
.done(function(index) {
pagesIndex = index;
// console.log("index:", pagesIndex);
diff --git a/layouts/partials/li.html b/layouts/partials/li.html
index 9eedf3f..47be5bb 100644
--- a/layouts/partials/li.html
+++ b/layouts/partials/li.html
@@ -4,7 +4,7 @@
<div class="db pv4 {{ cond $hdr "ph3" "" }} ph0-l no-underline dark-gray">
<div class="flex flex-column flex-row-ns">
{{ if $hdr }}
- <div class="pr3-ns mb4 mb0-ns w-100 h4 h4-m w4-m h5-ns w5-ns br3 cover" style="background-image: url('{{ if .Params.thumbnail }}{{ .Params.thumbnail }}{{ else if .Params.image }}{{ .Params.image }}{{ else }}/img/default-header-img.jpg{{ end }}'); background-position: center;">
+ <div class="pr3-ns mb4 mb0-ns w-100 h4 h4-m w4-m h5-ns w5-ns br3 cover" style="background-image: url('{{ absURL (default "img/default-header-img.jpg" (default .Params.image .Params.thumbnail)) }}'); background-position: center;">
<a href="{{ .Permalink }}" class="db w-100 h-100"></a>
</div>
{{ end }}
diff --git a/layouts/slides/single.html b/layouts/slides/single.html
index fac5b00..c66af2a 100644
--- a/layouts/slides/single.html
+++ b/layouts/slides/single.html
@@ -4,17 +4,17 @@
{{- if .Params.less -}}
{{- with .Params.themes -}}
{{- range . }}
- <link rel="stylesheet/less" type="text/css" href="{{ "/css/" | absURL }}{{ . }}.less"></style>
+ <link rel="stylesheet/less" type="text/css" href="{{ "css/" | absURL }}{{ . }}.less"></style>
{{- end -}}
- <script type="text/javascript" src="{{ "/js/less.min.js" | absURL }}"></script>
+ <script type="text/javascript" src="{{ "js/less.min.js" | absURL }}"></script>
{{- end }}
{{ else }}
{{- with .Params.themes -}}
{{- range . }}
- <link rel="stylesheet" type="text/css" href="{{ "/css/" | absURL }}{{ . }}.css"></style>
+ <link rel="stylesheet" type="text/css" href="{{ "css/" | absURL }}{{ . }}.css"></style>
{{- end -}}
{{- else }}
- <link rel="stylesheet" type="text/css" href="{{ "/css/" | absURL }}{{ .Params.theme }}.css"></style>
+ <link rel="stylesheet" type="text/css" href="{{ "css/" | absURL }}{{ .Params.theme }}.css"></style>
{{- end }}
{{- end -}}
<style type="text/css">
@@ -42,8 +42,8 @@
<textarea id="source">
{{- .RawContent -}}
</textarea>
- <script type="text/javascript" src="{{ "/js/qrcode.js" | absURL }}"></script>
- <script src="{{ "/js/remark.js" | absURL }}"></script>
+ <script type="text/javascript" src="{{ "js/qrcode.js" | absURL }}"></script>
+ <script src="{{ "js/remark.js" | absURL }}"></script>
<script>
var slideshow = remark.create({
{{ if .Params.ratio }} ratio: "{{ .Params.ratio }}", {{ end }}
@@ -83,7 +83,7 @@
{{ define "social" }}
<meta name="og:title" content="{{ cond (eq .Site.Params.titlecase true) (.Title | title | markdownify) (.Title | markdownify) }}" />
<meta name="og:type" content="article" />
- <meta name="og:image" content="{{ default .Params.image .Params.thumbnail }}" />
+ <meta name="og:image" content="{{ default .Params.image .Params.thumbnail | absURL }}" />
<meta name="og:description" content="{{ .Description }}" />
<meta name="og:url" content="{{ .Permalink }}" />
<meta name="og:site_name" content="{{ cond (eq .Site.Params.titlecase true) (.Title | title | markdownify) (.Title | markdownify) }}" />
diff --git a/layouts/talks/single.html b/layouts/talks/single.html
index 7db7873..702e1a4 100644
--- a/layouts/talks/single.html
+++ b/layouts/talks/single.html
@@ -2,7 +2,7 @@
{{ define "main" }}
<article class="center ph3 nested-copy-line-height lh-copy f4 nested-links mw-100 measure-wide">
{{ .Content }}
- <p><a class="mb3 pv2 ph3 ba bw1 black br-pill dib" href="{{ .Params.slides }}">Slides</a>
+ <p><a class="mb3 pv2 ph3 ba bw1 black br-pill dib" href="{{ .Params.slides | absURL }}">Slides</a>
{{ with .Params.video }}
<a class="mb3 pv2 ph3 ba bw1 black br-pill dib" href="{{ . }}">Video</a>
{{ end }}
@@ -18,7 +18,7 @@
{{ define "social" }}
<meta name="og:title" content="{{ cond (eq .Site.Params.titlecase true) (.Title | title | markdownify) (.Title | markdownify) }}" />
<meta name="og:type" content="article" />
- <meta name="og:image" content="{{ default .Params.image .Params.thumbnail }}" />
+ <meta name="og:image" content="{{ default .Params.image .Params.thumbnail | absURL }}" />
<meta name="og:description" content="{{ .Description }}" />
<meta name="og:url" content="{{ .Permalink }}" />
<meta name="og:site_name" content="{{ cond (eq .Site.Params.titlecase true) (.Title | title | markdownify) (.Title | markdownify) }}" />