How to create a link for uploading to octopress

I use Octopress for my blog and I need to create a link to download a text file.

There is a built-in plugin called include_code that displays the link but also shows the file. I just want a link. Does anyone know how I can do this?

+4
source share
1 answer

Put your text file under source/downloads/code

You can then use the markup syntax to display these links:

 [link name](url for the txt file) 

The URL will be {your blog url}/downloads/code/{name of txt file}

This comes from the include_code plugin, which also shows a download link for each list of codes.

UPDATE: To do this from HTML, you can use

 <a href ="{your blog url}/downloads/code/{name of txt file}">Text File</a> 
+6
source

Source: https://habr.com/ru/post/1436398/


All Articles