local en = {} -- Templates en.tpl_vars = { post = { author = "{{ post_author }}", content = "{{ post_content }}", date = "{{ post_date }}", summary = "{{ post_summary }}", tags = "{{ post_tags }}", title = "{{ post_title }}", url = "{{ post_url }}", }, feed = { date = "{{ feed_date }}", url = "{{ feed_url }}", }, index = { posts = "{{ posts }}", }, log = { author = "{{ log_author }}", subtitle = "{{ log_subtitle }}", title = "{{ log_title }}", log_url = "{{ log_url }}", }, } en.atom_header = [[ {{ log_title }} {{ log_subtitle }} {{ feed_date }} {{ log_author }} {{ feed_url }} ]] en.atom_entry = [[ {{ post_url }} <![CDATA[{{ post_title }}]] .. "]]>" .. [[ {{ post_date }} {{ post_author }} " .. [[ " .. [[ ]] en.atom_footer = [[]] en.post = [[--- date: {{ post_date }} --- # {{ post_title }} ## Links => gemini:// link => gemini:// link (img) => https:// link (https)]] en.index = [[ # {{ log_title }} {{ posts }} ]] en.page = [[ # {{ post_title }} ## Heading 2 ### Heading 3 List: * * * ``` Preformatted text ``` ## Links => gemini:// link => gemini:// link (img) => https:// link (https)]] -- App command options and messages output en.opts = { config = "config", page = "page", post = "post", index = "index", publish = "publish", help = "help", version = "version", } en.msgs = { add_gemtext = "Created ", help = [[ [options] [capsule] [title] Options: config Generate a config directory page [capsule] [title] Add a new page with the given title post [capsule] [title] Add a new gemlog post with the given title index Generate an index page and feed of posts publish Index and copy posts remotely using scp help Show this help message version Print version info]], index = "Created index page and feed.", load_config = [[Created config files. Please edit them with the correct details before proceeding. The config files can be found at: ]], publish = "Published capsule.", } en.errs = { invalid_cap_id = "Error: unknown capsule id.", } return en