Sha256: 5770b45a310d266b3aef867eb6adfc3b1213b8fb3fc924fdb4035a58d5b48561

Contents?: true

Size: 1.71 KB

Versions: 40

Compression:

Stored size: 1.71 KB

Contents

{% comment %}
 # -----------------------------------------------------------------------------
 #   ~/_includes/themes/j1/procedures/global/get_page_url.proc
 #  Liquid PROCEDURE to calculate the URL of a page (page_url)
 #
 #  https://jekyll.one
 #
 #  Copyright (C) 2022 Juergen Adams
 #
 #  J1 Template is licensed under the MIT License.
 #  See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
 #
 # -----------------------------------------------------------------------------
 #   Global procedure. Calculates the absolute path of the current page
 #   relative to the web root. The path is resturned by the liquid variable
 #   page_url.
 #
 #    Usage:
 #
 #      1)  include the get_page_url.proc procedure
 #      2)  assign|use the page_url variable
 #
 #    Example:
 #
 #    {% capture get_page_url %}themes/{{site.template.name}}/procedures/global/get_page_url.proc{% endcapture %}
 #
 #    {% include {{get_page_url}} %}
 #    {% assign my_page_url = page_url %}
 #
 # -----------------------------------------------------------------------------
 # Test data:
 #  liquid_var:  {{ liquid_var | debug }}
 #
 # -----------------------------------------------------------------------------
{% endcomment %}


{% comment %} Variables
   ------------------------------------------------------------ {% endcomment %}



{% comment %} Liquid procedures
   ------------------------------------------------------------ {% endcomment %}



{% comment %} Main
   ------------------------------------------------------------ {% endcomment %}

  {% if site.permalink == 'none' %}
    {% capture page_url %}{{ page.url }}.html{% endcapture %}
  {% else %}
    {% capture page_url %}{{ page.url }}{% endcapture %}
  {% endif %}

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
j1-template-2022.6.3 _includes/themes/j1/procedures/global/get_page_url.proc
j1-template-2022.6.2 _includes/themes/j1/procedures/global/get_page_url.proc
j1-template-2022.6.1 _includes/themes/j1/procedures/global/get_page_url.proc
j1-template-2022.6.0 _includes/themes/j1/procedures/global/get_page_url.proc
j1-template-2022.5.3 _includes/themes/j1/procedures/global/get_page_url.proc
j1-template-2022.5.2 _includes/themes/j1/procedures/global/get_page_url.proc
j1-template-2022.5.1 _includes/themes/j1/procedures/global/get_page_url.proc
j1-template-2022.5.1.rc1 _includes/themes/j1/procedures/global/get_page_url.proc
j1-template-2022.5.1.rc0 _includes/themes/j1/procedures/global/get_page_url.proc
j1-template-2022.5.0 _includes/themes/j1/procedures/global/get_page_url.proc
j1-template-2022.5.0.rc4 _includes/themes/j1/procedures/global/get_page_url.proc
j1-template-2022.5.0.rc3 _includes/themes/j1/procedures/global/get_page_url.proc
j1-template-2022.5.0.rc2 _includes/themes/j1/procedures/global/get_page_url.proc
j1-template-2022.5.0.rc1 _includes/themes/j1/procedures/global/get_page_url.proc
j1-template-2022.5.0.rc0 _includes/themes/j1/procedures/global/get_page_url.proc
j1-template-2022.3.0.rc1 _includes/themes/j1/procedures/global/get_page_url.proc
j1-template-2022.3.0.rc0 _includes/themes/j1/procedures/global/get_page_url.proc
j1-template-2022.4.10 _includes/themes/j1/procedures/global/get_page_url.proc
j1-template-2022.4.9 _includes/themes/j1/procedures/global/get_page_url.proc
j1-template-2022.4.8 _includes/themes/j1/procedures/global/get_page_url.proc