diff options
author | Anton L. Šijanec <anton@sijanec.eu> | 2020-05-01 21:51:26 +0200 |
---|---|---|
committer | Anton L. Šijanec <anton@sijanec.eu> | 2020-05-01 21:51:26 +0200 |
commit | 741c8e2e2ad42c4bbdf8f532d83eaf1fdcba5eff (patch) | |
tree | 35d471215059f617baaf82936f5735943d14ee65 /assets | |
parent | added working inline command tag detector, more constants (diff) | |
download | bverbose-741c8e2e2ad42c4bbdf8f532d83eaf1fdcba5eff.tar bverbose-741c8e2e2ad42c4bbdf8f532d83eaf1fdcba5eff.tar.gz bverbose-741c8e2e2ad42c4bbdf8f532d83eaf1fdcba5eff.tar.bz2 bverbose-741c8e2e2ad42c4bbdf8f532d83eaf1fdcba5eff.tar.lz bverbose-741c8e2e2ad42c4bbdf8f532d83eaf1fdcba5eff.tar.xz bverbose-741c8e2e2ad42c4bbdf8f532d83eaf1fdcba5eff.tar.zst bverbose-741c8e2e2ad42c4bbdf8f532d83eaf1fdcba5eff.zip |
Diffstat (limited to 'assets')
-rw-r--r-- | assets/content/global.bvr | 32 | ||||
-rw-r--r-- | assets/layout/html/post.bvr | 30 |
2 files changed, 31 insertions, 31 deletions
diff --git a/assets/content/global.bvr b/assets/content/global.bvr index c6bbef6..0a4c194 100644 --- a/assets/content/global.bvr +++ b/assets/content/global.bvr @@ -1,25 +1,25 @@ # max 128 characters -?set site_name=Anton Luka Šijanec +<@?s site_name=Anton Luka Šijanec@> # max 2 characters -?set site_language=sl +<@?s site_language=sl@> # max 128 characters -?set site_description=Moj osebni blog. +<@?s site_description=Moj osebni blog.@> # max 32, max 64 characters per entry -?set featured_links=posts/about,posts/contact,posts/sample-post +<@?s featured_links=posts/about,posts/contact,posts/sample-post@> # max 64 characters or latest-posts -?set index_page=pages/about +<@?s index_page=pages/about@> # centered paragraph width. Can be 1, 2, 3, 4; 5 means text is left centered. -?set content_width=8 +<@?s content_width=8@> # hour offset to format dates with. NOTE: 11 is subtracted to this value. GMT is then 11, Ljubljana is then 13 -?set timezone=13 +<@?s timezone=13@> # what folders to copy from layout to dist (such as fonts) -?set copy_folders=fonts,media +<@?s copy_folders=fonts,media@> # post-specific variables --- you should set them now. unset variables may cause problems. -?set post_description=Unset description. -?set post_author=anonymous -?set post_header_image=transparent -?set post_header_color=black -?set post_heading=Unnamed post. -?set post_subheading=Unset subheading. -?set post_date=2020-04-29T15:05:10+00:00 -?set post_slug=posts/undefined +<@?s post_description Unset description.@> +<@?s post_author anonymous@> +<@?s post_header_image transparent@> +<@?s post_header_color black@> +<@?s post_heading Unnamed post.@> +<@?s post_subheading Unset subheading.@> +<@?s post_date 2020-04-29T15:05:10+00:00@> +<@?s post_slug posts/undefined@> diff --git a/assets/layout/html/post.bvr b/assets/layout/html/post.bvr index bfcf80c..39391b8 100644 --- a/assets/layout/html/post.bvr +++ b/assets/layout/html/post.bvr @@ -1,29 +1,29 @@ <!DOCTYPE html> -<html lang="<@?get site_language@>"> +<html lang="<@?g site_language@>"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> - <meta name="description" content="<!@get post_description@>"> - <meta name="author" content="<@?author name ?get post_author@>"> + <meta name="description" content="<!@g post_description@>"> + <meta name="author" content="<@?g post_author_name@>"> <title> - <@?get post_heading@> :: <@?get site_name@> - <@get site_description@> + <@?g post_heading@> :: <@?g site_name@> - <@g site_description@> </title> <link href="css/bundle.min.css" rel="stylesheet"> </head> <body> - <@?include navigation@> + <@?i navigation@> <!-- Page Header --> - <header class="masthead" style="background-image: url('<@?find_file ?get post_header_image@>'); background: <@?get post_header_color@>"> + <header class="masthead" style="background-image: url('<@?g post_header_image@>'); background: <@?g post_header_color@>"> <div class="overlay"></div> <div class="container"> <div class="row"> - <div class="col-lg-<@?get content_width@> mx-auto"> + <div class="col-lg-<@?g content_width@> mx-auto"> <div class="post-heading"> - <h1><@?get post_heading@></h1> - <h2 class="subheading"><@?get post_subheading@></h2> + <h1><@?g post_heading@></h1> + <h2 class="subheading"><@?g post_subheading@></h2> <span class="meta">Posted by - <a href="author/<@?get post_author@>"><@?author name ?get post_author@></a> - on <@?format_date ?get post_on_date?> + <a href="author/<@?g post_author@>"><@?g post_author_name@></a> + on <@?g post_date?> </span> </div> </div> @@ -34,13 +34,13 @@ <article> <div class="container"> <div class="row"> - <div class="col-lg-<@?get content_width@> mx-auto"> - <@?include_and_format_body ?post_slug@> + <div class="col-lg-<@?g content_width@> mx-auto"> + <@?i ?post_slug@> </div> </div> </div> </article> <hr> - <@?include footer@> + <@?i footer@> </body> -</html>
\ No newline at end of file +</html> |