diff --git a/.drone.yml b/.drone.yml index f49242b..d0541de 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ trigger: - main steps: - - name: docker + - name: docker-default image: plugins/docker settings: registry: git.riksolo.com @@ -18,4 +18,30 @@ steps: - latest - ${DRONE_COMMIT} password: - from_secret: dockertoken \ No newline at end of file + from_secret: dockertoken + + - name: docker-rblicht + image: plugins/docker + settings: + registry: git.riksolo.com + username: riksolo + repo: git.riksolo.com/${DRONE_REPO,,} + build_args: + - SITE=rblicht + tags: + - latest-rblicht + - ${DRONE_COMMIT}-rblicht + password: + from_secret: dockertoken + + - name: trigger docker-compose release + image: plugins/downstream + settings: + server: https://drone.riksolo.com + token: + from_secret: drone_token + repositories: + - RikSolo/docker-compose + depends_on: + - docker-default + - docker-rblicht \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 781c554..5b64798 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,9 @@ FROM node:22 WORKDIR /usr/src/app +ARG SITE=default +ENV SITE=$SITE + COPY package*.json ./ RUN npm install ADD . . diff --git a/content/_data/site.js b/content/_data/site.js new file mode 100644 index 0000000..e6bccc5 --- /dev/null +++ b/content/_data/site.js @@ -0,0 +1,8 @@ +export default function () { + return { + title: "Rik Berkelder", + url: process.env.site == "rblicht" ? "https://rblicht.nl" : "https://riksolo.com", + author: "Rik Berkelder", + site: process.env.SITE || 'default' + }; +} \ No newline at end of file diff --git a/content/blogposts/blogposts.11tydata.js b/content/blogposts/blogposts.11tydata.js index 51c301b..dd1cae7 100644 --- a/content/blogposts/blogposts.11tydata.js +++ b/content/blogposts/blogposts.11tydata.js @@ -1,5 +1,5 @@ const conf = { - tags: "blogposts", + tags: "blogpost", layout: "blogpost.njk", eleventyComputed: { permalink(data) { diff --git a/content/includes/highlights.njk b/content/includes/highlights.njk new file mode 100644 index 0000000..6097482 --- /dev/null +++ b/content/includes/highlights.njk @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/content/includes/navbar.njk b/content/includes/navbar.njk new file mode 100644 index 0000000..56eaef6 --- /dev/null +++ b/content/includes/navbar.njk @@ -0,0 +1,31 @@ +{% macro navItem(title, url, hyphen=true, target='_self') %} + + {{title}} + {% if hyphen %} - {% endif %} + +{% endmacro %} + +
+ +
\ No newline at end of file diff --git a/content/includes/skills.njk b/content/includes/skills.njk new file mode 100644 index 0000000..838979f --- /dev/null +++ b/content/includes/skills.njk @@ -0,0 +1,21 @@ +
+
+ Lighting & AV + +
+
+ Software & IT + +
+
\ No newline at end of file diff --git a/content/layouts/base-nonav.njk b/content/layouts/base-nonav.njk new file mode 100644 index 0000000..b206e33 --- /dev/null +++ b/content/layouts/base-nonav.njk @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + {%if tags.includes("blogpost")%} + + {%if description %} + + + {% endif %} + + + + + {%endif%} + + + {% if title %}{{title}} | {% endif %}{{site.title}} + + + + + {{content | safe}} + + + + + + + + + \ No newline at end of file diff --git a/content/layouts/base.njk b/content/layouts/base.njk index 0744101..e1f9f3c 100644 --- a/content/layouts/base.njk +++ b/content/layouts/base.njk @@ -1,82 +1,7 @@ -{% macro navItem(title, url, hyphen=true, target='_self') %} - - {{title}} - {% if hyphen %} - {% endif %} - -{% endmacro %} +--- +layout: 'base-nonav.njk' +--- - - +{%include "navbar.njk"%} - - - - - - - - - - - - - - - - - - {%if tags.includes("blogpost")%} - - {%if description %} - - - {% endif %} - - - - - {%endif%} - - {% if title %}{{title}} | {% endif %}{{site.title}} - - - -
- -
- - {{content | safe}} - - - - - - - - \ No newline at end of file +{{content | safe}} \ No newline at end of file diff --git a/content/layouts/portfolio.njk b/content/layouts/portfolio.njk index f4db953..48d2aeb 100644 --- a/content/layouts/portfolio.njk +++ b/content/layouts/portfolio.njk @@ -14,7 +14,7 @@ layout: base.njk