Skip to content

Commit

Permalink
Merge pull request #65 from tecladocode/master
Browse files Browse the repository at this point in the history
  • Loading branch information
jslvtr authored Apr 26, 2022
2 parents 275c264 + 89d59df commit 0e69397
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 24 deletions.
17 changes: 2 additions & 15 deletions curriculum/.vuepress/components/BottomCallout.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
<script>
export default {
props: ['title', 'subtitle'],
mounted() {
this.plausibleEvent = function(eventName, props) {
if (props) {
props['path'] = window.location.pathname;
} else {
props = {
path: window.location.pathname
}
}
var plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) };
plausible(eventName, props);
}
}
props: ['title', 'subtitle']
}
</script>

Expand Down Expand Up @@ -89,7 +76,7 @@ export default {
</li>
</ul>
<p class="bottom-callout__text">
<a v-on:click="plausibleEvent('Course CTA Clicked')" href="https://go.tecla.do/web-dev-course-sale" class="bottom-callout__link">
<a href="https://go.tecla.do/web-dev-course-sale" class="bottom-callout__link">
Get the video course <svg class="bottom-callout__feature-icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g transform="matrix(1,0,0,1,0,0)"><path d="M10.5,9.121h6V6.011c0-.272.163-.343.362-.158L23,11.54a.751.751,0,0,1-.017,1.142l-6.116,5.336c-.2.185-.362.114-.362-.157v-2.74h-6" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M7.5 9.121L5.25 9.121" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M3 9.121L0.75 9.121" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M7.5 15.121L5.25 15.121" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M3 15.121L0.75 15.121" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></g></svg>
</a>
</p>
Expand Down
7 changes: 6 additions & 1 deletion curriculum/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,10 @@ module.exports = {
md.use(require("markdown-it-task-lists"));
},
},
plugins: [["plausible", { domain: "python-web.teclado.com" }]],
plugins: [
[
"plausible",
{ domain: "python-web.teclado.com", outboundLinkTracking: true },
],
],
};
2 changes: 1 addition & 1 deletion curriculum/section11/lectures/01_jinja_includes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ templates

The partial then would just import the macro and use it, like this:

```j2
```jinja2
{% from "macros/item_list.html" import item_list %}
{{ item_list(items) }}
Expand Down
11 changes: 5 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"dependencies": {
"markdown-it-footnote": "^3.0.3",
"markdown-it-task-lists": "^2.1.1",
"vuepress-plugin-plausible": "0.0.2"
"vuepress-plugin-plausible": "github:tecladocode/vuepress-plugin-plausible"
}
}

0 comments on commit 0e69397

Please sign in to comment.