add drone
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone Build encountered an error

This commit is contained in:
Kasper Juul Hermansen 2022-05-22 22:55:13 +02:00
parent c1aad02baa
commit ee14f7140a
10 changed files with 101 additions and 3 deletions

25
.drone.yml Normal file
View File

@ -0,0 +1,25 @@
kind: pipeline
name: default
type: docker
steps:
- name: blog
image: plugins/docker
settings:
username: kasperhermansen
password:
from_secret:
docker_secret
repo: kasperhermansen/kasperhermansen-blog
tags: latest
- name: send telegram notification
image: appleboy/drone-telegram
settings:
token:
from_secret: telegram_token
to: 2129601481
format: markdown
depends_on:
- client
- server
when:
status: [failure]

8
.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

9
.idea/blog-2.iml Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="Go" enabled="true" />
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/blog-2.iml" filepath="$PROJECT_DIR$/.idea/blog-2.iml" />
</modules>
</component>
</project>

7
.idea/vcs.xml Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
<mapping directory="$PROJECT_DIR$/themes/anubis" vcs="Git" />
</component>
</project>

8
Caddyfile Normal file
View File

@ -0,0 +1,8 @@
{
auto_https off
}
http://blog.kasperhermansen.com {
root * /usr/share/caddy
file_server
}

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM klakegg/hugo:0.93.2-onbuild as builder
COPY . /src
FROM caddy:2.1.1 as run
COPY --from=builder /target/ /usr/share/caddy/
COPY ./Caddyfile /etc/caddy/Caddyfile

View File

@ -15,6 +15,10 @@ menu:
url: /posts/ url: /posts/
weight: 0 weight: 0
taxonomies:
category: "categories"
tag: "tags"
params: params:
author: "Kasper J. Hermansen" author: "Kasper J. Hermansen"
email: contact@kasperhermansen.com # used for microformats email: contact@kasperhermansen.com # used for microformats
@ -29,7 +33,7 @@ params:
# - js/main.js # relative path to "assets" directory # - js/main.js # relative path to "assets" directory
dateFormat: "2006-01-02" dateFormat: "2006-01-02"
paginationSinglePost: true paginationSinglePost: true
style: dark-with-switcher style: dark
readMore: false # show read more button readMore: false # show read more button
readNextPosts: 5 # show 5 related posts, 0 by default readNextPosts: 5 # show 5 related posts, 0 by default
disableSummary: false disableSummary: false
@ -46,7 +50,7 @@ params:
data: "https://comments.example.com/" # mandatory data: "https://comments.example.com/" # mandatory
jsLocation: "https://comments.example.com/js/embed.min.js" # mandatory jsLocation: "https://comments.example.com/js/embed.min.js" # mandatory
css: true # optional css: true # optional
lang: "de" # optional lang: "dk" # optional
replyToSelf: true # mandatory replyToSelf: true # mandatory
requireAuthor: true # mandatory requireAuthor: true # mandatory
requireEmail: true # mandatory requireEmail: true # mandatory
@ -60,7 +64,7 @@ params:
pingback: true pingback: true
social: social:
- id: github - id: github
name: gohugoio name: kjuulh
# - id: hugo # - id: hugo
# url: "https://gohugo.io/" # url: "https://gohugo.io/"
# icon: "hugo" # icon: "hugo"

7
content/post/_index.md Normal file
View File

@ -0,0 +1,7 @@
+++
aliases = ["posts","articles","blog","showcase","docs"]
title = "Posts"
author = "kjuulh"
tags = ["index"]
+++

View File

@ -0,0 +1,12 @@
+++
author = "kjuulh"
title = "Start of blog"
date = "2022-05-22"
description = "Start of the blog"
aliases = ["start"]
favorite = false
+++
Some start of blog