From 4f78cb7216139ae66e847868f7a7492ea61526da Mon Sep 17 00:00:00 2001 From: mose Date: Thu, 11 Apr 2019 06:09:32 +0200 Subject: [PATCH] clean up useless features --- content/post/2017-03-05-math-sample.md | 49 ------------------- .../2017-03-20-photoswipe-gallery-sample.md | 39 --------------- themes/beautifulhugo/i18n/fr.yaml | 2 +- .../beautifulhugo/layouts/partials/head.html | 1 - 4 files changed, 1 insertion(+), 90 deletions(-) delete mode 100644 content/post/2017-03-05-math-sample.md delete mode 100644 content/post/2017-03-20-photoswipe-gallery-sample.md diff --git a/content/post/2017-03-05-math-sample.md b/content/post/2017-03-05-math-sample.md deleted file mode 100644 index 8ecf666..0000000 --- a/content/post/2017-03-05-math-sample.md +++ /dev/null @@ -1,49 +0,0 @@ ---- -title: Math Sample -subtitle: Using KaTeX -date: 2017-03-05 -tags: ["example", "math"] ---- - -KaTeX can be used to generate complex math formulas server-side. - -$$ -\phi = \frac{(1+\sqrt{5})}{2} = 1.6180339887\cdots -$$ - -Additional details can be found on [GitHub](https://github.com/Khan/KaTeX) or on the [Wiki](http://tiddlywiki.com/plugins/tiddlywiki/katex/). - - -### Example 1 - -If the text between $$ contains newlines it will rendered in display mode: -``` -$$ -f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi -$$ -``` -$$ -f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi -$$ - - -### Example 2 -``` -$$ -\frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\cdots} } } } -$$ -``` -​​$$ -\frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\cdots} } } } -$$ -​​ - -### Example 3 -``` -$$ -1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots = \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}, \quad\quad \text{for }\lvert q\rvert<1. -$$ -``` -$$ -1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots = \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}, \quad\quad \text{for }\lvert q\rvert<1. -$$ diff --git a/content/post/2017-03-20-photoswipe-gallery-sample.md b/content/post/2017-03-20-photoswipe-gallery-sample.md deleted file mode 100644 index d9b4c74..0000000 --- a/content/post/2017-03-20-photoswipe-gallery-sample.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -title: Photoswipe Gallery Sample -subtitle: Making a Gallery -date: 2017-03-20 -tags: ["example", "photoswipe"] ---- - -Beautiful Hugo adds a few custom shortcodes created by [Li-Wen Yip](https://www.liwen.id.au/heg/) and [Gert-Jan van den Berg](https://github.com/GjjvdBurg/HugoPhotoSwipe) for making galleries with [PhotoSwipe](http://photoswipe.com) . - -{{< gallery caption-effect="fade" >}} - {{< figure thumb="-thumb" link="/img/hexagon.jpg" >}} - {{< figure thumb="-thumb" link="/img/sphere.jpg" caption="Sphere" >}} - {{< figure thumb="-thumb" link="/img/triangle.jpg" caption="Triangle" alt="This is a long comment about a triangle" >}} -{{< /gallery >}} -{{< load-photoswipe >}} - - -## Example -The above gallery was created using the following shortcodes: -``` -{{}} - {{}} - {{}} - {{}} -{{}} -{{}} -``` - -## Usage -For full details please see the [hugo-easy-gallery GitHub](https://github.com/liwenyip/hugo-easy-gallery/) page. Basic usages from above are: - -- Create a gallery with open and close tags `{{}}` and `{{}}` -- `{{}}` will use `image.jpg` for thumbnail and lightbox -- `{{}}` will use `thumb.jpg` for thumbnail and `image.jpg` for lightbox -- `{{}}` will use `image-small.jpg` for thumbnail and `image.jpg` for lightbox -- All the [features/parameters](https://gohugo.io/extras/shortcodes) of Hugo's built-in `figure` shortcode work as normal, i.e. src, link, title, caption, class, attr (attribution), attrlink, alt -- `{{}}` will fade in captions for all figures in this gallery instead of the default slide-up behavior -- Many gallery styles for captions and hover effects exist; view the [hugo-easy-gallery GitHub](https://github.com/liwenyip/hugo-easy-gallery/) for all options -- Call `{{}}` **once** anywhere you want on each page where you want to use PhotoSwipe \ No newline at end of file diff --git a/themes/beautifulhugo/i18n/fr.yaml b/themes/beautifulhugo/i18n/fr.yaml index 84b18f4..c7dc390 100644 --- a/themes/beautifulhugo/i18n/fr.yaml +++ b/themes/beautifulhugo/i18n/fr.yaml @@ -1,6 +1,6 @@ # Content - id: dateFormat - translation: "2 January 2 2006" + translation: "2 Janvier 2006" - id: postedOnDate translation: "Poste le {{ .Count }}" - id: translationsLabel diff --git a/themes/beautifulhugo/layouts/partials/head.html b/themes/beautifulhugo/layouts/partials/head.html index fd0b8a0..36bbb5e 100644 --- a/themes/beautifulhugo/layouts/partials/head.html +++ b/themes/beautifulhugo/layouts/partials/head.html @@ -47,5 +47,4 @@ {{- partial "head_custom.html" . }} -{{ template "_internal/google_analytics_async.html" . }}