mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
zola static assets from kita theme moved to non-root
This commit is contained in:
1 parent
35c9e2853e
commit
be12aaa4ab
33 files changed
+11
-42
No files matched your search
@@ -19,6 +19,9 @@
|
||||
/bar /zola/bar/index.html 200!
|
||||
/bar/* /zola/bar/:splat 200!
|
||||
|
||||
# Zola static assets from theme:
|
||||
/zola/* /zola/zola/:splat 200!
|
||||
|
||||
# Website root:
|
||||
/ /website/index.html 200
|
||||
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
name: Publish demo on GitHub Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Upload Pages artifact
|
||||
uses: st1020/zola-deploy@v1
|
||||
|
||||
deploy:
|
||||
needs: build
|
||||
|
||||
permissions:
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,7 +1,7 @@
|
||||
{%- macro get_social_icon(icon) -%}
|
||||
{%- set meta = get_image_metadata(path="/static/icons/" ~ icon ~ ".svg", allow_missing=true) -%}
|
||||
{%- set meta = get_image_metadata(path="/static/zola/icons/" ~ icon ~ ".svg", allow_missing=true) -%}
|
||||
{%- if meta -%}
|
||||
{{- get_url(path="icons/" ~ icon ~ ".svg") -}}
|
||||
{{- get_url(path="zola/icons/" ~ icon ~ ".svg") -}}
|
||||
{%- else -%}
|
||||
{{- "https://cdn.jsdelivr.net/npm/simple-icons/icons/" ~ icon ~ ".svg" -}}
|
||||
{%- endif -%}
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
{% endif %}
|
||||
|
||||
<!-- CSS & JS -->
|
||||
<link rel="preload stylesheet" as="style" href="{{ get_url(path=`main.css`) }}" />
|
||||
<link rel="preload stylesheet" as="style" href="{{ get_url(path=`zola/main.css`) }}" />
|
||||
<style>
|
||||
:root {
|
||||
--bg: {{ config.extra.style.bg_color | default(value="#f4f4f5") }};
|
||||
@@ -88,7 +88,7 @@
|
||||
{% endif %}
|
||||
|
||||
<!-- Dark Icon -->
|
||||
<link rel="preload" as="image" href="{{ get_url(path=`icons/` ~ `theme.svg`) }}" />
|
||||
<link rel="preload" as="image" href="{{ get_url(path=`zola/icons/` ~ `theme.svg`) }}" />
|
||||
|
||||
<!-- Math -->
|
||||
{% if page.extra.math | default(value=config.extra.math) %}
|
||||
@@ -107,8 +107,8 @@
|
||||
<!---->
|
||||
|
||||
<!-- Favicon -->
|
||||
<link rel="icon" href="{{ get_url(path=`favicon.ico`) }}" />
|
||||
<link rel="apple-touch-icon" href="{{ get_url(path=`apple-touch-icon.png`) }}" />
|
||||
<link rel="icon" href="{{ get_url(path=`zola/favicon.ico`) }}" />
|
||||
<link rel="apple-touch-icon" href="{{ get_url(path=`zola/apple-touch-icon.png`) }}" />
|
||||
|
||||
<!-- Feeds -->
|
||||
{% if config.generate_feed %}
|
||||
@@ -118,14 +118,14 @@
|
||||
rel="alternate"
|
||||
type="application/atom+xml"
|
||||
title="Atom"
|
||||
href="{{ get_url(path=`atom.xml`) }}"
|
||||
href="{{ get_url(path=`zola/atom.xml`) }}"
|
||||
/>
|
||||
{% endif %} {% if "rss.xml" in config.feed_filenames %}
|
||||
<link
|
||||
rel="alternate"
|
||||
type="application/rss+xml"
|
||||
title="RSS"
|
||||
href="{{ get_url(path=`rss.xml`) }}"
|
||||
href="{{ get_url(path=`zola/rss.xml`) }}"
|
||||
/>
|
||||
{% endif %}
|
||||
<!---->
|
||||
|
||||
Reference in new issue
Block a user