From 9ad7b8161b33671bcc3b685b33782221fa7fb26e Mon Sep 17 00:00:00 2001 From: Djordje Atlialp Date: Thu, 5 Mar 2020 15:12:33 +0100 Subject: [PATCH] Remove the custom figure thing and support the hugo default --- README.md | 20 ++------------------ layouts/shortcodes/figure.html | 9 --------- 2 files changed, 2 insertions(+), 27 deletions(-) delete mode 100644 layouts/shortcodes/figure.html diff --git a/README.md b/README.md index 72cc470..cceeca7 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,8 @@ and go to `localhost:1313` in your browser. From now on all the changes you make ### Built-in shortcodes +Of course you are able to use all default shortcodes from hugo (https://gohugo.io/content-management/shortcodes/). + #### `image` Properties: @@ -114,24 +116,6 @@ Example: {{< image src="/img/hello.png" alt="Hello Friend" position="center" style="border-radius: 8px;" >}} ``` -#### `figure` - -Properties: - - - `src` (required) - - `alt` (optional) - - `position` (optional, default: `left`, options: [`left`, `center`, `right`]) - - `style` (optional) - - `caption` (optional) - - `captionPosition` (optional, default: `center`, options: [`left`, `center`, `right`]), - - `captionStyle` (optional) - -Example: - -``` golang -{{< figure src="/img/hello.png" alt="Hello Friend" position="center" style="border-radius: 8px;" caption="Hello Friend!" captionPosition="right" captionStyle="color: red;" >}} -``` - ### Code highlighting Supported languages: [Take a look here](https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+abap+actionscript+ada+apacheconf+apl+applescript+c+arff+asciidoc+asm6502+csharp+autohotkey+autoit+bash+basic+batch+bison+brainfuck+bro+cpp+aspnet+arduino+cil+coffeescript+clojure+ruby+csp+css-extras+d+dart+diff+markup-templating+docker+eiffel+elixir+elm+lua+erb+erlang+fsharp+flow+fortran+gcode+gedcom+gherkin+git+glsl+gml+go+graphql+groovy+less+handlebars+haskell+haxe+hcl+http+hpkp+hsts+ichigojam+icon+inform7+ini+io+j+java+scala+php+javastacktrace+jolie+n4js+markdown+json+julia+keyman+kotlin+latex+crystal+scheme+liquid+lisp+livescript+lolcode+makefile+django+matlab+mel+mizar+monkey+n1ql+typescript+nand2tetris-hdl+nasm+nginx+nim+nix+nsis+objectivec+ocaml+opencl+oz+parigp+parser+pascal+perl+php-extras+sql+powershell+processing+prolog+properties+protobuf+scss+puppet+pure+python+q+qore+r+jsx+renpy+reason+vala+rest+rip+roboconf+textile+rust+plsql+sass+stylus+smalltalk+smarty+soy+sas+twig+swift+yaml+tcl+haml+toml+tt2+pug+tsx+visual-basic+vbnet+velocity+verilog+vhdl+vim+wasm+wiki+xeora+xojo+xquery+tap) diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html deleted file mode 100644 index be77a51..0000000 --- a/layouts/shortcodes/figure.html +++ /dev/null @@ -1,9 +0,0 @@ -{{ if .Get "src" }} -
- {{ . | plainify }} - - {{ if .Get "caption" }} -
{{ .Get "caption" }}
- {{ end }} -
-{{ end }}