Skip to content

Commit

Permalink
updated templates
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Apr 17, 2023
1 parent 9328478 commit ee88ce7
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
11 changes: 7 additions & 4 deletions pelicanconf.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
import datetime
from os.path import join, dirname, abspath
from pathlib import Path

import repogen
from pelican.plugins import webassets
import pelican.themes.webosbrew
from pelican.plugins import webassets
from webassets.cache import MemoryCache

import repogen

AUTHOR = 'webOS Homebrew Project'
SITENAME = 'webOS Homebrew Project'
SITEURL = ''

THEME = 'webosbrew'
THEME_STATIC_PATHS = [join(dirname(abspath(__file__)), 'theme/static'), pelican.themes.webosbrew.static_dir()]
theme_dir = Path(__file__, '..', 'theme').resolve()
THEME_STATIC_PATHS = [theme_dir.joinpath('static'), pelican.themes.webosbrew.static_dir()]
WEBASSETS_SOURCE_PATHS = [theme_dir.joinpath('styles'), pelican.themes.webosbrew.scss_dir()]
THEME_TEMPLATES_OVERRIDES = ['./theme/templates']

PLUGINS = [webassets, repogen]
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ invoke~=2.0.0
ar~=0.3.2
jsonschema~=4.17.3
git+https://github.com/Kronuz/pyScss.git@60414f5d573315a8458b5fbcdf69e5c648c44a9a#egg=pyscss
git+https://github.com/webosbrew/[email protected].4#egg=pelican-theme-webosbrew
git+https://github.com/webosbrew/[email protected].9#egg=pelican-theme-webosbrew
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion theme/templates/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{% block head %}
{{ super() }}
{% assets filters="pyscss,cssmin", output="styles/app.css", "styles/app.scss" %}
{% assets filters="pyscss,cssmin", output="styles/app.css", "app.scss" %}
<link href="{{ SITEURL }}/{{ ASSET_URL }}" type="text/css" rel="stylesheet">
{% endassets %}

Expand Down
2 changes: 1 addition & 1 deletion theme/templates/apps.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{% block head %}
{{ super() }}
{% assets filters="pyscss,cssmin", output="styles/apps.css", "styles/apps.scss" %}
{% assets filters="pyscss,cssmin", output="styles/apps.css", "apps.scss" %}
<link href="{{ SITEURL }}/{{ ASSET_URL }}" type="text/css" rel="stylesheet">
{% endassets %}

Expand Down

0 comments on commit ee88ce7

Please sign in to comment.