| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -65,7 +65,7 @@ source gitpy/bin/activate | |||
| 65 | 65 | The virtualenv's name will be prepended to the command prompt after | |
| 66 | 66 | activation. | |
| 67 | 67 | ||
| 68 | - <img src="/img/171129-gitpython/activate-virtualenv.png" width="100%" class="technical-diagram img-rounded" style="border:1px solid #ccc" alt="Create and activate the Python virtual environment."> | ||
| 68 | + <img src="/img/171129-gitpython/activate-virtualenv.png" width="100%" class="shot rnd outl" alt="Create and activate the Python virtual environment."> | ||
| 69 | 69 | ||
| 70 | 70 | Now that the virutalenv is activated we can use the `pip` command to install | |
| 71 | 71 | GitPython. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,7 +18,7 @@ | |||
| 18 | 18 | Examples: | |
| 19 | 19 | ||
| 20 | 20 | 1. Post URL to all channels with the default title found within the page's | |
| 21 | - <h1> and tagged with any keywords that match between the page content | ||
| 21 | + <h1> and tagged with any keywords that match between the page content | ||
| 22 | 22 | and the table of contents map. | |
| 23 | 23 | ||
| 24 | 24 | python post.py https://www.fullstackpython.com/django.html | |
@@ -46,8 +46,14 @@ | |||
| 46 | 46 | parser.add_argument('url', metavar='1', type=str, nargs='?', | |
| 47 | 47 | help='URL for the tutorial to post') | |
| 48 | 48 | parser.add_argument("-c", "--channel", help="channel to post tutorial to") | |
| 49 | + parser.add_argument("-s", "--subject", help="subject line to use with the post") | ||
| 50 | + parser.add_argument("-t", "--tags", help="comma-delimited list of fsp topics") | ||
| 49 | 51 | ||
| 50 | 52 | ||
| 51 | 53 | args = parser.parse_args() | |
| 52 | 54 | print(args.url) | |
| 53 | 55 | print(args.channel) | |
| 56 | + print(args.subject) | ||
| 57 | + print(args.tags) | ||
| 58 | + | ||
| 59 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,23 @@ | |||
| 2 | 2 | ||
| 3 | 3 | {% block meta_header %}{% if page.meta %} | |
| 4 | 4 | <meta name="description" content="{{ page.meta }}"> | |
| 5 | + <meta name="twitter:card" content="summary" /> | ||
| 6 | + <meta name="twitter:title" content="{{ page.title }}" /> | ||
| 7 | + {% if not page.headerimage or page.headerimage == '' %} | ||
| 8 | + <meta name="twitter:image" content="https://www.fullstackpython.com/img/pages/default.jpg" /> | ||
| 9 | + {% else %} | ||
| 10 | + <meta property="twitter:image" content="{{ SITEURL }}{{ page.headerimage }}" /> | ||
| 11 | + {% endif %} | ||
| 12 | + <meta name="twitter:site" content="@fullstackpython" /> | ||
| 13 | + <meta name="twitter:creator" content="@mattmakai" /> | ||
| 14 | + <meta property="og:url" content="{{ SITEURL }}/{{ page.slug }}.html" /> | ||
| 15 | + <meta property="og:title" content="{{ page.title }}" /> | ||
| 16 | + <meta property="og:description" content="{{ page.meta }} Great post on Full Stack Python about {{ page.title }}!" /> | ||
| 17 | + {% if not page.headerimage or page.headerimage == '' %} | ||
| 18 | + <meta property="og:image" content="https://www.fullstackpython.com/img/pages/default.jpg" /> | ||
| 19 | + {% else %} | ||
| 20 | + <meta property="og:image" content="{{ SITEURL }}{{ page.headerimage }}" /> | ||
| 21 | + {% endif %} | ||
| 5 | 22 | <link rel="canonical" href="https://www.fullstackpython.com/{{ page.slug }}.html" /> | |
| 6 | 23 | {% endif %}{% endblock %} | |
| 7 | 24 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments