diff --git a/.gitignore b/.gitignore index 5d7c419..37912fe 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ vm.qcow2 __pycache__ /.pre-commit-config.yaml result + +.hugo_build.lock diff --git a/blog/archetypes/default.md b/blog/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/blog/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/blog/assets/style.css b/blog/assets/style.css new file mode 120000 index 0000000..b002e9c --- /dev/null +++ b/blog/assets/style.css @@ -0,0 +1 @@ +../../static/style.css \ No newline at end of file diff --git a/blog/config.yaml b/blog/config.yaml new file mode 100644 index 0000000..a606a84 --- /dev/null +++ b/blog/config.yaml @@ -0,0 +1,27 @@ +baseURL: 'https://11sync.net/blog/' +languageCode: en-us +title: 11sync.net blog +theme: default +author: Motiejus Jakštys +Menus: + main: + - Name: Sign Up + URL: / + - Name: Blog + URL: /blog/ + - Name: Contact + URL: /contact/ +permalinks: + log: '/:year/:slug/' +Params: + dateFormat: '2006-01-02' +outputs: + home: + - HTML + - RSS +disableKinds: [taxonomy, term] +paginate: 99 +outputFormats: + RSS: + mediatype: "application/rss" + baseName: "rss" diff --git a/blog/content/log/2024/first-post-here.md b/blog/content/log/2024/first-post-here.md new file mode 100644 index 0000000..6a8db6b --- /dev/null +++ b/blog/content/log/2024/first-post-here.md @@ -0,0 +1,7 @@ +--- +title: "First Post Here" +date: 2024-01-27T12:00:36+02:00 +description: "Starting with hugo" +--- + +This company needs a blog. It will have it. diff --git a/blog/debugconfig.yaml b/blog/debugconfig.yaml new file mode 100644 index 0000000..1059357 --- /dev/null +++ b/blog/debugconfig.yaml @@ -0,0 +1 @@ +relativeURLs: true diff --git a/blog/layouts/shortcodes/div-clear.html b/blog/layouts/shortcodes/div-clear.html new file mode 100644 index 0000000..ce92d4e --- /dev/null +++ b/blog/layouts/shortcodes/div-clear.html @@ -0,0 +1 @@ +
diff --git a/blog/layouts/shortcodes/img.html b/blog/layouts/shortcodes/img.html new file mode 100644 index 0000000..469e4ad --- /dev/null +++ b/blog/layouts/shortcodes/img.html @@ -0,0 +1,90 @@ + + + +{{ $src := resources.GetMatch (.Get "src") | resources.Fingerprint }} +{{ $jmax := $src | resources.Fingerprint }} +{{ $j350 := $src.Resize "350x" }} +{{ $j700 := $src.Resize "700x" }} +{{ $j1400 := $src.Resize "1400x" }} +{{ $j2800 := $src.Resize "2800x" }} + +{{ $width := cond (eq (.Get "half") "true") "350px" "700px" }} + +{{ with .Get "hint" }} +{{ else }} + {{ errorf "missing value for param 'hint': %s" .Position }} +{{ end }} +{{ $hint := .Get "hint" }} +{{ $wmax := $src.Resize (printf "%dx%d webp" $src.Width $src.Height) }} +{{ $w350 := $src.Resize (print "350x webp " $hint ) }} +{{ $w700 := $src.Resize (print "700x webp " $hint ) }} +{{ $w1400 := $src.Resize (print "1400x webp " $hint ) }} +{{ $w2800 := $src.Resize (print "2800x webp " $hint ) }} + + + diff --git a/blog/themes/default/LICENSE b/blog/themes/default/LICENSE new file mode 100644 index 0000000..0b87547 --- /dev/null +++ b/blog/themes/default/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 Linlin Yan + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/blog/themes/default/README.md b/blog/themes/default/README.md new file mode 100644 index 0000000..3b6ddfb --- /dev/null +++ b/blog/themes/default/README.md @@ -0,0 +1,25 @@ +# Simple Style Hugo Theme + +My simple style hugo theme, based on [this webpage template](https://yanlinlin82.github.io/webpage-templates/simple-style/index.html) + +Online demo of this theme: [simple-style-demo](https://yanlinlin82.github.io/simple-style-demo/) + +## Supported Parameters + +In `config.toml` + +``` +[params] +subtitle = "Sub title of the site" +favicon = "/