dynamic content
This commit is contained in:
parent
eb8fdb1a46
commit
651becfb6b
4 changed files with 47 additions and 1 deletions
20
example/content/script.md
Normal file
20
example/content/script.md
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
Title: Hello World
|
||||
Date: 2023-05-22
|
||||
save_as:
|
||||
url: helloworld.mu
|
||||
|
||||
<!--
|
||||
|
||||
The empty 'save_as' tag tells Pelican to not save this file
|
||||
but use the given 'url' in all links that point to this
|
||||
dummy article. We only use this to create links throughout
|
||||
the generated page.
|
||||
|
||||
The following settings in 'pelicanconf.py' will then copy the
|
||||
'helloworld.mu' script from the 'scripts' folder to where this
|
||||
'url' points.
|
||||
|
||||
STATIC_PATHS = ['../scripts/helloworld.mu']
|
||||
EXTRA_PATH_METADATA = {'../scripts/helloworld.mu': {'path': '/micron/helloworld.mu'},}
|
||||
|
||||
-->
|
||||
|
|
@ -25,3 +25,5 @@ PLUGIN_PATHS = ["../plugin"]
|
|||
PLUGINS = ['micron']
|
||||
THEME = '../theme'
|
||||
MICRON_PATH = 'output/micron'
|
||||
STATIC_PATHS = ['../scripts/helloworld.mu']
|
||||
EXTRA_PATH_METADATA = {'../scripts/helloworld.mu': {'path': 'micron/helloworld.mu'},}
|
||||
3
example/scripts/helloworld.mu
Executable file
3
example/scripts/helloworld.mu
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
print('Hello World')
|
||||
Loading…
Add table
Add a link
Reference in a new issue